helper

package
v1.0.10 Latest Latest
Warning

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

Go to latest
Published: Sep 27, 2023 License: GPL-3.0 Imports: 7 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func GetShopVenderInfo

func GetShopVenderInfo(req *GetShopVenderInfoRequest) (*vender.ShopInfo, error)

Types

type GetAccessTokenNewRequest

type GetAccessTokenNewRequest struct {
	api.BaseRequest
	Code string `json:"code,omitempty" codec:"code,omitempty"`
}

type GetAccessTokenNewResponse

type GetAccessTokenNewResponse struct {
	Code int    `json:"code,omitempty" codec:"code,omitempty"`
	Msg  string `json:"msg,omitempty" codec:"msg,omitempty"`

	AccessToken  string `json:"access_token,omitempty" codec:"access_token,omitempty"`
	ExpiresIn    int64  `json:"expires_in,omitempty" codec:"expires_in,omitempty"`
	RefreshToken string `json:"refresh_token,omitempty" codec:"refresh_token,omitempty"`
	Time         uint64 `json:"time,omitempty" codec:"time,omitempty"`
	TokenType    string `json:"token_type,omitempty" codec:"token_type,omitempty"`
	UserNick     string `json:"user_nick,omitempty" codec:"user_nick,omitempty"`
	Uid          string `json:"uid,omitempty" codec:"uid,omitempty"`
	OpenId       string `json:"open_id,omitempty" codec:"open_id,omitempty"`
}

type GetAccessTokenRequest

type GetAccessTokenRequest struct {
	api.BaseRequest
	Code        string `json:"code,omitempty" codec:"code,omitempty"`
	State       string `json:"state,omitempty" codec:"state,omitempty"`
	RedirectUri string `json:"redirect_uri,omitempty" codec:"redirect_uri,omitempty"`
}

type GetAccessTokenResponse

type GetAccessTokenResponse struct {
	Code         int    `json:"code,omitempty" codec:"code,omitempty"`
	ErrorDesc    string `json:"error_description,omitempty" codec:"error_description,omitempty"`
	AccessToken  string `json:"access_token,omitempty" codec:"access_token,omitempty"`
	ExpiresIn    int64  `json:"expires_in,omitempty" codec:"expires_in,omitempty"`
	RefreshToken string `json:"refresh_token,omitempty" codec:"refresh_token,omitempty"`
	Time         uint64 `json:"time,omitempty" codec:"time,omitempty"`
	TokenType    string `json:"token_type,omitempty" codec:"token_type,omitempty"`
	UserNick     string `json:"user_nick,omitempty" codec:"user_nick,omitempty"`
	Uid          string `json:"uid,omitempty" codec:"uid,omitempty"`
	OpenId       string `json:"open_id,omitempty" codec:"open_id,omitempty"`
}

type GetShopVenderInfoRequest

type GetShopVenderInfoRequest struct {
	api.BaseRequest
}

Jump to

Keyboard shortcuts

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