| | |
| | | import com.ruoyi.admin.service.UserService; |
| | | import com.ruoyi.common.core.domain.R; |
| | | import com.ruoyi.common.core.utils.StringUtils; |
| | | import com.ruoyi.common.security.annotation.RequiresPermissions; |
| | | import com.ruoyi.common.security.service.TokenService; |
| | | import com.ruoyi.system.api.model.LoginUser; |
| | | import io.swagger.annotations.Api; |
| | |
| | | * @param pageNum 页码 |
| | | * @param pageSize 每页显示条数 |
| | | */ |
| | | @RequiresPermissions("user_list") |
| | | @ApiOperation(value = "用户列表", tags = {"用户管理-用户列表"}) |
| | | @GetMapping(value = "/page") |
| | | @ApiImplicitParams({ |
| | |
| | | * |
| | | * @param id 前台用户id |
| | | */ |
| | | @RequiresPermissions("user_detail") |
| | | @ApiOperation(value = "用户详情", tags = {"用户管理-用户列表"}) |
| | | @GetMapping(value = "/detail") |
| | | @ApiImplicitParams({ |
| | |
| | | * @param id 后台账号id |
| | | * @param enable 启用/关闭 |
| | | */ |
| | | @RequiresPermissions("user_enable") |
| | | @ApiOperation(value = "启用/关闭用户账号", tags = {"用户管理-用户列表"}) |
| | | @GetMapping(value = "/enable") |
| | | @ApiImplicitParams({ |
| | |
| | | * |
| | | * @param ids 前台用户多条id拼接 |
| | | */ |
| | | @RequiresPermissions("user_delete") |
| | | @ApiOperation(value = "批量删除用户", tags = {"用户管理-用户列表"}) |
| | | @GetMapping(value = "/batchDelete") |
| | | @ApiImplicitParams({ |