Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
Types ¶
type Form ¶
type Form struct { Email string `json:"email"` EmailCode string `json:"email_code"` Username string `json:"username"` Password string `json:"password"` }
Form user register request json body
func (Form) Validate ¶
func (f Form) Validate() *exception.MDClubGoError
Validate for register form data
type Present ¶
type Present struct { *database.User Avatars map[string]string `json:"avatar"` Covers map[string]string `json:"cover"` Relationships struct { IsMe bool `json:"is_me"` IsFollowing bool `json:"is_following"` IsFollowed bool `json:"is_followed"` } `json:"relationships"` // contains filtered or unexported fields }
Present user register response json body
func NewPresent ¶
NewPresent return a *register.Present
Click to show internal directories.
Click to hide internal directories.