mirror of
https://github.com/nezhahq/nezha.git
synced 2025-01-22 12:48:14 -05:00
3216ad43fa
Some checks are pending
CodeQL / Analyze (go) (push) Waiting to run
CodeQL / Analyze (javascript) (push) Waiting to run
Contributors / contributors (push) Waiting to run
Sync / sync-to-jihulab (push) Waiting to run
Run Tests / tests (macos) (push) Waiting to run
Run Tests / tests (ubuntu) (push) Waiting to run
Run Tests / tests (windows) (push) Waiting to run
* fix: struct tag * fix: struct tag * fix: strings conversion * do not write anything after redirection * fix table * fix select
15 lines
477 B
Go
15 lines
477 B
Go
package model
|
|
|
|
type UserForm struct {
|
|
Role uint8 `json:"role,omitempty"`
|
|
Username string `json:"username,omitempty"`
|
|
Password string `json:"password,omitempty" gorm:"type:char(72)"`
|
|
}
|
|
|
|
type ProfileForm struct {
|
|
OriginalPassword string `json:"original_password,omitempty"`
|
|
NewUsername string `json:"new_username,omitempty"`
|
|
NewPassword string `json:"new_password,omitempty"`
|
|
RejectPassword bool `json:"reject_password,omitempty" validate:"optional"`
|
|
}
|