reformat
This commit is contained in:
1 parent
0d956b6bf6
commit
011aaa50e8
10 files changed
+44
-151
No files matched your search
@@ -0,0 +1,25 @@
|
||||
package entity
|
||||
|
||||
import "time"
|
||||
|
||||
type AdminToken struct {
|
||||
TableName string `sql:"admin_service.tokens" json:"-"`
|
||||
Id int64 `json:"id"`
|
||||
UserId int64 `json:"userId"`
|
||||
Token string `json:"token"`
|
||||
ExpiredAt *time.Time `json:"expiredAt"`
|
||||
CreatedAt time.Time `json:"createdAt" sql:",null"`
|
||||
}
|
||||
|
||||
type AdminUser struct {
|
||||
TableName string `sql:"admin_service.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"`
|
||||
}
|
||||
Reference in new issue
Block a user