implement login with SUDIR auth code
This commit is contained in:
1 parent
6bac52cdea
commit
dfc78ddc71
12 files changed
+381
-38
No files matched your search
+11
-10
@@ -12,14 +12,15 @@ type AdminToken struct {
|
||||
}
|
||||
|
||||
type AdminUser struct {
|
||||
tableName string `pg:"?db_schema.users" json:"-"`
|
||||
Id int64 `json:"id"`
|
||||
Image string `json:"image"`
|
||||
FirstName string `json:"firstName"`
|
||||
LastName string `json:"lastName"`
|
||||
Email string `json:"email" valid:"required~Required"`
|
||||
Password string `json:"password,omitempty"`
|
||||
Phone string `json:"phone"`
|
||||
UpdatedAt time.Time `json:"updatedAt" sql:",null"`
|
||||
CreatedAt time.Time `json:"createdAt" sql:",null"`
|
||||
tableName string `pg:"?db_schema.users" json:"-"`
|
||||
SudirUserId string `json:"sudirUserId"`
|
||||
Id int64 `json:"id"`
|
||||
Image string `json:"image"`
|
||||
FirstName string `json:"firstName"`
|
||||
LastName string `json:"lastName"`
|
||||
Email string `json:"email" valid:"required~Required"`
|
||||
Password string `json:"password,omitempty"`
|
||||
Phone string `json:"phone"`
|
||||
UpdatedAt time.Time `json:"updatedAt" sql:",null"`
|
||||
CreatedAt time.Time `json:"createdAt" sql:",null"`
|
||||
}
|
||||
Reference in new issue
Block a user