|
|
@@ -12,7 +12,7 @@ import cn.reghao.devops.mgr.admin.service.AccountSessionService;
|
|
|
import cn.reghao.devops.mgr.admin.service.RoleService;
|
|
|
import cn.reghao.devops.mgr.admin.service.UserContext;
|
|
|
import cn.reghao.jutil.jdk.result.Result;
|
|
|
-import cn.reghao.jutil.jdk.result.WebResult;
|
|
|
+import cn.reghao.jutil.web.WebResult;
|
|
|
import io.swagger.annotations.Api;
|
|
|
import io.swagger.annotations.ApiOperation;
|
|
|
import org.springframework.data.domain.Page;
|
|
|
@@ -56,12 +56,6 @@ public class UserPageController {
|
|
|
return "/admin/user/userinfo";
|
|
|
}
|
|
|
|
|
|
- @ApiOperation(value = "修改个人密码页面", notes = "N")
|
|
|
- @GetMapping("/passwd/edit")
|
|
|
- public String editPasswdPage(Model model) {
|
|
|
- return "/admin/user/userpasswd";
|
|
|
- }
|
|
|
-
|
|
|
@ApiOperation(value = "用户列表页面", notes = "N")
|
|
|
@PreAuthorize("hasRole('ROLE_ADMIN')")
|
|
|
@GetMapping
|
|
|
@@ -134,28 +128,6 @@ public class UserPageController {
|
|
|
return "/admin/user/role";
|
|
|
}
|
|
|
|
|
|
- @ApiOperation(value = "修改个人头像", notes = "N")
|
|
|
- @PostMapping(value = "/avatar", produces = MediaType.APPLICATION_JSON_VALUE)
|
|
|
- @ResponseBody
|
|
|
- public String userAvatar(MultipartFile file) {
|
|
|
- return WebResult.failWithMsg("接口未实现");
|
|
|
- }
|
|
|
-
|
|
|
- @ApiOperation(value = "修改个人信息", notes = "N")
|
|
|
- @PostMapping(value = "/update", produces = MediaType.APPLICATION_JSON_VALUE)
|
|
|
- @ResponseBody
|
|
|
- public String editUserInfo(@Validated AccountProfile accountProfile) {
|
|
|
- accountService.updateAccountProfile(accountProfile);
|
|
|
- return WebResult.success();
|
|
|
- }
|
|
|
-
|
|
|
- @ApiOperation(value = "修改个人密码", notes = "N")
|
|
|
- @PostMapping(value = "/passwd/update", produces = MediaType.APPLICATION_JSON_VALUE)
|
|
|
- @ResponseBody
|
|
|
- public String editPasswd(UpdatePasswordDto updatePasswordDto) {
|
|
|
- return WebResult.failWithMsg("接口未实现");
|
|
|
- }
|
|
|
-
|
|
|
@ApiOperation(value = "创建用户", notes = "N")
|
|
|
@PreAuthorize("hasRole('ROLE_ADMIN')")
|
|
|
@PostMapping(produces = MediaType.APPLICATION_JSON_VALUE)
|
|
|
@@ -165,14 +137,6 @@ public class UserPageController {
|
|
|
return WebResult.result(result);
|
|
|
}
|
|
|
|
|
|
- @ApiOperation(value = "批量创建用户", notes = "N")
|
|
|
- @PreAuthorize("hasRole('ROLE_ADMIN')")
|
|
|
- @PostMapping(value = "/batch", produces = MediaType.APPLICATION_JSON_VALUE)
|
|
|
- @ResponseBody
|
|
|
- public String batchAdd(MultipartFile file) {
|
|
|
- return WebResult.failWithMsg("接口未实现");
|
|
|
- }
|
|
|
-
|
|
|
@ApiOperation(value = "删除用户", notes = "N")
|
|
|
@PreAuthorize("hasRole('ROLE_ADMIN')")
|
|
|
@DeleteMapping(value = "/delete/{id}", produces = MediaType.APPLICATION_JSON_VALUE)
|
|
|
@@ -208,4 +172,38 @@ public class UserPageController {
|
|
|
//userIds.forEach(userId -> accountService.updateAccountStatus(userId, enable));
|
|
|
return WebResult.failWithMsg("接口未实现");
|
|
|
}
|
|
|
+
|
|
|
+ // *****************************************************************************************************************
|
|
|
+ // TODO 待删除
|
|
|
+ // *****************************************************************************************************************
|
|
|
+ @ApiOperation(value = "修改个人密码页面", notes = "N")
|
|
|
+ @GetMapping("/passwd/edit")
|
|
|
+ @Deprecated
|
|
|
+ public String editPasswdPage(Model model) {
|
|
|
+ return "/admin/user/userpasswd";
|
|
|
+ }
|
|
|
+
|
|
|
+ @ApiOperation(value = "修改个人头像", notes = "N")
|
|
|
+ @PostMapping(value = "/avatar", produces = MediaType.APPLICATION_JSON_VALUE)
|
|
|
+ @ResponseBody
|
|
|
+ @Deprecated
|
|
|
+ public String userAvatar(MultipartFile file) {
|
|
|
+ return WebResult.failWithMsg("接口未实现");
|
|
|
+ }
|
|
|
+
|
|
|
+ @ApiOperation(value = "修改个人信息", notes = "N")
|
|
|
+ @PostMapping(value = "/update", produces = MediaType.APPLICATION_JSON_VALUE)
|
|
|
+ @ResponseBody
|
|
|
+ @Deprecated
|
|
|
+ public String editUserInfo(@Validated AccountProfile accountProfile) {
|
|
|
+ return WebResult.failWithMsg("接口未实现");
|
|
|
+ }
|
|
|
+
|
|
|
+ @ApiOperation(value = "修改个人密码", notes = "N")
|
|
|
+ @PostMapping(value = "/passwd/update", produces = MediaType.APPLICATION_JSON_VALUE)
|
|
|
+ @ResponseBody
|
|
|
+ @Deprecated
|
|
|
+ public String editPasswd(UpdatePasswordDto updatePasswordDto) {
|
|
|
+ return WebResult.failWithMsg("接口未实现");
|
|
|
+ }
|
|
|
}
|