|
|
@ -31,7 +31,6 @@ import com.epmet.commons.tools.validator.group.UpdateGroup; |
|
|
|
import com.epmet.dto.OperUserDTO; |
|
|
|
import com.epmet.dto.result.QueryOperUserResultDto; |
|
|
|
import com.epmet.excel.OperUserExcel; |
|
|
|
import com.epmet.feign.OperRoleUserFeignClient; |
|
|
|
import com.epmet.service.OperUserService; |
|
|
|
import org.springframework.beans.factory.annotation.Autowired; |
|
|
|
import org.springframework.web.bind.annotation.*; |
|
|
@ -53,8 +52,6 @@ public class OperUserController { |
|
|
|
|
|
|
|
@Autowired |
|
|
|
private OperUserService operUserService; |
|
|
|
@Autowired |
|
|
|
private OperRoleUserFeignClient operRoleUserFeignClient; |
|
|
|
|
|
|
|
@GetMapping("page") |
|
|
|
public Result<PageData<OperUserDTO>> page(@RequestParam Map<String, Object> params) { |
|
|
@ -65,9 +62,7 @@ public class OperUserController { |
|
|
|
@GetMapping("{id}") |
|
|
|
public Result<OperUserDTO> get(@PathVariable("id") String id) { |
|
|
|
OperUserDTO data = operUserService.get(id); |
|
|
|
//用户角色列表
|
|
|
|
Result<List<String>> roleIdList = operRoleUserFeignClient.getRoleIdList(id); |
|
|
|
data.setRoleIdList(roleIdList.getData()); |
|
|
|
|
|
|
|
return new Result<OperUserDTO>().ok(data); |
|
|
|
} |
|
|
|
|
|
|
|