schema

package
Version: v0.2.2 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Aug 28, 2020 License: MIT Imports: 3 Imported by: 0

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

func (*LoginAppResponse) ToJSON

func (r *LoginAppResponse) ToJSON() []byte

ToJSON covert to JSON

type LoginRequest

type LoginRequest struct {
	Username  string `json:"username"`
	Password  string `json:"password"`
	Captcha   string `json:"captcha"`
	CaptchaID string `json:"captchaID"`
}

LoginRequest type

func (*LoginRequest) Validate

func (r *LoginRequest) Validate() error

Validate LoginRequest

type LoginResponse

type LoginResponse struct {
	TokenType string `json:"tokenType"`
	Token     string `json:"token"`
	ExpiredAt int64  `json:"expiredAt"`
}

LoginResponse type

func (*LoginResponse) ToJSON

func (r *LoginResponse) ToJSON() []byte

ToJSON covert to JSON

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

type RegisterResponse struct {
	Email          string `json:"email"`
	ActivationCode string `json:"-"`
}

RegisterResponse type

func (*RegisterResponse) ToJSON

func (r *RegisterResponse) ToJSON() []byte

ToJSON covert to JSON

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL