package
Version:
v0.0.0-...-7cf99fd
Opens a new window with list of versions in this module.
Published: Aug 5, 2021
License: MIT
Opens a new window with license information.
Imports: 1
Opens a new window with list of imports.
Imported by: 0
Opens a new window with list of known importers.
Documentation
¶
type LoginByAccountRequest struct {
Account string `json:"account" binding:"required"`
Password string `json:"password" binding:"required,min=6,max=18"`
}
type LoginByMobileRequest struct {
Mobile string `json:"mobile" binding:"required"`
Code string `json:"code" binding:"required,min=4,max=8"`
}
type RegisterByEmailRequest struct {
Email string `json:"email" binding:"required,email"`
Password string `json:"password" binding:"required,min=6,max=18"`
Code string `json:"code" binding:"required,min=4,max=8"`
}
type RegisterByMobileRequest struct {
Mobile string `json:"mobile" binding:"required,numeric"`
Password string `json:"password" binding:"required,min=6,max=18"`
Code string `json:"code" binding:"required,min=4,max=8"`
}
type RegisterByUsernameRequest struct {
Username string `json:"username" binding:"required"`
Password string `json:"password" binding:"required,min=6,max=18"`
Code string `json:"code" binding:"required,min=4,max=8"`
}
type SMSRequest struct {
Mobile string `json:"mobile"`
Type sms.SMSType `json:"type"`
Content string `json:"content"`
}
Source Files
¶
Click to show internal directories.
Click to hide internal directories.