Customer Order
This commit is contained in:
@@ -16,6 +16,7 @@ type User struct {
|
||||
Password string
|
||||
Status userstatus.UserStatus
|
||||
NIK string
|
||||
UserType string
|
||||
CreatedAt time.Time
|
||||
UpdatedAt time.Time
|
||||
RoleID role.Role
|
||||
@@ -29,6 +30,7 @@ type User struct {
|
||||
}
|
||||
|
||||
type AuthenticateUser struct {
|
||||
ID int64
|
||||
Token string
|
||||
Name string
|
||||
RoleID role.Role
|
||||
@@ -40,6 +42,7 @@ type AuthenticateUser struct {
|
||||
SiteName string
|
||||
ResetPassword bool
|
||||
PartnerLicense PartnerLicense
|
||||
UserType string
|
||||
}
|
||||
|
||||
type UserRoleDB struct {
|
||||
@@ -78,6 +81,7 @@ func (u *User) ToUserDB(createdBy int64) (*UserDB, error) {
|
||||
SiteID: u.SiteID,
|
||||
PhoneNumber: u.PhoneNumber,
|
||||
NIK: u.NIK,
|
||||
UserType: u.UserType,
|
||||
}, nil
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user