...
|
...
|
@@ -105,8 +105,10 @@ func (translator *UserTranslator) ToRelevantFromRepresentation(user *UserDetail) |
|
|
UserPhone: user.UserInfo.Phone,
|
|
|
UserAccount: "",
|
|
|
},
|
|
|
UserType: user.UserType,
|
|
|
Status: user.EnableStatus,
|
|
|
UserType: user.UserType,
|
|
|
UserName: user.UserInfo.UserName,
|
|
|
UserPhone: user.UserInfo.Phone,
|
|
|
Status: user.EnableStatus,
|
|
|
Company: &domain.Company{
|
|
|
CompanyId: user.Company.CompanyId,
|
|
|
CompanyLogo: "",
|
...
|
...
|
@@ -119,13 +121,15 @@ func (translator *UserTranslator) ToReferrerFromRepresentation(user *UserDetail) |
|
|
return &domain.Referrer{
|
|
|
UserId: user.UserId,
|
|
|
UserBaseId: user.UserBaseId,
|
|
|
Role: nil,
|
|
|
Roles: nil,
|
|
|
Orgs: nil,
|
|
|
Org: nil,
|
|
|
Department: nil,
|
|
|
Company: nil,
|
|
|
UserInfo: nil,
|
|
|
UserType: 0,
|
|
|
UserName: user.UserInfo.UserName,
|
|
|
UserPhone: user.UserInfo.Phone,
|
|
|
}, nil
|
|
|
}
|
|
|
|
...
|
...
|
@@ -139,6 +143,8 @@ func (translator *UserTranslator) ToUndertakerFromRepresentation(user *UserDetai |
|
|
Roles: nil,
|
|
|
UserInfo: nil,
|
|
|
UserType: 0,
|
|
|
UserName: user.UserInfo.UserName,
|
|
|
UserPhone: user.UserInfo.Phone,
|
|
|
Status: 0,
|
|
|
Company: nil,
|
|
|
ContractAttachment: nil,
|
...
|
...
|
@@ -149,13 +155,15 @@ func (translator *UserTranslator) ToSalesmanFromRepresentation(user *UserDetail) |
|
|
return &domain.Salesman{
|
|
|
UserId: user.UserId,
|
|
|
UserBaseId: user.UserBaseId,
|
|
|
Role: nil,
|
|
|
Roles: nil,
|
|
|
Orgs: nil,
|
|
|
Org: nil,
|
|
|
Department: nil,
|
|
|
Company: nil,
|
|
|
UserInfo: nil,
|
|
|
UserType: 0,
|
|
|
UserName: user.UserInfo.UserName,
|
|
|
UserPhone: user.UserInfo.Phone,
|
|
|
}, nil
|
|
|
}
|
|
|
|
...
|
...
|
@@ -166,9 +174,11 @@ func (translator *UserTranslator) ToOperatorFromRepresentation(user *UserDetail) |
|
|
Org: nil,
|
|
|
Orgs: nil,
|
|
|
Department: nil,
|
|
|
Role: nil,
|
|
|
Roles: nil,
|
|
|
UserInfo: nil,
|
|
|
UserType: 0,
|
|
|
UserName: user.UserInfo.UserName,
|
|
|
UserPhone: user.UserInfo.Phone,
|
|
|
Status: 0,
|
|
|
Company: nil,
|
|
|
}, nil
|
...
|
...
|
@@ -181,9 +191,11 @@ func (translator *UserTranslator) ToUserFromRepresentation(user *UserDetail) (*d |
|
|
Org: nil,
|
|
|
Orgs: nil,
|
|
|
Department: nil,
|
|
|
Role: nil,
|
|
|
Roles: nil,
|
|
|
UserInfo: nil,
|
|
|
UserType: 0,
|
|
|
UserName: user.UserInfo.UserName,
|
|
|
UserPhone: user.UserInfo.Phone,
|
|
|
Status: 0,
|
|
|
Company: nil,
|
|
|
}, nil
|
...
|
...
|
|