|
@@ -8,10 +8,7 @@ import com.qmth.sop.business.service.SysUserService;
|
|
|
import com.qmth.sop.common.contant.SystemConstant;
|
|
|
import com.qmth.sop.common.util.Result;
|
|
|
import com.qmth.sop.common.util.ResultUtil;
|
|
|
-import io.swagger.annotations.Api;
|
|
|
-import io.swagger.annotations.ApiOperation;
|
|
|
-import io.swagger.annotations.ApiResponse;
|
|
|
-import io.swagger.annotations.ApiResponses;
|
|
|
+import io.swagger.annotations.*;
|
|
|
import org.springframework.validation.BindingResult;
|
|
|
import org.springframework.web.bind.annotation.*;
|
|
|
|
|
@@ -40,12 +37,12 @@ public class SysUserController {
|
|
|
@ApiOperation(value = "查询")
|
|
|
@RequestMapping(value = "/list", method = RequestMethod.POST)
|
|
|
@ApiResponses({@ApiResponse(code = 200, message = "返回信息", response = UserDto.class)})
|
|
|
- public Result list(@RequestParam(value = "userInfo", required = false) String userInfo,
|
|
|
- @RequestParam(value = "orgId", required = false) Long orgId,
|
|
|
- @RequestParam(value = "roleId", required = false) Long roleId,
|
|
|
- @RequestParam(value = "enable", required = false) Boolean enable,
|
|
|
- @RequestParam @Min(SystemConstant.PAGE_NUMBER_MIN) Integer pageNumber,
|
|
|
- @RequestParam @Min(SystemConstant.PAGE_SIZE_MIN) @Max(SystemConstant.PAGE_SIZE_MAX) Integer pageSize) {
|
|
|
+ public Result list(@ApiParam(value = "登录名或真实姓名或手机号") @RequestParam(required = false) String userInfo,
|
|
|
+ @ApiParam(value = "机构id") @RequestParam(required = false) Long orgId,
|
|
|
+ @ApiParam(value = "角色id") @RequestParam(required = false) Long roleId,
|
|
|
+ @ApiParam(value = "是否启用") @RequestParam(required = false) Boolean enable,
|
|
|
+ @ApiParam(value = "页码", required = true) @RequestParam @Min(SystemConstant.PAGE_NUMBER_MIN) Integer pageNumber,
|
|
|
+ @ApiParam(value = "页数", required = true) @RequestParam @Min(SystemConstant.PAGE_SIZE_MIN) @Max(SystemConstant.PAGE_SIZE_MAX) Integer pageSize) {
|
|
|
return ResultUtil.ok(sysUserService.query(new Page<>(pageNumber, pageSize), userInfo, orgId, roleId, enable));
|
|
|
}
|
|
|
|