mirror of
https://github.com/nezhahq/nezha.git
synced 2025-01-22 12:48:14 -05:00
885330e948
* update profile api * rename * fix realip assertion * add waf api
13 lines
249 B
Go
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"`
|
|
}
|