2 Star 0 Fork 0

hansdq / dyQcSDk

加入 Gitee
与超过 1200万 开发者一起发现、参与优秀开源项目,私有仓库也完全免费 :)
免费加入
克隆/下载
order_AddressAppliedSwitch_request.go 1.52 KB
一键复制 编辑 原始数据 按行查看 历史
Hansdq 提交于 2022-12-25 22:28 . 路径迁移
package order_AddressAppliedSwitch_request
import (
"gitee.com/hansdq/dy-qc-sdk/api/order_AddressAppliedSwitch/response"
"gitee.com/hansdq/dy-qc-sdk/core"
"encoding/json"
)
type OrderAddressAppliedSwitchRequest struct {
doudian_sdk.BaseDoudianOpApiRequest
Param *OrderAddressAppliedSwitchParam
}
func (c *OrderAddressAppliedSwitchRequest) GetUrlPath() string{
return "/order/AddressAppliedSwitch"
}
func New() *OrderAddressAppliedSwitchRequest{
request := &OrderAddressAppliedSwitchRequest{
Param: &OrderAddressAppliedSwitchParam{},
}
request.SetConfig(doudian_sdk.GlobalConfig)
request.SetClient(doudian_sdk.DefaultDoudianOpApiClient)
return request
}
func (c *OrderAddressAppliedSwitchRequest) Execute(accessToken *doudian_sdk.AccessToken) (*order_AddressAppliedSwitch_response.OrderAddressAppliedSwitchResponse, error){
responseJson, err := c.GetClient().Request(c, accessToken)
if err != nil {
return nil, err
}
response := &order_AddressAppliedSwitch_response.OrderAddressAppliedSwitchResponse{}
_ = json.Unmarshal([]byte(responseJson), response)
return response, nil
}
func (c *OrderAddressAppliedSwitchRequest) GetParamObject() interface{}{
return c.Param
}
func (c *OrderAddressAppliedSwitchRequest) GetParams() *OrderAddressAppliedSwitchParam{
return c.Param
}
type OrderAddressAppliedSwitchParam struct {
// 0代表关闭,不需要审核 1代表开启审核,买家变更需要审核
IsAllowed int64 `json:"is_allowed"`
// 0代表异步审核,1表示实时审核
ReviewType int64 `json:"review_type"`
}
Go
1
https://gitee.com/hansdq/dy-qc-sdk.git
git@gitee.com:hansdq/dy-qc-sdk.git
hansdq
dy-qc-sdk
dyQcSDk
v1.0.8

搜索帮助