|
@@ -11,6 +11,9 @@ import com.diagbot.entity.Permission;
|
|
|
import com.diagbot.entity.User;
|
|
|
import com.diagbot.facade.PermissionFacade;
|
|
|
import com.diagbot.facade.UserFacade;
|
|
|
+import com.diagbot.vo.AppkeySecretVO;
|
|
|
+import com.diagbot.vo.ResetPasswordVO;
|
|
|
+import com.diagbot.vo.UserLoginVO;
|
|
|
import com.diagbot.vo.UserSaveVO;
|
|
|
import io.swagger.annotations.Api;
|
|
|
import io.swagger.annotations.ApiOperation;
|
|
@@ -66,8 +69,8 @@ public class UserController {
|
|
|
"password:密码, 必填<br> ")
|
|
|
@PostMapping("/login")
|
|
|
@SysLogger("login")
|
|
|
- public RespDTO<LoginDTO> login(@RequestParam String username, @RequestParam String password) {
|
|
|
- return userFacade.login(username, password);
|
|
|
+ public RespDTO<LoginDTO> login(@RequestBody UserLoginVO userLoginVO) {
|
|
|
+ return userFacade.login(userLoginVO.getUsername(), userLoginVO.getPassword());
|
|
|
}
|
|
|
|
|
|
|
|
@@ -78,8 +81,8 @@ public class UserController {
|
|
|
@PostMapping("/resetPassword")
|
|
|
@SysLogger("resetPassword")
|
|
|
@Transactional
|
|
|
- public RespDTO<Boolean> resetPassword(String username, String password, String diffPassword) {
|
|
|
- return userFacade.resetPassword(username, password, diffPassword);
|
|
|
+ public RespDTO<Boolean> resetPassword(@RequestBody ResetPasswordVO resetPasswordVO) {
|
|
|
+ return userFacade.resetPassword(resetPasswordVO.getUsername(), resetPasswordVO.getPassword(), resetPasswordVO.getDiffPassword());
|
|
|
}
|
|
|
|
|
|
|
|
@@ -116,12 +119,12 @@ public class UserController {
|
|
|
return userFacade.index(page, userSaveVO);
|
|
|
}
|
|
|
|
|
|
- @ApiOperation(value = "获取资源信息[by:zhoutg]",
|
|
|
+ @ApiOperation(value = "获取资源信息,接口未用[by:zhoutg]",
|
|
|
notes = "appkey:用户名,必填<br>" +
|
|
|
"secret:密码, 必填<br> ")
|
|
|
@PostMapping("/getPermission")
|
|
|
- public RespDTO<Permission> getPermission(@RequestParam String appkey, @RequestParam String secret) {
|
|
|
- return permissionFacade.getPermission(appkey, secret);
|
|
|
+ public RespDTO<Permission> getPermission(@RequestBody AppkeySecretVO appkeySecretVO) {
|
|
|
+ return permissionFacade.getPermission(appkeySecretVO.getAppkey(), appkeySecretVO.getSecret());
|
|
|
}
|
|
|
|
|
|
|