Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type ApiRequest ¶
type ApiRequest struct { ApiPath string //api路径,不包含域名 BusinessId int //api对应的业务id,请参考API文档的说明赋值 BizParams map[string]string //业务参数,key放字段名,value放字段值 }
func NewApiRequest ¶
func NewApiRequest(apiPath string, businessId int, bizParams map[string]string) ApiRequest
创建一个新的ApiRequest
func (ApiRequest) DoInvoke ¶
func (req ApiRequest) DoInvoke(client mtclient.MeituanClient, appAuthToken string) (*ApiResponse, error)
DoInvoke 方法用于向美团服务端发起请求。对于无需业务授权的接口,appAuthToken可以传空
type ApiResponse ¶
func (*ApiResponse) IsSuccess ¶
func (response *ApiResponse) IsSuccess() bool
Click to show internal directories.
Click to hide internal directories.