package
Version:
v0.0.0-...-cbae207
Opens a new window with list of versions in this module.
Published: Jul 19, 2023
License: Unlicense
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 User struct {
gorm.Model
Username string `gorm:"unique;not null" json:"username"`
Password string `gorm:"not null" json:"-"`
}
type UserClaims struct {
Username string `json:"username"`
}
type UserLoginInfo struct {
Username string `json:"username" form:"username" binding:"required"`
Password string `json:"password" form:"password" binding:"required"`
}
type UserRegisterInfo struct {
Username string `json:"username" form:"username" binding:"required"`
Password string `json:"password" form:"password" binding:"required"`
}
Source Files
¶
Click to show internal directories.
Click to hide internal directories.