The highest tagged major version is
v2.
package
Version:
v1.16.0
Opens a new window with list of versions in this module.
Published: Dec 30, 2022
License: Apache-2.0
Opens a new window with license information.
Imports: 1
Opens a new window with list of imports.
Imported by: 0
Opens a new window with list of known importers.
Documentation
¶
type Model struct {
CreatedAt int64 `json:"created_at"`
UpdatedAt int64 `json:"updated_at"`
}
type User struct {
Model
UID string `json:"uid"`
Name string `json:"name"`
IdentityType string `gorm:"default:'unknown'" json:"identity_type"`
Email string `json:"email"`
Phone string `json:"phone"`
Account string `json:"account"`
APIToken string `gorm:"api_token" json:"api_token"`
}
TableName sets the insert table name for this struct type
type UserLogin struct {
Model
UID string `json:"uid"`
Password string `json:"password"`
LastLoginTime int64 `json:"last_login_time"`
LoginId string `json:"login_id"`
LoginType int `json:"login_type"`
}
TableName sets the insert table name for this struct type
type UserSetting struct {
ID primitive.ObjectID `bson:"_id,omitempty" json:"id,omitempty"`
UID string `bson:"uid" json:"uid"`
Theme string `bson:"theme" json:"theme"`
LogBgColor string `bson:"log_bg_color" json:"log_bg_color"`
LogFontColor string `bson:"log_font_color" json:"log_font_color"`
}
Source Files
¶
Click to show internal directories.
Click to hide internal directories.