Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var ( // ErrUsernameInvalid is error message for invalidate username ErrUsernameInvalid = errors.New("Username length should > 6 and < 20, only support character, numbers and '_'") // ErrPasswordInvalid is error message for invalidate password ErrPasswordInvalid = errors.New("Password's length should > 6 and < 20") )
Functions ¶
This section is empty.
Types ¶
type Response ¶
type Response struct { // Success is if a success response Success bool `json:"success"` // Message is error message Message string `json:"message"` // Data is response data Data interface{} `json:"data"` }
Response is common api response struct
Click to show internal directories.
Click to hide internal directories.