The highest tagged major version is
v2.
package
Version:
v1.11.0
Opens a new window with list of versions in this module.
Published: Apr 21, 2022
License: Apache-2.0
Opens a new window with license information.
Imports: 0
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
Source Files
¶
Click to show internal directories.
Click to hide internal directories.