...
|
...
|
@@ -74,7 +74,7 @@ func (translator *UserTranslator) ToRelevantFromRepresentation(user *UserDetail) |
|
|
var roles []*domain.Role
|
|
|
for _, role := range user.UserRole {
|
|
|
roles = append(roles, &domain.Role{
|
|
|
RoleId: int64(role.RoleID),
|
|
|
RoleId: role.RoleID,
|
|
|
RoleName: role.RoleName,
|
|
|
})
|
|
|
}
|
...
|
...
|
@@ -104,6 +104,7 @@ func (translator *UserTranslator) ToRelevantFromRepresentation(user *UserDetail) |
|
|
UserName: user.UserInfo.UserName,
|
|
|
UserPhone: user.UserInfo.Phone,
|
|
|
UserAccount: "",
|
|
|
UserCode: user.UserCode,
|
|
|
},
|
|
|
UserType: user.UserType,
|
|
|
UserName: user.UserInfo.UserName,
|
...
|
...
|
@@ -269,6 +270,7 @@ func (translator *UserTranslator) ToSalesmanFromRepresentation(user *UserDetail) |
|
|
UserName: user.UserInfo.UserName,
|
|
|
UserPhone: user.UserInfo.Phone,
|
|
|
UserAccount: "",
|
|
|
UserCode: user.UserCode,
|
|
|
},
|
|
|
UserType: user.UserType,
|
|
|
UserName: user.UserInfo.UserName,
|
...
|
...
|
@@ -316,6 +318,7 @@ func (translator *UserTranslator) ToOperatorFromRepresentation(user *UserDetail) |
|
|
UserName: user.UserInfo.UserName,
|
|
|
UserPhone: user.UserInfo.Phone,
|
|
|
UserAvatar: user.UserInfo.Avatar,
|
|
|
UserCode: user.UserCode,
|
|
|
},
|
|
|
UserType: user.UserType,
|
|
|
UserName: user.UserInfo.UserName,
|
...
|
...
|
@@ -369,6 +372,7 @@ func (translator *UserTranslator) ToUserFromRepresentation(user *UserDetail) (*d |
|
|
UserName: user.UserInfo.UserName,
|
|
|
UserPhone: user.UserInfo.Phone,
|
|
|
UserAvatar: user.UserInfo.Avatar,
|
|
|
UserCode: user.UserCode,
|
|
|
},
|
|
|
UserType: user.UserType,
|
|
|
UserName: user.UserInfo.UserName,
|
...
|
...
|
|