Files
mayfly-go/server/internal/sys/api/form/account.go
2022-11-01 21:23:49 +08:00

19 lines
474 B
Go

package form
type AccountCreateForm struct {
Id uint64
Name string `json:"name" binding:"required"`
Username string `json:"username" binding:"required,min=4,max=16"`
Password string `json:"password"`
}
type AccountUpdateForm struct {
Password *string `json:"password" binding:"min=6,max=16"`
}
type AccountChangePasswordForm struct {
Username string `json:"username"`
OldPassword string `json:"oldPassword"`
NewPassword string `json:"newPassword"`
}