Documentation ¶
Index ¶
- Constants
- func GenHashedPWD(pwd string) string
- func GetDB(driver string, connection string) *gorm.DB
- func HashAccessToken(token string) string
- func HashString(s string) string
- func VerifyHashedPasswordV3(hashedPassword []byte, password string) (bool, int)
- func VerifyPassword(hashedPassword string, password string) (bool, error)
- type Record
Constants ¶
View Source
const ( PWD_SHA1 = iota PWD_SHA256 )
Variables ¶
This section is empty.
Functions ¶
func GenHashedPWD ¶
func HashAccessToken ¶
func HashString ¶
func VerifyHashedPasswordV3 ¶
Types ¶
type Record ¶
type Record struct { Creator string `json:"creator" gorm:"type:varchar(255)"` CreatorID string `json:"creatorid" gorm:"type:varchar(36)"` Updator string `json:"updator" gorm:"type:varchar(255)"` UpdatorID string `json:"updatorid" gorm:"type:varchar(36)"` CreatedAt null.Time `json:"created" gorm:"autoCreateTime"` UpdatedAt null.Time `json:"updated" gorm:"autoUpdateTime"` DeletedAt gorm.DeletedAt `json:"-" gorm:"index"` }
Record 数据库通用结构
Click to show internal directories.
Click to hide internal directories.