处理问题

This commit is contained in:
wanggeng 2021-11-11 17:17:10 +08:00
parent 1f7b780a6f
commit 5e1059a543
2 changed files with 4 additions and 5 deletions

View File

@ -8,7 +8,6 @@ import ink.wgink.pojo.dtos.role.RoleUserDTO;
import ink.wgink.pojo.pos.RolePO; import ink.wgink.pojo.pos.RolePO;
import ink.wgink.pojo.result.SuccessResultList; import ink.wgink.pojo.result.SuccessResultList;
import ink.wgink.pojo.vos.IdsVO; import ink.wgink.pojo.vos.IdsVO;
import org.springframework.web.bind.annotation.PathVariable;
import java.util.List; import java.util.List;
import java.util.Map; import java.util.Map;
@ -23,8 +22,8 @@ import java.util.Map;
@RemoteService("/resource/role/user") @RemoteService("/resource/role/user")
public interface IRoleUserRemoteService { public interface IRoleUserRemoteService {
@RemoteGetMethod("/list-userid/roleid/{roleId}") @RemoteGetMethod("/list-userid/role-id/{roleId}")
List<String> listUserIdByRoleId(@RemoteServerParams String userCenter, @PathVariable("roleID") String roleId, @RemoteQueryParams("access_token") String accessToken); List<String> listUserIdByRoleId(@RemoteServerParams String userCenter, @RemotePathParams("roleId") String roleId, @RemoteQueryParams("access_token") String accessToken);
@RemotePostMethod("/list-userid/role-ids") @RemotePostMethod("/list-userid/role-ids")
List<String> listUserIdByRoleIds(@RemoteServerParams String userCenter, @RemoteQueryParams("access_token") String accessToken, @RemoteJsonBodyParams IdsVO idsVO); List<String> listUserIdByRoleIds(@RemoteServerParams String userCenter, @RemoteQueryParams("access_token") String accessToken, @RemoteJsonBodyParams IdsVO idsVO);
@ -33,5 +32,5 @@ public interface IRoleUserRemoteService {
SuccessResultList<List<RoleUserDTO>> listPage(@RemoteServerParams String userCenter, @RemotePathParams("roleId") String roleId, @RemoteQueryParams("access_token") String accessToken, @RemoteQueryParams("page") int page, @RemoteQueryParams("rows") int rows, @RemoteQueryParamsMap Map<String, Object> params); SuccessResultList<List<RoleUserDTO>> listPage(@RemoteServerParams String userCenter, @RemotePathParams("roleId") String roleId, @RemoteQueryParams("access_token") String accessToken, @RemoteQueryParams("page") int page, @RemoteQueryParams("rows") int rows, @RemoteQueryParamsMap Map<String, Object> params);
@RemoteGetMethod("/list-role-po/userid/{userId}") @RemoteGetMethod("/list-role-po/userid/{userId}")
List<RolePO> listRolePOByUserId(@RemoteServerParams String userCenter, @PathVariable("userId") String userId, @RemoteQueryParams("access_token") String accessToken); List<RolePO> listRolePOByUserId(@RemoteServerParams String userCenter, @RemotePathParams("userId") String userId, @RemoteQueryParams("access_token") String accessToken);
} }

View File

@ -39,7 +39,7 @@ public class RoleUserResourceController extends DefaultBaseController {
@ApiImplicitParam(name = "roleId", value = "用户角色ID", paramType = "path"), @ApiImplicitParam(name = "roleId", value = "用户角色ID", paramType = "path"),
}) })
@ApiResponses({@ApiResponse(code = 400, message = "请求失败", response = ErrorResult.class)}) @ApiResponses({@ApiResponse(code = 400, message = "请求失败", response = ErrorResult.class)})
@GetMapping("list-userid/roleid/{roleId}") @GetMapping("list-userid/role-id/{roleId}")
public List<String> listUserIdByRoleId(@PathVariable("roleId") String roleId) { public List<String> listUserIdByRoleId(@PathVariable("roleId") String roleId) {
return roleUserService.listUserId(roleId); return roleUserService.listUserId(roleId);
} }