You cannot select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
36 lines
1.3 KiB
Java
36 lines
1.3 KiB
Java
package com.glxp.api.controller.auth;
|
|
|
|
import com.github.pagehelper.PageInfo;
|
|
import com.glxp.api.annotation.AuthRuleAnnotation;
|
|
import com.glxp.api.req.auth.DeptUserReqeust;
|
|
import com.glxp.api.res.PageSimpleResponse;
|
|
import com.glxp.api.res.auth.DeptUserResponse;
|
|
import com.glxp.api.service.auth.DeptUserService;
|
|
import com.glxp.api.common.res.BaseResponse;
|
|
import com.glxp.api.common.util.ResultVOUtils;
|
|
import org.springframework.web.bind.annotation.GetMapping;
|
|
import org.springframework.web.bind.annotation.RestController;
|
|
|
|
import javax.annotation.Resource;
|
|
import java.util.List;
|
|
|
|
@RestController
|
|
public class DeptUserController {
|
|
|
|
|
|
@Resource
|
|
DeptUserService deptUserService;
|
|
|
|
@AuthRuleAnnotation("")
|
|
@GetMapping("udi/auth/dept/user/filter")
|
|
public BaseResponse filterList(DeptUserReqeust deptUserReqeust) {
|
|
List<DeptUserResponse> deptEntityList = deptUserService.selectJoinDeptUser(deptUserReqeust);
|
|
PageInfo<DeptUserResponse> pageInfo = new PageInfo<>(deptEntityList);
|
|
PageSimpleResponse<DeptUserResponse> deptEntityPageSimpleResponse = new PageSimpleResponse<>();
|
|
deptEntityPageSimpleResponse.setTotal(pageInfo.getTotal());
|
|
deptEntityPageSimpleResponse.setList(deptEntityList);
|
|
return ResultVOUtils.success(deptEntityPageSimpleResponse);
|
|
}
|
|
|
|
}
|