nginx-ui/model/auth.go
2024-07-20 10:37:19 +08:00

13 lines
224 B
Go

package model
type Auth struct {
Model
Name string `json:"name"`
Password string `json:"-"`
Status bool `json:"status" gorm:"default:1"`
}
type AuthToken struct {
Token string `json:"token"`
}