Compare commits
No commits in common. "c48769872dddb2e41703975c37a76f8282f7d427" and "52798ce478c49fec9167a75a12b80885020aefbc" have entirely different histories.
c48769872d
...
52798ce478
@ -18,7 +18,6 @@ import org.jeecg.modules.gen.userinfo.entity.UserInfo;
|
||||
import org.jeecg.modules.gen.userinfo.mapper.UserInfoMapper;
|
||||
import org.jeecg.modules.system.entity.SysUser;
|
||||
import org.jeecg.modules.system.service.*;
|
||||
import org.jeecg.common.system.vo.DictModel;
|
||||
|
||||
import java.util.LinkedHashMap;
|
||||
import java.util.List;
|
||||
@ -34,7 +33,6 @@ import org.jeecg.common.util.PasswordUtil;
|
||||
import org.jeecg.common.util.RedisUtil;
|
||||
import com.baomidou.mybatisplus.core.conditions.query.QueryWrapper;
|
||||
import org.springframework.beans.BeanUtils;
|
||||
import org.jeecg.common.system.api.ISysBaseAPI;
|
||||
|
||||
import io.swagger.v3.oas.annotations.Operation;
|
||||
import io.swagger.v3.oas.annotations.tags.Tag;
|
||||
@ -54,8 +52,6 @@ public class UserBizController {
|
||||
private UserBizService userBizService;
|
||||
@Autowired
|
||||
private UserInfoMapper userInfoMapper;
|
||||
@Autowired
|
||||
private ISysBaseAPI sysBaseApi;
|
||||
|
||||
@PostMapping("/login")
|
||||
@Operation(summary = "用户登录")
|
||||
@ -122,7 +118,6 @@ public class UserBizController {
|
||||
|
||||
/**
|
||||
* 记录登录失败次数
|
||||
*
|
||||
* @param username
|
||||
*/
|
||||
private void addLoginFailOvertimes(String username){
|
||||
@ -166,7 +161,8 @@ public class UserBizController {
|
||||
|
||||
// 4. 根据用户ID查询user_info表信息
|
||||
UserInfo userInfo = userInfoMapper.selectOne(
|
||||
new QueryWrapper<UserInfo>().eq("user_id", sysUser.getId()));
|
||||
new QueryWrapper<UserInfo>().eq("user_id", sysUser.getId())
|
||||
);
|
||||
|
||||
// 5. 构建返回结果
|
||||
UserInfoResponse response = new UserInfoResponse();
|
||||
@ -190,15 +186,4 @@ public class UserBizController {
|
||||
return Result.error(500, "查询用户信息失败:" + e.getMessage());
|
||||
}
|
||||
}
|
||||
|
||||
@GetMapping("/schools")
|
||||
@Operation(summary = "查询学校列表")
|
||||
@IgnoreAuth
|
||||
public Result<List<String>> querySchools() {
|
||||
List<DictModel> list = sysBaseApi.getDictItems("school_list");
|
||||
List<String> schools = list.stream()
|
||||
.map(d -> d.getLabel())
|
||||
.collect(Collectors.toList());
|
||||
return Result.OK(schools);
|
||||
}
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user