Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type SignInReqDTO ¶
type SignInReqDTO struct { // The login of the user. It must be alphanumeric and have a length between 3 and 100. // required: true // example: john_doe Login string `json:"login" validate:"required,min=3,max=100,alphanum"` // The password of the user. It must have a length between 8 and 32. // required: true // example: securePassword123 Password string `json:"password" validate:"required,min=8,max=32"` }
SignInReqDTO represents the required fields for a user to sign in. swagger:model SignInReqDTO
type SignupReqDTO ¶
type SignupReqDTO struct { // The email address of the user. It must be a valid email format. // required: true // example: john.doe@example.com Email string `json:"email" validate:"required,email"` // The desired username for the user. It must be alphanumeric and have a length between 3 and 20. // required: true // example: john_doe Username string `json:"username" validate:"required,min=3,max=20,alphanum"` // The desired password for the user. It must have a length between 8 and 32. // required: true // example: securePassword123 Password string `json:"password" validate:"required,min=8,max=32"` }
SignupReqDTO represents the required fields for a user to sign up. swagger:model SignupReqDTO
Click to show internal directories.
Click to hide internal directories.