nezha/model/user.go
UUBulb 885330e948
update profile api (#16)
* update profile api

* rename

* fix realip assertion

* add waf api
2024-11-23 16:22:22 +08:00

13 lines
249 B
Go

package model
type User struct {
Common
Username string `json:"username,omitempty" gorm:"uniqueIndex"`
Password string `json:"password,omitempty" gorm:"type:char(72)"`
}
type Profile struct {
User
LoginIP string `json:"login_ip,omitempty"`
}