|
|
@ -29,6 +29,7 @@ import com.epmet.dto.UserRoleDTO; |
|
|
|
import com.epmet.dto.form.UserResiInfoFormDTO; |
|
|
|
import com.epmet.dto.form.UserRoleFormDTO; |
|
|
|
import com.epmet.dto.result.NewUserRoleResultDTO; |
|
|
|
import com.epmet.dto.result.UserRoleResultDTO; |
|
|
|
import com.epmet.excel.UserRoleExcel; |
|
|
|
import com.epmet.service.UserRoleService; |
|
|
|
import org.springframework.beans.factory.annotation.Autowired; |
|
|
@ -153,7 +154,7 @@ public class UserRoleController { |
|
|
|
* @return com.epmet.commons.tools.utils.Result<com.epmet.dto.result.UserRoleResultDTO> |
|
|
|
*/ |
|
|
|
@PostMapping("getresidentrole") |
|
|
|
public Result<NewUserRoleResultDTO> getUserResidentRole(@RequestBody UserResiInfoFormDTO formDTO) { |
|
|
|
return new Result<NewUserRoleResultDTO>().ok(userRoleService.getUserResidentRole(formDTO.getCustomerId(), formDTO.getUserId())); |
|
|
|
public Result<UserRoleResultDTO> getUserResidentRole(@RequestBody UserResiInfoFormDTO formDTO) { |
|
|
|
return new Result<UserRoleResultDTO>().ok(userRoleService.getUserResidentRole(formDTO.getCustomerId(), formDTO.getUserId())); |
|
|
|
} |
|
|
|
} |
|
|
|