Skip to content

Commit

Permalink
[SELC-4667] Fix: Refactor update user request (#403)
Browse files Browse the repository at this point in the history
  • Loading branch information
flaminiaScarciofolo authored Apr 8, 2024
1 parent d43a07f commit e733f73
Show file tree
Hide file tree
Showing 14 changed files with 1,215 additions and 1,498 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,7 @@ public interface UserApiConnector {

Boolean hasPermission(String institutionId, String permission, String productId);

void updateUser(String userId, String institutionId, MutableUserFieldsDto userDto);
void updateUser(String userId, String institutionId, UpdateUserRequestDto userDto);

Collection<UserInfo> getUsers(String institutionId, UserInfo.UserInfoFilter userInfoFilter, String loggedUserId);

Expand Down
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
package it.pagopa.selfcare.dashboard.connector.model.user;

import lombok.Data;

@Data
public class UpdateUserRequestDto {
private String name;
private String surname;
private String email;
}
Original file line number Diff line number Diff line change
@@ -1,15 +1,3 @@
/*
* Party Process Micro Service
* This service is the party process
*
* OpenAPI spec version: {{version}}
* Contact: [email protected]
*
* NOTE: This class is auto generated by the swagger code generator program.
* https://github.com/swagger-api/swagger-codegen.git
* Do not edit the class manually.
*/

package it.pagopa.selfcare.dashboard.connector.model.user;

import it.pagopa.selfcare.commons.base.security.SelfCareAuthority;
Expand All @@ -29,6 +17,7 @@ public class UserInfo {
private Map<String, ProductInfo> products;
private String status;
private String institutionId;
private String userMailUuid;

@Data
public static class UserInfoFilter {
Expand Down
Loading

0 comments on commit e733f73

Please sign in to comment.