token_create_request

package
v1.0.8 Latest Latest
Warning

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

Go to latest
Published: Dec 25, 2022 License: MulanPSL-2.0 Imports: 3 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type TokenCreateParam

type TokenCreateParam struct {
	// 授权码;参数必传,工具型应用: 传code值;自用型应用:传""
	Code string `json:"code"`
	// 授权类型 ;【工具型应用:authorization_code  自用型应用:authorization_self】
	GrantType string `json:"grant_type"`
	// 判断测试店铺标识 ,非必传,若新增测试店铺传1,若不是则不必传
	TestShop string `json:"test_shop"`
	// 店铺ID
	ShopId string `json:"shop_id"`
	// 授权id,用于替换shopId
	AuthId string `json:"auth_id"`
	// 授权主体类型,枚举值如下:YunCang -云仓;WuLiuShang -物流商;WLGongYingShang -物流供应商;MiniApp -小程序
	AuthSubjectType string `json:"auth_subject_type"`
}

type TokenCreateRequest

type TokenCreateRequest struct {
	doudian_sdk.BaseDoudianOpApiRequest
	Param *TokenCreateParam
}

func New

func New() *TokenCreateRequest

func (*TokenCreateRequest) Execute

func (c *TokenCreateRequest) Execute(accessToken *doudian_sdk.AccessToken) (*token_create_response.TokenCreateResponse, error)

func (*TokenCreateRequest) GetParamObject

func (c *TokenCreateRequest) GetParamObject() interface{}

func (*TokenCreateRequest) GetParams

func (c *TokenCreateRequest) GetParams() *TokenCreateParam

func (*TokenCreateRequest) GetUrlPath

func (c *TokenCreateRequest) GetUrlPath() string

Jump to

Keyboard shortcuts

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