This commit is contained in:
aozhiwei 2024-04-27 11:26:16 +08:00
parent 33b559e4a5
commit 4b9b875599

View File

@ -0,0 +1,12 @@
package system
type Mail struct {
Idx uint64 `json:"idx"`
Username string `gorm:"uniqueIndex;comment:用户登录名" json:"username"`
Password string `gorm:"comment:用户登录密码" json:"password"`
Roles []string `json:"roles" gorm:"-"'`
}
func (Mail) TableName() string {
return "t_mail"
}