|
@@ -2,7 +2,6 @@ package com.qmth.eds.api;
|
|
|
|
|
|
import com.baomidou.mybatisplus.core.conditions.query.QueryWrapper;
|
|
|
import com.qmth.boot.api.annotation.Aac;
|
|
|
-import com.qmth.boot.api.annotation.BOOL;
|
|
|
import com.qmth.boot.api.constant.ApiConstant;
|
|
|
import com.qmth.eds.bean.params.LoginParam;
|
|
|
import com.qmth.eds.bean.result.*;
|
|
@@ -25,9 +24,7 @@ import javax.annotation.Resource;
|
|
|
import javax.validation.Valid;
|
|
|
import java.security.NoSuchAlgorithmException;
|
|
|
import java.time.temporal.ChronoUnit;
|
|
|
-import java.time.temporal.TemporalUnit;
|
|
|
import java.util.*;
|
|
|
-import java.util.concurrent.TimeUnit;
|
|
|
|
|
|
/**
|
|
|
* 系统公共Controller
|
|
@@ -64,7 +61,7 @@ public class SysController {
|
|
|
@ApiOperation(value = "登录")
|
|
|
@PostMapping("/login")
|
|
|
@ApiResponses({@ApiResponse(code = 200, message = "用户信息", response = LoginResult.class)})
|
|
|
- @Aac(auth = BOOL.FALSE)
|
|
|
+ @Aac(auth = false)
|
|
|
public Result login(@ApiParam(value = "用户信息", required = true) @Valid @RequestBody LoginParam login, BindingResult bindingResult) throws NoSuchAlgorithmException {
|
|
|
if (bindingResult.hasErrors()) {
|
|
|
return ResultUtil.error(bindingResult.getAllErrors().get(0).getDefaultMessage());
|
|
@@ -199,7 +196,7 @@ public class SysController {
|
|
|
return ResultUtil.ok(!CollectionUtils.isEmpty(teacherResultList) ? teacherResultList : Collections.emptyList());
|
|
|
}
|
|
|
|
|
|
- @Aac(auth = BOOL.FALSE)
|
|
|
+ @Aac(auth = false)
|
|
|
@GetMapping("/test")
|
|
|
public void test() {
|
|
|
// 1
|