|
@@ -13,6 +13,7 @@ import com.ruoyi.common.utils.StringUtils;
|
|
|
import com.ruoyi.common.utils.poi.ExcelUtil;
|
|
|
import com.ruoyi.system.domain.PoUser;
|
|
|
import com.ruoyi.system.service.IPoUserService;
|
|
|
+import io.swagger.annotations.ApiOperation;
|
|
|
import org.apache.catalina.User;
|
|
|
import org.apache.commons.lang3.ArrayUtils;
|
|
|
import org.springframework.beans.factory.annotation.Autowired;
|
|
@@ -40,6 +41,7 @@ public class PoUserController extends BaseController
|
|
|
/**
|
|
|
* 查询用户列表
|
|
|
*/
|
|
|
+ @ApiOperation("查询用户列表")
|
|
|
@PreAuthorize("@ss.hasPermi('system:user:list')")
|
|
|
@GetMapping("/list")
|
|
|
public TableDataInfo list(PoUser poUser)
|
|
@@ -52,6 +54,7 @@ public class PoUserController extends BaseController
|
|
|
/**
|
|
|
* 导出用户列表
|
|
|
*/
|
|
|
+ @ApiOperation("导出用户列表")
|
|
|
@PreAuthorize("@ss.hasPermi('system:user:export')")
|
|
|
@Log(title = "被分配权限的用户", businessType = BusinessType.EXPORT)
|
|
|
@PostMapping("/export")
|
|
@@ -65,6 +68,7 @@ public class PoUserController extends BaseController
|
|
|
/**
|
|
|
* 根据用户编号获取详细信息
|
|
|
*/
|
|
|
+ @ApiOperation("根据用户编号获取详细信息")
|
|
|
@PreAuthorize("@ss.hasPermi('system:user:query')")
|
|
|
@GetMapping(value = { "/", "/{userId}" })
|
|
|
public AjaxResult getInfo(@PathVariable(value = "userId", required = false) Long userId)
|
|
@@ -82,6 +86,7 @@ public class PoUserController extends BaseController
|
|
|
/**
|
|
|
* 新增分配权限用户
|
|
|
*/
|
|
|
+ @ApiOperation("新增用户")
|
|
|
@PreAuthorize("@ss.hasPermi('system:user:add')")
|
|
|
@Log(title = "获得权限用户", businessType = BusinessType.INSERT)
|
|
|
@PostMapping("/add")
|
|
@@ -102,6 +107,7 @@ public class PoUserController extends BaseController
|
|
|
/**
|
|
|
* 修改用户
|
|
|
*/
|
|
|
+ @ApiOperation("修改用户")
|
|
|
@PreAuthorize("@ss.hasPermi('system:user:edit')")
|
|
|
@Log(title = "修改权限用户", businessType = BusinessType.UPDATE)
|
|
|
@PutMapping("/edit")
|
|
@@ -131,6 +137,7 @@ public class PoUserController extends BaseController
|
|
|
/**
|
|
|
* 删除用户
|
|
|
*/
|
|
|
+ @ApiOperation("删除用户")
|
|
|
@PreAuthorize("@ss.hasPermi('system:user:remove')")
|
|
|
@Log(title = "删除权限用户", businessType = BusinessType.DELETE)
|
|
|
@DeleteMapping("/{userIds}")
|
|
@@ -146,6 +153,7 @@ public class PoUserController extends BaseController
|
|
|
/**
|
|
|
* 重置密码
|
|
|
*/
|
|
|
+ @ApiOperation("重置密码")
|
|
|
@PreAuthorize("@ss.hasPermi('system:user:resetPwd')")
|
|
|
@Log(title = "用户管理", businessType = BusinessType.UPDATE)
|
|
|
@PutMapping("/resetPwd")
|
|
@@ -162,6 +170,7 @@ public class PoUserController extends BaseController
|
|
|
/**
|
|
|
* 状态修改
|
|
|
*/
|
|
|
+ @ApiOperation("状态修改")
|
|
|
@PreAuthorize("@ss.hasPermi('system:user:edit')")
|
|
|
@Log(title = "用户管理", businessType = BusinessType.UPDATE)
|
|
|
@PutMapping("/changeStatus")
|