alibabaalscunionkbstorequery

package
v1.0.1 Latest Latest
Warning

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

Go to latest
Published: May 8, 2023 License: Apache-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 Categories

type Categories struct {
	Category []Category `json:"category"`
}

type Category

type Category struct {
	CategoryID string `json:"category_id"`
	Name       string `json:"name"`
}

type Data

type Data struct {
	SessionID  string  `json:"session_id"`
	PageNumber int64   `json:"page_number"`
	PageSize   int64   `json:"page_size"`
	Total      int64   `json:"total"`
	Records    Records `json:"records"`
}

type Integer

type Integer struct {
	StoreID    string     `json:"store_id"`
	Name       string     `json:"name"`
	Cover      string     `json:"cover"`
	Categories Categories `json:"categories"`
	Location   Location   `json:"location"`
	Distance   int64      `json:"distance"`
}

type Location

type Location struct {
	Longitude string `json:"longitude"`
	Latitude  string `json:"latitude"`
	Address   string `json:"address"`
}

type Records

type Records struct {
	Integer []Integer `json:"integer"`
}

type Response

type Response struct {
	response.TopResponse
	ResultResponse ResultResponse `json:"alibaba_alsc_union_kb_store_query_response"`
}

Response alibaba.alsc.union.kb.store.query( 本地联盟口碑商户列表 )

func (*Response) WrapResult

func (t *Response) WrapResult(result string)

WrapResult 解析输出结果

type ResultResponse

type ResultResponse struct {
	BizErrorDesc string `json:"biz_error_desc"`
	BizErrorCode int    `json:"biz_error_code"`
	RequestID    string `json:"request_id"`

	Data         Data   `json:"data"`
	ResultCode   int64  `json:"result_code"`
	Message      string `json:"message"`
	ErrorMessage string `json:"error_message"`
}

ResultResponse 响应结果

func (ResultResponse) Error

func (rr ResultResponse) Error() string

func (ResultResponse) IsError

func (rr ResultResponse) IsError() bool

Jump to

Keyboard shortcuts

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