Files
mayfly-go/server/internal/sys/api/form/account.go

19 lines
486 B
Go
Raw Normal View History

package form
type AccountCreateForm struct {
2023-06-11 19:59:35 +08:00
Id uint64 `json:"id"`
Name string `json:"name" binding:"required"`
Username string `json:"username" binding:"required,min=4,max=16"`
Password string `json:"password"`
}
type AccountUpdateForm struct {
2021-09-11 14:04:09 +08:00
Password *string `json:"password" binding:"min=6,max=16"`
}
type AccountChangePasswordForm struct {
Username string `json:"username"`
OldPassword string `json:"oldPassword"`
NewPassword string `json:"newPassword"`
}