2021-07-28 18:03:19 +08:00
|
|
|
package form
|
|
|
|
|
|
|
|
|
|
type AccountCreateForm struct {
|
2022-08-26 20:15:36 +08:00
|
|
|
Id uint64
|
2021-07-28 18:03:19 +08:00
|
|
|
Username *string `json:"username" binding:"required,min=4,max=16"`
|
2022-08-26 20:15:36 +08:00
|
|
|
Password *string `json:"password"`
|
2021-07-28 18:03:19 +08:00
|
|
|
}
|
|
|
|
|
|
|
|
|
|
type AccountUpdateForm struct {
|
2021-09-11 14:04:09 +08:00
|
|
|
Password *string `json:"password" binding:"min=6,max=16"`
|
2021-07-28 18:03:19 +08:00
|
|
|
}
|
2022-07-18 20:36:31 +08:00
|
|
|
|
|
|
|
|
type AccountChangePasswordForm struct {
|
|
|
|
|
Username string `json:"username"`
|
|
|
|
|
OldPassword string `json:"oldPassword"`
|
|
|
|
|
NewPassword string `json:"newPassword"`
|
|
|
|
|
}
|