2 Star 0 Fork 0

hansdq / dyQcSDk

加入 Gitee
与超过 1200万 开发者一起发现、参与优秀开源项目,私有仓库也完全免费 :)
免费加入
克隆/下载
product_CategoryDimList_request.go 1.46 KB
一键复制 编辑 原始数据 按行查看 历史
Hansdq 提交于 2022-12-25 22:28 . 路径迁移
package product_CategoryDimList_request
import (
"gitee.com/hansdq/dy-qc-sdk/api/product_CategoryDimList/response"
"gitee.com/hansdq/dy-qc-sdk/core"
"encoding/json"
)
type ProductCategoryDimListRequest struct {
doudian_sdk.BaseDoudianOpApiRequest
Param *ProductCategoryDimListParam
}
func (c *ProductCategoryDimListRequest) GetUrlPath() string{
return "/product/CategoryDimList"
}
func New() *ProductCategoryDimListRequest{
request := &ProductCategoryDimListRequest{
Param: &ProductCategoryDimListParam{},
}
request.SetConfig(doudian_sdk.GlobalConfig)
request.SetClient(doudian_sdk.DefaultDoudianOpApiClient)
return request
}
func (c *ProductCategoryDimListRequest) Execute(accessToken *doudian_sdk.AccessToken) (*product_CategoryDimList_response.ProductCategoryDimListResponse, error){
responseJson, err := c.GetClient().Request(c, accessToken)
if err != nil {
return nil, err
}
response := &product_CategoryDimList_response.ProductCategoryDimListResponse{}
_ = json.Unmarshal([]byte(responseJson), response)
return response, nil
}
func (c *ProductCategoryDimListRequest) GetParamObject() interface{}{
return c.Param
}
func (c *ProductCategoryDimListRequest) GetParams() *ProductCategoryDimListParam{
return c.Param
}
type ProductCategoryDimListParam struct {
// 类目层级
Level int32 `json:"level"`
// 类目名, 模糊搜索
Name string `json:"name"`
// 上级类目ID,一级类目上级类目ID为0,可选
ParentId int64 `json:"parent_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

搜索帮助

53164aa7 5694891 3bd8fe86 5694891