xiaoyong931011
2022-07-07 c49dd989ed6afddefb546672a17ec6745698edc9
src/main/java/com/xcong/farmer/cms/modules/system/controller/AdminUserController.java
@@ -37,21 +37,17 @@
    }
    @ApiOperation(value = "激活用户", notes = "激活用户")
    @GetMapping(value = "/activeUser/{id}")
    public Result activeUser(@PathVariable(value = "id") Long id) {
    @PostMapping(value = "/activeUser")
    public Result activeUser(@RequestBody @Valid AdminActiveUserDto adminActiveUserDto) {
        Long id = adminActiveUserDto.getId();
        return iUserService.activeUser(id);
    }
    @ApiOperation(value = "禁用用户", notes = "禁用用户")
    @GetMapping(value = "/forbiddenUser/{id}")
    public Result forbiddenUser(@PathVariable(value = "id") Long id) {
    @PostMapping(value = "/forbiddenUser")
    public Result forbiddenUser(@RequestBody @Valid AdminForbiddenUserDto adminForbiddenUserDto) {
        Long id = adminForbiddenUserDto.getId();
        return iUserService.forbiddenUser(id);
    }
    @ApiOperation(value = "删除用户", notes = "删除用户")
    @GetMapping(value = "/deleteUser/{id}")
    public Result deleteUser(@PathVariable(value = "id") Long id) {
        return iUserService.deleteUser(id);
    }
    @ApiOperation(value = "查看用户详情", notes = "查看用户详情")
@@ -64,6 +60,12 @@
    @GetMapping(value = "/userInfo")
    public Result userInfo() {
        return iUserService.userInfo();
    }
    @ApiOperation(value = "首页", notes = "首页")
    @GetMapping(value = "/viewHomePage")
    public Result viewHomePage() {
        return iUserService.viewHomePage();
    }
    @ApiOperation(value = "更新系统用户", notes = "更新系统用户")
@@ -79,8 +81,9 @@
    }
    @ApiOperation(value = "重置密码", notes = "重置密码")
    @GetMapping(value = "/resetPassword/{id}")
    public Result resetPassword(@PathVariable(value = "id") Long id) {
    @PostMapping(value = "/resetPassword")
    public Result resetPassword(@RequestBody @Valid AdminResetPasswordDto adminResetPasswordDto) {
        Long id = adminResetPasswordDto.getId();
        return iUserService.resetPassword(id);
    }