Customer Order

This commit is contained in:
aditya.siregar
2024-08-04 01:16:25 +07:00
parent 265dd9b6e8
commit bdf930445c
30 changed files with 832 additions and 43 deletions
+4
View File
@@ -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
}