提交 28e870fa authored 作者: 屈传平's avatar 屈传平

wangdiantong

上级 5bafbab1
......@@ -2,7 +2,10 @@ package wangdiantong
import (
"context"
"encoding/json"
"github.com/gogf/gf/encoding/gjson"
"github.com/gogf/gf/frame/g"
"github.com/gogf/gf/util/gconv"
)
type GoodsListReq struct {
......@@ -165,8 +168,14 @@ type GoodsCreateRes struct {
/*
*创建平台货品
*/
func (s *WangDianTong) GoodsPush(ctx context.Context, req *GoodsCreateReq) (res *GoodsCreateRes, err error) {
func (s *WangDianTong) GoodsPush(ctx context.Context, req []*GoodsCreateReq) (res *GoodsCreateRes, err error) {
body, err := json.Marshal(req)
if nil != err {
return
}
params := g.Map{}
params["goods_list"] = gconv.String(body)
result, err := s.post(ctx, "/openapi2/goods_push.php", req)
if nil != err {
return
......
Markdown 格式
0%
您添加了 0 到此讨论。请谨慎行事。
请先完成此评论的编辑!
注册 或者 后发表评论