2024-10-22 09:19:30 -04:00
|
|
|
package model
|
|
|
|
|
|
|
|
type UserForm struct {
|
2024-12-22 02:51:37 -05:00
|
|
|
Role uint8 `json:"role,omitempty"`
|
2024-10-22 09:19:30 -04:00
|
|
|
Username string `json:"username,omitempty"`
|
|
|
|
Password string `json:"password,omitempty" gorm:"type:char(72)"`
|
|
|
|
}
|
2024-11-26 08:30:56 -05:00
|
|
|
|
|
|
|
type ProfileForm struct {
|
|
|
|
OriginalPassword string `json:"original_password,omitempty"`
|
2024-11-30 02:05:46 -05:00
|
|
|
NewUsername string `json:"new_username,omitempty"`
|
2024-11-26 08:30:56 -05:00
|
|
|
NewPassword string `json:"new_password,omitempty"`
|
2024-12-31 10:09:58 -05:00
|
|
|
RejectPassword bool `json:"reject_password,omitempty" validate:"optional"`
|
2024-11-26 08:30:56 -05:00
|
|
|
}
|