15 lines
413 B
Go
15 lines
413 B
Go
package auth
|
|
|
|
import "git.lxtend.com/lixiangwuxian/qqbot/constants"
|
|
|
|
type Auth struct {
|
|
ID int64 `json:"id" db:"id" gorm:"primaryKey;autoIncrement"`
|
|
Qqid string `json:"qqid" db:"qqid" gorm:"column:qqid;uniqueIndex"`
|
|
Role constants.PermissionLevel `json:"role" db:"role" gorm:"column:role"`
|
|
}
|
|
|
|
// TableName 指定表名
|
|
func (Auth) TableName() string {
|
|
return "auth"
|
|
}
|