package
Version:
v5.0.2-beta2
Opens a new window with list of versions in this module.
Published: Jun 24, 2023
License: AGPL-3.0
Opens a new window with license information.
Imports: 13
Opens a new window with list of imports.
Imported by: 0
Opens a new window with list of known importers.
Documentation
¶
type Login struct {
User string `validate:"required,username"`
Pass string `validate:"required,min=8,max=64"`
Code string `validate:"required"`
}
Login 登录表单值(暂未使用)
type Register struct {
InvitationCode string `validate:"required,min=16,max=32"`
Username string `validate:"required,username"`
Email string `validate:"required,email"`
Password string `validate:"required,min=8,max=64"`
ConfirmationPassword string `validate:"required,eqfield=Password"`
}
type Setup struct {
Type string `validate:"required"`
User string
Password string
Host string
Database string
Charset string `validate:"omitempty,alphanum"`
AdminUser string `validate:"username"`
AdminPass string `validate:"required,min=8,max=64"`
AdminEmail string `validate:"required,email"`
}
Source Files
¶
Click to show internal directories.
Click to hide internal directories.