2 Star 0 Fork 0

hansdq / dyQcSDk

加入 Gitee
与超过 1200万 开发者一起发现、参与优秀开源项目,私有仓库也完全免费 :)
免费加入
克隆/下载
product_getProductUpdateRule_request.go 1.58 KB
一键复制 编辑 原始数据 按行查看 历史
Hansdq 提交于 2022-12-25 22:28 . 路径迁移
package product_getProductUpdateRule_request
import (
"gitee.com/hansdq/dy-qc-sdk/api/product_getProductUpdateRule/response"
"gitee.com/hansdq/dy-qc-sdk/core"
"encoding/json"
)
type ProductGetProductUpdateRuleRequest struct {
doudian_sdk.BaseDoudianOpApiRequest
Param *ProductGetProductUpdateRuleParam
}
func (c *ProductGetProductUpdateRuleRequest) GetUrlPath() string{
return "/product/getProductUpdateRule"
}
func New() *ProductGetProductUpdateRuleRequest{
request := &ProductGetProductUpdateRuleRequest{
Param: &ProductGetProductUpdateRuleParam{},
}
request.SetConfig(doudian_sdk.GlobalConfig)
request.SetClient(doudian_sdk.DefaultDoudianOpApiClient)
return request
}
func (c *ProductGetProductUpdateRuleRequest) Execute(accessToken *doudian_sdk.AccessToken) (*product_getProductUpdateRule_response.ProductGetProductUpdateRuleResponse, error){
responseJson, err := c.GetClient().Request(c, accessToken)
if err != nil {
return nil, err
}
response := &product_getProductUpdateRule_response.ProductGetProductUpdateRuleResponse{}
_ = json.Unmarshal([]byte(responseJson), response)
return response, nil
}
func (c *ProductGetProductUpdateRuleRequest) GetParamObject() interface{}{
return c.Param
}
func (c *ProductGetProductUpdateRuleRequest) GetParams() *ProductGetProductUpdateRuleParam{
return c.Param
}
type ProductGetProductUpdateRuleParam struct {
// 类目id
CategoryId int64 `json:"category_id"`
// 闪购定制参数,普通发品忽略
Senses []int32 `json:"senses"`
// 品牌id
StandardBrandId int64 `json:"standard_brand_id"`
// spu_id
SpuId int64 `json:"spu_id"`
}
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

搜索帮助