@@ -95,12 +95,30 @@ public interface UserEndpoints
95
95
96
96
@ Operation (
97
97
tags = TAG_USER_PROFILE_PHOTO_MANAGEMENT ,
98
- operationId = "deleteUserProfilePhoto " ,
99
- summary = "Delete current users profile photo" ,
100
- description = "Remove the profile Photo associated with the current User within Lowcoder."
98
+ operationId = "uploadUserProfilePhotoById " ,
99
+ summary = "Upload specific Users profile photo" ,
100
+ description = "Upload or change specific profile photo within Lowcoder for personalization ."
101
101
)
102
- @ DeleteMapping ("/photo" )
103
- public Mono <ResponseView <Void >> deleteProfilePhoto ();
102
+ @ PostMapping (value = "/photo/{orgId}/{userId}" , consumes = MediaType .MULTIPART_FORM_DATA_VALUE )
103
+ public Mono <ResponseView <Boolean >> uploadProfilePhotoById (@ PathVariable String orgId , @ PathVariable String userId , @ RequestPart ("file" ) Mono <Part > fileMono );
104
+
105
+ @ Operation (
106
+ tags = TAG_USER_PROFILE_PHOTO_MANAGEMENT ,
107
+ operationId = "deleteUserProfilePhotoById" ,
108
+ summary = "Delete specific users profile photo" ,
109
+ description = "Remove the profile Photo associated with the specific User within Lowcoder."
110
+ )
111
+
112
+ @ DeleteMapping ("/photo/{orgId}/{userId}" )
113
+ public Mono <ResponseView <Void >> deleteProfilePhotoById (@ PathVariable String orgId , @ PathVariable String userId );
114
+ @ Operation (
115
+ tags = TAG_USER_PROFILE_PHOTO_MANAGEMENT ,
116
+ operationId = "deleteUserProfilePhoto" ,
117
+ summary = "Delete current users profile photo" ,
118
+ description = "Remove the profile Photo associated with the current User within Lowcoder."
119
+ )
120
+ @ DeleteMapping ("/photo" )
121
+ public Mono <ResponseView <Void >> deleteProfilePhoto ();
104
122
105
123
@ Operation (
106
124
tags = TAG_USER_PROFILE_PHOTO_MANAGEMENT ,
0 commit comments