This commit is contained in:
mindol1004
2024-10-21 10:22:31 +09:00
parent ac844f4ca3
commit d5e8941d5d
3 changed files with 4 additions and 2 deletions

View File

@@ -51,6 +51,7 @@ public class SignUpRequest {
.approved(false) .approved(false)
.userRole(userRole) .userRole(userRole)
.createdBy(userId) .createdBy(userId)
.modifiedBy(userId)
.build(); .build();
} }

View File

@@ -14,7 +14,7 @@ public class UserManagementResponse {
private final String userId; private final String userId;
private final String userName; private final String userName;
private final String email; private final String email;
private final boolean isApproved; private final boolean approved;
private final AgentUserRole userRole; private final AgentUserRole userRole;
public static UserManagementResponse valueOf(AgentUser user) { public static UserManagementResponse valueOf(AgentUser user) {

View File

@@ -51,7 +51,7 @@ public class AgentUser extends AuditEntity {
private AgentUserRole userRole; private AgentUserRole userRole;
@Builder @Builder
public AgentUser(String userId, String password, String name, AgentUserRole userRole, String email, boolean approved, String createdBy) { public AgentUser(String userId, String password, String name, AgentUserRole userRole, String email, boolean approved, String createdBy, String modifiedBy) {
this.userId = userId; this.userId = userId;
this.password = password; this.password = password;
this.name = name; this.name = name;
@@ -59,6 +59,7 @@ public class AgentUser extends AuditEntity {
this.email = email; this.email = email;
this.approved = approved; this.approved = approved;
this.createdBy = createdBy; this.createdBy = createdBy;
this.modifiedBy = modifiedBy;
} }
public void changePassword(String newPassword) { public void changePassword(String newPassword) {