【fix sonar】 LoginController.java 文件

This commit is contained in:
tianwenbo
2023-03-07 17:14:37 +08:00
parent 5292628950
commit 255a2e8fb6
@@ -30,7 +30,8 @@ public class LoginController {
private ILoginService loginService;
@ApiOperation("登录接口")
@RequestMapping(value = "/login", method = RequestMethod.POST)
// @RequestMapping(value = "/login", method = RequestMethod.POST)
@PostMapping("/login")
public Result<JSONObject> login(@RequestBody SysLoginModel sysLoginModel){
return loginService.login(sysLoginModel);
}
@@ -69,7 +70,8 @@ public class LoginController {
* @param user
* @return
*/
@RequestMapping(value = "/selectDepart", method = RequestMethod.PUT)
// @RequestMapping(value = "/selectDepart", method = RequestMethod.PUT)
@PutMapping("/selectDepart")
public Result<JSONObject> selectDepart(@RequestBody SysUser user) {
return loginService.selectDepart(user);
}
@@ -124,7 +126,8 @@ public class LoginController {
* @return
* @throws Exception
*/
@RequestMapping(value = "/mLogin", method = RequestMethod.POST)
// @RequestMapping(value = "/mLogin", method = RequestMethod.POST)
@PostMapping("/mLogin")
public Result<JSONObject> mLogin(@RequestBody SysLoginModel sysLoginModel) {
return loginService.mLogin(sysLoginModel);
}
@@ -134,7 +137,8 @@ public class LoginController {
* @param sysLoginModel
* @return
*/
@RequestMapping(value = "/checkCaptcha", method = RequestMethod.POST)
// @RequestMapping(value = "/checkCaptcha", method = RequestMethod.POST)
@PostMapping("/checkCaptcha")
public Result<T> checkCaptcha(@RequestBody SysLoginModel sysLoginModel){
return loginService.checkCaptcha(sysLoginModel);
}