| | |
| | | |
| | | import com.xcong.farmer.cms.common.response.Result; |
| | | import com.xcong.farmer.cms.modules.system.dto.AdminAddUserDto; |
| | | import com.xcong.farmer.cms.modules.system.dto.AdminDeleteDto; |
| | | import com.xcong.farmer.cms.modules.system.dto.AdminUpdateUserDto; |
| | | import com.xcong.farmer.cms.modules.system.dto.AdminUserDto; |
| | | import com.xcong.farmer.cms.modules.system.service.IUserService; |
| | |
| | | import javax.validation.Valid; |
| | | |
| | | @RestController |
| | | @RequestMapping(value = "/user") |
| | | @RequestMapping(value = "/api/user") |
| | | @Slf4j |
| | | @Api(value = "系统用户", tags = "系统用户") |
| | | public class AdminUserController { |
| | |
| | | @ApiResponses({@ApiResponse(code = 200, message = "ok", response = AdminUserVo.class)}) |
| | | @PostMapping(value = "/userInPage") |
| | | public Result getUserInPage(@RequestBody @Valid AdminUserDto adminUserDto) { |
| | | log.info("--->{}", SecurityContextHolder.getContext().getAuthentication()); |
| | | return iUserService.getUserInPage(adminUserDto); |
| | | } |
| | | |
| | |
| | | return iUserService.resetPassword(id); |
| | | } |
| | | |
| | | @ApiOperation(value = "查看用户的全部菜单", notes = "查看用户的全部菜单") |
| | | @GetMapping(value = "/userMenu") |
| | | public Result userMenu() { |
| | | return iUserService.userMenu(); |
| | | } |
| | | |
| | | @ApiOperation(value = "删除系统用户", notes = "删除系统用户") |
| | | @PostMapping(value = "/delObjs") |
| | | public Result delObjs(@RequestBody @Valid AdminDeleteDto adminDeleteDto) { |
| | | return iUserService.delObjs(adminDeleteDto); |
| | | } |
| | | |
| | | } |