class AffiliationController {

    @GetMapping("/id/{userId}/get-user-affiliations")
    public RestResult<AffiliationListResource> getUserAffiliations(@PathVariable("userId") long userId) {
        return affiliationService.getUserAffiliations(userId).toGetResponse();
    }

}