接口重复
This commit is contained in:
parent
25f25e556e
commit
cc790e4d41
@ -48,7 +48,8 @@ public class DepartmentUserResourceController extends DefaultBaseController {
|
|||||||
@ApiResponses({@ApiResponse(code = 400, message = "请求失败", response = ErrorResult.class)})
|
@ApiResponses({@ApiResponse(code = 400, message = "请求失败", response = ErrorResult.class)})
|
||||||
@GetMapping("list/{departmentId}")
|
@GetMapping("list/{departmentId}")
|
||||||
public List<DepartmentUserDTO> list(@PathVariable("departmentId") String departmentId) {
|
public List<DepartmentUserDTO> list(@PathVariable("departmentId") String departmentId) {
|
||||||
return departmentUserService.list(departmentId);
|
Map<String, Object> params = requestParams();
|
||||||
|
return departmentUserService.list(departmentId, params);
|
||||||
}
|
}
|
||||||
|
|
||||||
@ApiOperation(value = "组织部门用户列表", notes = "通过部门ID列表获取组织部门用户列表接口")
|
@ApiOperation(value = "组织部门用户列表", notes = "通过部门ID列表获取组织部门用户列表接口")
|
||||||
@ -108,16 +109,4 @@ public class DepartmentUserResourceController extends DefaultBaseController {
|
|||||||
return departmentUserService.listPage(departmentId, page);
|
return departmentUserService.listPage(departmentId, page);
|
||||||
}
|
}
|
||||||
|
|
||||||
@ApiOperation(value = "组织部门用户列表", notes = "组织部门用户列表接口")
|
|
||||||
@ApiImplicitParams({
|
|
||||||
@ApiImplicitParam(name = "departmentId", value = "部门ID", paramType = "path"),
|
|
||||||
@ApiImplicitParam(name = "keywords", value = "关键字", paramType = "query")
|
|
||||||
})
|
|
||||||
@ApiResponses({@ApiResponse(code = 400, message = "请求失败", response = ErrorResult.class)})
|
|
||||||
@GetMapping("list/{departmentId}")
|
|
||||||
public List<DepartmentUserDTO> listPage(@PathVariable("departmentId") String departmentId) {
|
|
||||||
Map<String, Object> params = requestParams();
|
|
||||||
return departmentUserService.list(departmentId, params);
|
|
||||||
}
|
|
||||||
|
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user