mirror of
https://github.com/0xJacky/nginx-ui.git
synced 2025-05-11 02:15:48 +02:00
16 lines
352 B
Go
16 lines
352 B
Go
package model
|
|
|
|
type Auth struct {
|
|
Model
|
|
|
|
Name string `json:"name"`
|
|
Password string `json:"-"`
|
|
Status bool `json:"status" gorm:"default:1"`
|
|
OTPSecret []byte `json:"-" gorm:"type:blob"`
|
|
}
|
|
|
|
type AuthToken struct {
|
|
UserID int `json:"user_id"`
|
|
Token string `json:"token"`
|
|
ExpiredAt int64 `json:"expired_at" gorm:"default:0"`
|
|
}
|