From d01fa2df1b46f45647e82be6d1476ea1e295f995 Mon Sep 17 00:00:00 2001
From: xiangpei <xiangpei@timesnew.cn>
Date: 星期日, 27 十月 2024 21:31:53 +0800
Subject: [PATCH] 一个班级可以有多个老师

---
 src/main/java/com/ycl/jxkg/service/impl/AuthenticationServiceImpl.java |   20 ++------------------
 1 files changed, 2 insertions(+), 18 deletions(-)

diff --git a/src/main/java/com/ycl/jxkg/service/impl/AuthenticationServiceImpl.java b/src/main/java/com/ycl/jxkg/service/impl/AuthenticationServiceImpl.java
index 1610e30..4b28628 100644
--- a/src/main/java/com/ycl/jxkg/service/impl/AuthenticationServiceImpl.java
+++ b/src/main/java/com/ycl/jxkg/service/impl/AuthenticationServiceImpl.java
@@ -1,7 +1,7 @@
 package com.ycl.jxkg.service.impl;
 
 import com.ycl.jxkg.config.property.SystemConfig;
-import com.ycl.jxkg.domain.User;
+import com.ycl.jxkg.domain.entity.User;
 import com.ycl.jxkg.service.AuthenticationService;
 import com.ycl.jxkg.service.UserService;
 import com.ycl.jxkg.utils.RsaUtil;
@@ -12,28 +12,12 @@
 @Service
 public class AuthenticationServiceImpl implements AuthenticationService {
 
-
-    private final UserService userService;
     private final SystemConfig systemConfig;
 
     @Autowired
-    public AuthenticationServiceImpl(UserService userService, SystemConfig systemConfig) {
-        this.userService = userService;
+    public AuthenticationServiceImpl(SystemConfig systemConfig) {
         this.systemConfig = systemConfig;
     }
-
-
-    /**
-     * @param username username
-     * @param password password
-     * @return boolean
-     */
-    @Override
-    public boolean authUser(String username, String password) {
-        User user = userService.getUserByUserName(username);
-        return authUser(user, username, password);
-    }
-
 
     @Override
     public boolean authUser(User user, String username, String password) {

--
Gitblit v1.8.0