nezha/model/user_api.go

12 lines
299 B
Go
Raw Normal View History

package model
type UserForm struct {
Username string `json:"username,omitempty"`
Password string `json:"password,omitempty" gorm:"type:char(72)"`
}
type ProfileForm struct {
OriginalPassword string `json:"original_password,omitempty"`
NewPassword string `json:"new_password,omitempty"`
}