处理问题
This commit is contained in:
parent
1f7b780a6f
commit
5e1059a543
@ -8,7 +8,6 @@ import ink.wgink.pojo.dtos.role.RoleUserDTO;
|
||||
import ink.wgink.pojo.pos.RolePO;
|
||||
import ink.wgink.pojo.result.SuccessResultList;
|
||||
import ink.wgink.pojo.vos.IdsVO;
|
||||
import org.springframework.web.bind.annotation.PathVariable;
|
||||
|
||||
import java.util.List;
|
||||
import java.util.Map;
|
||||
@ -23,8 +22,8 @@ import java.util.Map;
|
||||
@RemoteService("/resource/role/user")
|
||||
public interface IRoleUserRemoteService {
|
||||
|
||||
@RemoteGetMethod("/list-userid/roleid/{roleId}")
|
||||
List<String> listUserIdByRoleId(@RemoteServerParams String userCenter, @PathVariable("roleID") String roleId, @RemoteQueryParams("access_token") String accessToken);
|
||||
@RemoteGetMethod("/list-userid/role-id/{roleId}")
|
||||
List<String> listUserIdByRoleId(@RemoteServerParams String userCenter, @RemotePathParams("roleId") String roleId, @RemoteQueryParams("access_token") String accessToken);
|
||||
|
||||
@RemotePostMethod("/list-userid/role-ids")
|
||||
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);
|
||||
|
||||
@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);
|
||||
}
|
||||
|
@ -39,7 +39,7 @@ public class RoleUserResourceController extends DefaultBaseController {
|
||||
@ApiImplicitParam(name = "roleId", value = "用户角色ID", paramType = "path"),
|
||||
})
|
||||
@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) {
|
||||
return roleUserService.listUserId(roleId);
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user