parent
f21a47699e
commit
18b5a81d3f
@ -1,5 +1,5 @@
|
|||||||
package go_library
|
package go_library
|
||||||
|
|
||||||
func Version() string {
|
func Version() string {
|
||||||
return "1.0.102"
|
return "1.0.103"
|
||||||
}
|
}
|
||||||
|
@ -0,0 +1 @@
|
|||||||
|
package pinduoduo
|
@ -0,0 +1,80 @@
|
|||||||
|
package pinduoduo
|
||||||
|
|
||||||
|
import (
|
||||||
|
"context"
|
||||||
|
"github.com/dtapps/go-library/utils/gojson"
|
||||||
|
"github.com/dtapps/go-library/utils/gorequest"
|
||||||
|
)
|
||||||
|
|
||||||
|
type PddDdkOauthGoodsDetailResponse struct {
|
||||||
|
OrderDetailResponse struct {
|
||||||
|
SepMarketFee int `json:"sep_market_fee"`
|
||||||
|
GoodsPrice int `json:"goods_price"`
|
||||||
|
SepDuoId int `json:"sep_duo_id"`
|
||||||
|
Pid string `json:"pid"`
|
||||||
|
PromotionRate int `json:"promotion_rate"`
|
||||||
|
CpsSign string `json:"cps_sign"`
|
||||||
|
Type int `json:"type"`
|
||||||
|
SubsidyDuoAmountLevel int `json:"subsidy_duo_amount_level"`
|
||||||
|
OrderStatus int `json:"order_status"`
|
||||||
|
CatIds []int `json:"cat_ids"`
|
||||||
|
OrderCreateTime int64 `json:"order_create_time"`
|
||||||
|
IsDirect int `json:"is_direct"`
|
||||||
|
OrderGroupSuccessTime int `json:"order_group_success_time"`
|
||||||
|
MallId int `json:"mall_id"`
|
||||||
|
OrderAmount int64 `json:"order_amount"`
|
||||||
|
PriceCompareStatus int `json:"price_compare_status"`
|
||||||
|
MallName string `json:"mall_name"`
|
||||||
|
OrderModifyAt int `json:"order_modify_at"`
|
||||||
|
AuthDuoId int `json:"auth_duo_id"`
|
||||||
|
CpaNew int `json:"cpa_new"`
|
||||||
|
GoodsName string `json:"goods_name"`
|
||||||
|
BatchNo string `json:"batch_no"`
|
||||||
|
RedPacketType int `json:"red_packet_type"`
|
||||||
|
UrlLastGenerateTime int `json:"url_last_generate_time"`
|
||||||
|
GoodsQuantity int `json:"goods_quantity"`
|
||||||
|
GoodsId int64 `json:"goods_id"`
|
||||||
|
SepParameters string `json:"sep_parameters"`
|
||||||
|
SepRate int `json:"sep_rate"`
|
||||||
|
SubsidyType int `json:"subsidy_type"`
|
||||||
|
ShareRate int `json:"share_rate"`
|
||||||
|
CustomParameters string `json:"custom_parameters"`
|
||||||
|
GoodsThumbnailUrl string `json:"goods_thumbnail_url"`
|
||||||
|
PromotionAmount int64 `json:"promotion_amount"`
|
||||||
|
OrderPayTime int `json:"order_pay_time"`
|
||||||
|
GroupId int64 `json:"group_id"`
|
||||||
|
SepPid string `json:"sep_pid"`
|
||||||
|
ReturnStatus int `json:"return_status"`
|
||||||
|
OrderStatusDesc string `json:"order_status_desc"`
|
||||||
|
ShareAmount int `json:"share_amount"`
|
||||||
|
GoodsCategoryName string `json:"goods_category_name"`
|
||||||
|
RequestId string `json:"request_id"`
|
||||||
|
GoodsSign string `json:"goods_sign"`
|
||||||
|
OrderSn string `json:"order_sn"`
|
||||||
|
ZsDuoId int `json:"zs_duo_id"`
|
||||||
|
} `json:"order_detail_response"`
|
||||||
|
}
|
||||||
|
|
||||||
|
type PddDdkOauthGoodsDetailResult struct {
|
||||||
|
Result PddDdkOauthGoodsDetailResponse // 结果
|
||||||
|
Body []byte // 内容
|
||||||
|
Http gorequest.Response // 请求
|
||||||
|
Err error // 错误
|
||||||
|
}
|
||||||
|
|
||||||
|
func newPddDdkOauthGoodsDetailResult(result PddDdkOauthGoodsDetailResponse, body []byte, http gorequest.Response, err error) *PddDdkOauthGoodsDetailResult {
|
||||||
|
return &PddDdkOauthGoodsDetailResult{Result: result, Body: body, Http: http, Err: err}
|
||||||
|
}
|
||||||
|
|
||||||
|
// Detail 多多进宝商品详情查询
|
||||||
|
// https://jinbao.pinduoduo.com/third-party/api-detail?apiName=pdd.ddk.oauth.goods.detail
|
||||||
|
func (c *PddDdkOauthGoodsApi) Detail(ctx context.Context, notMustParams ...Params) *PddDdkOauthGoodsDetailResult {
|
||||||
|
// 参数
|
||||||
|
params := NewParamsWithType("pdd.ddk.oauth.goods.detail", notMustParams...)
|
||||||
|
// 请求
|
||||||
|
request, err := c.client.request(ctx, params)
|
||||||
|
// 定义
|
||||||
|
var response PddDdkOauthGoodsDetailResponse
|
||||||
|
err = gojson.Unmarshal(request.ResponseBody, &response)
|
||||||
|
return newPddDdkOauthGoodsDetailResult(response, request.ResponseBody, request, err)
|
||||||
|
}
|
@ -0,0 +1,80 @@
|
|||||||
|
package pinduoduo
|
||||||
|
|
||||||
|
import (
|
||||||
|
"context"
|
||||||
|
"github.com/dtapps/go-library/utils/gojson"
|
||||||
|
"github.com/dtapps/go-library/utils/gorequest"
|
||||||
|
)
|
||||||
|
|
||||||
|
type PddDdkOauthGoodsPidGenerateResponse struct {
|
||||||
|
OrderDetailResponse struct {
|
||||||
|
SepMarketFee int `json:"sep_market_fee"`
|
||||||
|
GoodsPrice int `json:"goods_price"`
|
||||||
|
SepDuoId int `json:"sep_duo_id"`
|
||||||
|
Pid string `json:"pid"`
|
||||||
|
PromotionRate int `json:"promotion_rate"`
|
||||||
|
CpsSign string `json:"cps_sign"`
|
||||||
|
Type int `json:"type"`
|
||||||
|
SubsidyDuoAmountLevel int `json:"subsidy_duo_amount_level"`
|
||||||
|
OrderStatus int `json:"order_status"`
|
||||||
|
CatIds []int `json:"cat_ids"`
|
||||||
|
OrderCreateTime int64 `json:"order_create_time"`
|
||||||
|
IsDirect int `json:"is_direct"`
|
||||||
|
OrderGroupSuccessTime int `json:"order_group_success_time"`
|
||||||
|
MallId int `json:"mall_id"`
|
||||||
|
OrderAmount int64 `json:"order_amount"`
|
||||||
|
PriceCompareStatus int `json:"price_compare_status"`
|
||||||
|
MallName string `json:"mall_name"`
|
||||||
|
OrderModifyAt int `json:"order_modify_at"`
|
||||||
|
AuthDuoId int `json:"auth_duo_id"`
|
||||||
|
CpaNew int `json:"cpa_new"`
|
||||||
|
GoodsName string `json:"goods_name"`
|
||||||
|
BatchNo string `json:"batch_no"`
|
||||||
|
RedPacketType int `json:"red_packet_type"`
|
||||||
|
UrlLastGenerateTime int `json:"url_last_generate_time"`
|
||||||
|
GoodsQuantity int `json:"goods_quantity"`
|
||||||
|
GoodsId int64 `json:"goods_id"`
|
||||||
|
SepParameters string `json:"sep_parameters"`
|
||||||
|
SepRate int `json:"sep_rate"`
|
||||||
|
SubsidyType int `json:"subsidy_type"`
|
||||||
|
ShareRate int `json:"share_rate"`
|
||||||
|
CustomParameters string `json:"custom_parameters"`
|
||||||
|
GoodsThumbnailUrl string `json:"goods_thumbnail_url"`
|
||||||
|
PromotionAmount int64 `json:"promotion_amount"`
|
||||||
|
OrderPayTime int `json:"order_pay_time"`
|
||||||
|
GroupId int64 `json:"group_id"`
|
||||||
|
SepPid string `json:"sep_pid"`
|
||||||
|
ReturnStatus int `json:"return_status"`
|
||||||
|
OrderStatusDesc string `json:"order_status_desc"`
|
||||||
|
ShareAmount int `json:"share_amount"`
|
||||||
|
GoodsCategoryName string `json:"goods_category_name"`
|
||||||
|
RequestId string `json:"request_id"`
|
||||||
|
GoodsSign string `json:"goods_sign"`
|
||||||
|
OrderSn string `json:"order_sn"`
|
||||||
|
ZsDuoId int `json:"zs_duo_id"`
|
||||||
|
} `json:"order_detail_response"`
|
||||||
|
}
|
||||||
|
|
||||||
|
type PddDdkOauthGoodsPidGenerateResult struct {
|
||||||
|
Result PddDdkOauthGoodsPidGenerateResponse // 结果
|
||||||
|
Body []byte // 内容
|
||||||
|
Http gorequest.Response // 请求
|
||||||
|
Err error // 错误
|
||||||
|
}
|
||||||
|
|
||||||
|
func newPddDdkOauthGoodsPidGenerateResult(result PddDdkOauthGoodsPidGenerateResponse, body []byte, http gorequest.Response, err error) *PddDdkOauthGoodsPidGenerateResult {
|
||||||
|
return &PddDdkOauthGoodsPidGenerateResult{Result: result, Body: body, Http: http, Err: err}
|
||||||
|
}
|
||||||
|
|
||||||
|
// PidGenerate 多多进宝推广位创建接口
|
||||||
|
// https://jinbao.pinduoduo.com/third-party/api-detail?apiName=pdd.ddk.oauth.goods.pid.generate
|
||||||
|
func (c *PddDdkOauthGoodsApi) PidGenerate(ctx context.Context, notMustParams ...Params) *PddDdkOauthGoodsPidGenerateResult {
|
||||||
|
// 参数
|
||||||
|
params := NewParamsWithType("pdd.ddk.oauth.goods.pid.generate", notMustParams...)
|
||||||
|
// 请求
|
||||||
|
request, err := c.client.request(ctx, params)
|
||||||
|
// 定义
|
||||||
|
var response PddDdkOauthGoodsPidGenerateResponse
|
||||||
|
err = gojson.Unmarshal(request.ResponseBody, &response)
|
||||||
|
return newPddDdkOauthGoodsPidGenerateResult(response, request.ResponseBody, request, err)
|
||||||
|
}
|
@ -0,0 +1,80 @@
|
|||||||
|
package pinduoduo
|
||||||
|
|
||||||
|
import (
|
||||||
|
"context"
|
||||||
|
"github.com/dtapps/go-library/utils/gojson"
|
||||||
|
"github.com/dtapps/go-library/utils/gorequest"
|
||||||
|
)
|
||||||
|
|
||||||
|
type PddDdkOauthGoodsPidQueryResponse struct {
|
||||||
|
OrderDetailResponse struct {
|
||||||
|
SepMarketFee int `json:"sep_market_fee"`
|
||||||
|
GoodsPrice int `json:"goods_price"`
|
||||||
|
SepDuoId int `json:"sep_duo_id"`
|
||||||
|
Pid string `json:"pid"`
|
||||||
|
PromotionRate int `json:"promotion_rate"`
|
||||||
|
CpsSign string `json:"cps_sign"`
|
||||||
|
Type int `json:"type"`
|
||||||
|
SubsidyDuoAmountLevel int `json:"subsidy_duo_amount_level"`
|
||||||
|
OrderStatus int `json:"order_status"`
|
||||||
|
CatIds []int `json:"cat_ids"`
|
||||||
|
OrderCreateTime int64 `json:"order_create_time"`
|
||||||
|
IsDirect int `json:"is_direct"`
|
||||||
|
OrderGroupSuccessTime int `json:"order_group_success_time"`
|
||||||
|
MallId int `json:"mall_id"`
|
||||||
|
OrderAmount int64 `json:"order_amount"`
|
||||||
|
PriceCompareStatus int `json:"price_compare_status"`
|
||||||
|
MallName string `json:"mall_name"`
|
||||||
|
OrderModifyAt int `json:"order_modify_at"`
|
||||||
|
AuthDuoId int `json:"auth_duo_id"`
|
||||||
|
CpaNew int `json:"cpa_new"`
|
||||||
|
GoodsName string `json:"goods_name"`
|
||||||
|
BatchNo string `json:"batch_no"`
|
||||||
|
RedPacketType int `json:"red_packet_type"`
|
||||||
|
UrlLastGenerateTime int `json:"url_last_generate_time"`
|
||||||
|
GoodsQuantity int `json:"goods_quantity"`
|
||||||
|
GoodsId int64 `json:"goods_id"`
|
||||||
|
SepParameters string `json:"sep_parameters"`
|
||||||
|
SepRate int `json:"sep_rate"`
|
||||||
|
SubsidyType int `json:"subsidy_type"`
|
||||||
|
ShareRate int `json:"share_rate"`
|
||||||
|
CustomParameters string `json:"custom_parameters"`
|
||||||
|
GoodsThumbnailUrl string `json:"goods_thumbnail_url"`
|
||||||
|
PromotionAmount int64 `json:"promotion_amount"`
|
||||||
|
OrderPayTime int `json:"order_pay_time"`
|
||||||
|
GroupId int64 `json:"group_id"`
|
||||||
|
SepPid string `json:"sep_pid"`
|
||||||
|
ReturnStatus int `json:"return_status"`
|
||||||
|
OrderStatusDesc string `json:"order_status_desc"`
|
||||||
|
ShareAmount int `json:"share_amount"`
|
||||||
|
GoodsCategoryName string `json:"goods_category_name"`
|
||||||
|
RequestId string `json:"request_id"`
|
||||||
|
GoodsSign string `json:"goods_sign"`
|
||||||
|
OrderSn string `json:"order_sn"`
|
||||||
|
ZsDuoId int `json:"zs_duo_id"`
|
||||||
|
} `json:"order_detail_response"`
|
||||||
|
}
|
||||||
|
|
||||||
|
type PddDdkOauthGoodsPidQueryResult struct {
|
||||||
|
Result PddDdkOauthGoodsPidQueryResponse // 结果
|
||||||
|
Body []byte // 内容
|
||||||
|
Http gorequest.Response // 请求
|
||||||
|
Err error // 错误
|
||||||
|
}
|
||||||
|
|
||||||
|
func newPddDdkOauthGoodsPidQueryResult(result PddDdkOauthGoodsPidQueryResponse, body []byte, http gorequest.Response, err error) *PddDdkOauthGoodsPidQueryResult {
|
||||||
|
return &PddDdkOauthGoodsPidQueryResult{Result: result, Body: body, Http: http, Err: err}
|
||||||
|
}
|
||||||
|
|
||||||
|
// PidQuery 多多客已生成推广位信息查询
|
||||||
|
// https://jinbao.pinduoduo.com/third-party/api-detail?apiName=pdd.ddk.oauth.goods.pid.query
|
||||||
|
func (c *PddDdkOauthGoodsApi) PidQuery(ctx context.Context, notMustParams ...Params) *PddDdkOauthGoodsPidQueryResult {
|
||||||
|
// 参数
|
||||||
|
params := NewParamsWithType("pdd.ddk.oauth.goods.pid.query", notMustParams...)
|
||||||
|
// 请求
|
||||||
|
request, err := c.client.request(ctx, params)
|
||||||
|
// 定义
|
||||||
|
var response PddDdkOauthGoodsPidQueryResponse
|
||||||
|
err = gojson.Unmarshal(request.ResponseBody, &response)
|
||||||
|
return newPddDdkOauthGoodsPidQueryResult(response, request.ResponseBody, request, err)
|
||||||
|
}
|
@ -0,0 +1,80 @@
|
|||||||
|
package pinduoduo
|
||||||
|
|
||||||
|
import (
|
||||||
|
"context"
|
||||||
|
"github.com/dtapps/go-library/utils/gojson"
|
||||||
|
"github.com/dtapps/go-library/utils/gorequest"
|
||||||
|
)
|
||||||
|
|
||||||
|
type PddDdkOauthGoodsPromUrlGenerateResponse struct {
|
||||||
|
OrderDetailResponse struct {
|
||||||
|
SepMarketFee int `json:"sep_market_fee"`
|
||||||
|
GoodsPrice int `json:"goods_price"`
|
||||||
|
SepDuoId int `json:"sep_duo_id"`
|
||||||
|
Pid string `json:"pid"`
|
||||||
|
PromotionRate int `json:"promotion_rate"`
|
||||||
|
CpsSign string `json:"cps_sign"`
|
||||||
|
Type int `json:"type"`
|
||||||
|
SubsidyDuoAmountLevel int `json:"subsidy_duo_amount_level"`
|
||||||
|
OrderStatus int `json:"order_status"`
|
||||||
|
CatIds []int `json:"cat_ids"`
|
||||||
|
OrderCreateTime int64 `json:"order_create_time"`
|
||||||
|
IsDirect int `json:"is_direct"`
|
||||||
|
OrderGroupSuccessTime int `json:"order_group_success_time"`
|
||||||
|
MallId int `json:"mall_id"`
|
||||||
|
OrderAmount int64 `json:"order_amount"`
|
||||||
|
PriceCompareStatus int `json:"price_compare_status"`
|
||||||
|
MallName string `json:"mall_name"`
|
||||||
|
OrderModifyAt int `json:"order_modify_at"`
|
||||||
|
AuthDuoId int `json:"auth_duo_id"`
|
||||||
|
CpaNew int `json:"cpa_new"`
|
||||||
|
GoodsName string `json:"goods_name"`
|
||||||
|
BatchNo string `json:"batch_no"`
|
||||||
|
RedPacketType int `json:"red_packet_type"`
|
||||||
|
UrlLastGenerateTime int `json:"url_last_generate_time"`
|
||||||
|
GoodsQuantity int `json:"goods_quantity"`
|
||||||
|
GoodsId int64 `json:"goods_id"`
|
||||||
|
SepParameters string `json:"sep_parameters"`
|
||||||
|
SepRate int `json:"sep_rate"`
|
||||||
|
SubsidyType int `json:"subsidy_type"`
|
||||||
|
ShareRate int `json:"share_rate"`
|
||||||
|
CustomParameters string `json:"custom_parameters"`
|
||||||
|
GoodsThumbnailUrl string `json:"goods_thumbnail_url"`
|
||||||
|
PromotionAmount int64 `json:"promotion_amount"`
|
||||||
|
OrderPayTime int `json:"order_pay_time"`
|
||||||
|
GroupId int64 `json:"group_id"`
|
||||||
|
SepPid string `json:"sep_pid"`
|
||||||
|
ReturnStatus int `json:"return_status"`
|
||||||
|
OrderStatusDesc string `json:"order_status_desc"`
|
||||||
|
ShareAmount int `json:"share_amount"`
|
||||||
|
GoodsCategoryName string `json:"goods_category_name"`
|
||||||
|
RequestId string `json:"request_id"`
|
||||||
|
GoodsSign string `json:"goods_sign"`
|
||||||
|
OrderSn string `json:"order_sn"`
|
||||||
|
ZsDuoId int `json:"zs_duo_id"`
|
||||||
|
} `json:"order_detail_response"`
|
||||||
|
}
|
||||||
|
|
||||||
|
type PddDdkOauthGoodsPromUrlGenerateResult struct {
|
||||||
|
Result PddDdkOauthGoodsPromUrlGenerateResponse // 结果
|
||||||
|
Body []byte // 内容
|
||||||
|
Http gorequest.Response // 请求
|
||||||
|
Err error // 错误
|
||||||
|
}
|
||||||
|
|
||||||
|
func newPddDdkOauthGoodsPromUrlGenerateResult(result PddDdkOauthGoodsPromUrlGenerateResponse, body []byte, http gorequest.Response, err error) *PddDdkOauthGoodsPromUrlGenerateResult {
|
||||||
|
return &PddDdkOauthGoodsPromUrlGenerateResult{Result: result, Body: body, Http: http, Err: err}
|
||||||
|
}
|
||||||
|
|
||||||
|
// PromUrlGenerate 生成多多进宝推广链接
|
||||||
|
// https://jinbao.pinduoduo.com/third-party/api-detail?apiName=pdd.ddk.oauth.goods.prom.url.generate
|
||||||
|
func (c *PddDdkOauthGoodsApi) PromUrlGenerate(ctx context.Context, notMustParams ...Params) *PddDdkOauthGoodsPromUrlGenerateResult {
|
||||||
|
// 参数
|
||||||
|
params := NewParamsWithType("pdd.ddk.oauth.goods.prom.url.generate", notMustParams...)
|
||||||
|
// 请求
|
||||||
|
request, err := c.client.request(ctx, params)
|
||||||
|
// 定义
|
||||||
|
var response PddDdkOauthGoodsPromUrlGenerateResponse
|
||||||
|
err = gojson.Unmarshal(request.ResponseBody, &response)
|
||||||
|
return newPddDdkOauthGoodsPromUrlGenerateResult(response, request.ResponseBody, request, err)
|
||||||
|
}
|
@ -0,0 +1,80 @@
|
|||||||
|
package pinduoduo
|
||||||
|
|
||||||
|
import (
|
||||||
|
"context"
|
||||||
|
"github.com/dtapps/go-library/utils/gojson"
|
||||||
|
"github.com/dtapps/go-library/utils/gorequest"
|
||||||
|
)
|
||||||
|
|
||||||
|
type PddDdkOauthGoodsRecommendGetResponse struct {
|
||||||
|
OrderDetailResponse struct {
|
||||||
|
SepMarketFee int `json:"sep_market_fee"`
|
||||||
|
GoodsPrice int `json:"goods_price"`
|
||||||
|
SepDuoId int `json:"sep_duo_id"`
|
||||||
|
Pid string `json:"pid"`
|
||||||
|
PromotionRate int `json:"promotion_rate"`
|
||||||
|
CpsSign string `json:"cps_sign"`
|
||||||
|
Type int `json:"type"`
|
||||||
|
SubsidyDuoAmountLevel int `json:"subsidy_duo_amount_level"`
|
||||||
|
OrderStatus int `json:"order_status"`
|
||||||
|
CatIds []int `json:"cat_ids"`
|
||||||
|
OrderCreateTime int64 `json:"order_create_time"`
|
||||||
|
IsDirect int `json:"is_direct"`
|
||||||
|
OrderGroupSuccessTime int `json:"order_group_success_time"`
|
||||||
|
MallId int `json:"mall_id"`
|
||||||
|
OrderAmount int64 `json:"order_amount"`
|
||||||
|
PriceCompareStatus int `json:"price_compare_status"`
|
||||||
|
MallName string `json:"mall_name"`
|
||||||
|
OrderModifyAt int `json:"order_modify_at"`
|
||||||
|
AuthDuoId int `json:"auth_duo_id"`
|
||||||
|
CpaNew int `json:"cpa_new"`
|
||||||
|
GoodsName string `json:"goods_name"`
|
||||||
|
BatchNo string `json:"batch_no"`
|
||||||
|
RedPacketType int `json:"red_packet_type"`
|
||||||
|
UrlLastGenerateTime int `json:"url_last_generate_time"`
|
||||||
|
GoodsQuantity int `json:"goods_quantity"`
|
||||||
|
GoodsId int64 `json:"goods_id"`
|
||||||
|
SepParameters string `json:"sep_parameters"`
|
||||||
|
SepRate int `json:"sep_rate"`
|
||||||
|
SubsidyType int `json:"subsidy_type"`
|
||||||
|
ShareRate int `json:"share_rate"`
|
||||||
|
CustomParameters string `json:"custom_parameters"`
|
||||||
|
GoodsThumbnailUrl string `json:"goods_thumbnail_url"`
|
||||||
|
PromotionAmount int64 `json:"promotion_amount"`
|
||||||
|
OrderPayTime int `json:"order_pay_time"`
|
||||||
|
GroupId int64 `json:"group_id"`
|
||||||
|
SepPid string `json:"sep_pid"`
|
||||||
|
ReturnStatus int `json:"return_status"`
|
||||||
|
OrderStatusDesc string `json:"order_status_desc"`
|
||||||
|
ShareAmount int `json:"share_amount"`
|
||||||
|
GoodsCategoryName string `json:"goods_category_name"`
|
||||||
|
RequestId string `json:"request_id"`
|
||||||
|
GoodsSign string `json:"goods_sign"`
|
||||||
|
OrderSn string `json:"order_sn"`
|
||||||
|
ZsDuoId int `json:"zs_duo_id"`
|
||||||
|
} `json:"order_detail_response"`
|
||||||
|
}
|
||||||
|
|
||||||
|
type PddDdkOauthGoodsRecommendGetResult struct {
|
||||||
|
Result PddDdkOauthGoodsRecommendGetResponse // 结果
|
||||||
|
Body []byte // 内容
|
||||||
|
Http gorequest.Response // 请求
|
||||||
|
Err error // 错误
|
||||||
|
}
|
||||||
|
|
||||||
|
func newPddDdkOauthGoodsRecommendGetResult(result PddDdkOauthGoodsRecommendGetResponse, body []byte, http gorequest.Response, err error) *PddDdkOauthGoodsRecommendGetResult {
|
||||||
|
return &PddDdkOauthGoodsRecommendGetResult{Result: result, Body: body, Http: http, Err: err}
|
||||||
|
}
|
||||||
|
|
||||||
|
// RecommendGet 运营频道商品查询API
|
||||||
|
// https://jinbao.pinduoduo.com/third-party/api-detail?apiName=pdd.ddk.oauth.goods.recommend.get
|
||||||
|
func (c *PddDdkOauthGoodsApi) RecommendGet(ctx context.Context, notMustParams ...Params) *PddDdkOauthGoodsRecommendGetResult {
|
||||||
|
// 参数
|
||||||
|
params := NewParamsWithType("pdd.ddk.oauth.goods.recommend.get", notMustParams...)
|
||||||
|
// 请求
|
||||||
|
request, err := c.client.request(ctx, params)
|
||||||
|
// 定义
|
||||||
|
var response PddDdkOauthGoodsRecommendGetResponse
|
||||||
|
err = gojson.Unmarshal(request.ResponseBody, &response)
|
||||||
|
return newPddDdkOauthGoodsRecommendGetResult(response, request.ResponseBody, request, err)
|
||||||
|
}
|
Some files were not shown because too many files have changed in this diff Show More
Loading…
Reference in new issue