class ProfileController {

    @GetMapping("/id/{userId}/get-profile-agreement")
    public RestResult<ProfileAgreementResource> getProfileAgreement(@PathVariable("userId") long userId) {
        return profileService.getProfileAgreement(userId).toGetResponse();
    }

}