Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type ActivateRegistrationRequest ¶
type ActivateRegistrationRequest struct {
ActivationCode string `json:"activationCode"`
}
ActivateRegistrationRequest type
func (*ActivateRegistrationRequest) Validate ¶
func (r *ActivateRegistrationRequest) Validate() error
Validate ActivateRegistrationRequest
type ActivateRegistrationResponse ¶
type ActivateRegistrationResponse struct { Email string `json:"email"` NickName string `json:"NickName"` DefaultRole string `json:"defaultRole"` }
ActivateRegistrationResponse type
func (*ActivateRegistrationResponse) ToJSON ¶
func (r *ActivateRegistrationResponse) ToJSON() []byte
ToJSON covert to JSON
type LoginAppRequest ¶
type LoginAppRequest struct { ClientKey string `json:"clientKey"` SecretKey string `json:"secretKey"` }
LoginAppRequest type
func (*LoginAppRequest) Validate ¶
func (r *LoginAppRequest) Validate() error
Validate LoginAppRequest
type LoginAppResponse ¶
type LoginAppResponse struct { TokenType string `json:"tokenType"` ClientAppCode string `json:"clientAppCode"` ClientAppName string `json:"clientAppName"` Token string `json:"token"` ExpiredAt int64 `json:"expiredAt"` }
LoginAppResponse type
type LoginRequest ¶
type LoginRequest struct { Username string `json:"username"` Password string `json:"password"` Captcha string `json:"captcha"` CaptchaID string `json:"captchaID"` }
LoginRequest type
type LoginResponse ¶
type LoginResponse struct { TokenType string `json:"tokenType"` Token string `json:"token"` ExpiredAt int64 `json:"expiredAt"` }
LoginResponse type
type RegisterRequest ¶
type RegisterRequest struct { Username string `json:"username"` Password string `json:"password"` Email string `json:"email"` NickName string `json:"nickName"` Captcha string `json:"captcha"` CaptchaID string `json:"captchaID"` }
RegisterRequest type
func (*RegisterRequest) Validate ¶
func (r *RegisterRequest) Validate() error
Validate RegisterRequest
type RegisterResponse ¶
RegisterResponse type
Click to show internal directories.
Click to hide internal directories.