Skip to content
项目
群组
代码片段
帮助
正在加载...
帮助
为 GitLab 提交贡献
登录
切换导航
L
library
项目
项目
详情
活动
周期分析
仓库
仓库
文件
提交
分支
标签
贡献者
分枝图
比较
统计图
议题
0
议题
0
列表
看板
标记
里程碑
合并请求
0
合并请求
0
CI / CD
CI / CD
流水线
作业
计划
统计图
Wiki
Wiki
代码片段
代码片段
成员
成员
折叠边栏
关闭边栏
活动
分枝图
统计图
创建新议题
作业
提交
议题看板
打开侧边栏
stbz
library
Commits
55b1375a
提交
55b1375a
authored
5月 21, 2025
作者:
屈传平
浏览文件
操作
浏览文件
下载
电子邮件补丁
差异文件
wangdiantong
上级
302cdf66
显示空白字符变更
内嵌
并排
正在显示
5 个修改的文件
包含
17 行增加
和
17 行删除
+17
-17
wdt.go
upstream/wangdiantong/wdt.go
+6
-6
wdt_goods.go
upstream/wangdiantong/wdt_goods.go
+1
-1
wdt_order.go
upstream/wangdiantong/wdt_order.go
+5
-5
wdt_refund.go
upstream/wangdiantong/wdt_refund.go
+4
-4
wdt_shop.go
upstream/wangdiantong/wdt_shop.go
+1
-1
没有找到文件。
upstream/wangdiantong/wdt.go
浏览文件 @
55b1375a
...
...
@@ -16,7 +16,7 @@ import (
"unicode/utf8"
)
type
w
angDianTong
struct
{
type
W
angDianTong
struct
{
Config
*
Config
}
...
...
@@ -30,10 +30,10 @@ type Config struct {
ApiUrl
string
}
func
New
(
req
*
Config
)
*
w
angDianTong
{
WangdianTong
:=
new
(
w
angDianTong
)
WangdianTong
.
Config
=
req
return
WangdianTong
func
New
(
req
*
Config
)
*
W
angDianTong
{
WangdianTong
Server
:=
new
(
W
angDianTong
)
WangdianTong
Server
.
Config
=
req
return
WangdianTong
Server
}
func
packData
(
req
map
[
string
]
interface
{})
string
{
...
...
@@ -98,7 +98,7 @@ func deleteZeroValues(req map[string]interface{}) map[string]interface{} {
return
param
}
func
(
s
*
w
angDianTong
)
post
(
ctx
context
.
Context
,
method
string
,
req
interface
{})
(
res
string
,
err
error
)
{
func
(
s
*
W
angDianTong
)
post
(
ctx
context
.
Context
,
method
string
,
req
interface
{})
(
res
string
,
err
error
)
{
Start
:=
gtime
.
TimestampMilli
()
reqMap
:=
gconv
.
Map
(
req
)
...
...
upstream/wangdiantong/wdt_goods.go
浏览文件 @
55b1375a
...
...
@@ -101,7 +101,7 @@ type GoodsListRes struct {
商品列表
*/
func
(
s
*
w
angDianTong
)
GoodsList
(
ctx
context
.
Context
,
req
*
GoodsListReq
)
(
res
*
GoodsListRes
,
err
error
)
{
func
(
s
*
W
angDianTong
)
GoodsList
(
ctx
context
.
Context
,
req
*
GoodsListReq
)
(
res
*
GoodsListRes
,
err
error
)
{
result
,
err
:=
s
.
post
(
ctx
,
"/openapi2/goods_query.php"
,
req
)
if
nil
!=
err
{
...
...
upstream/wangdiantong/wdt_order.go
浏览文件 @
55b1375a
...
...
@@ -73,7 +73,7 @@ type TradePushRes struct {
*
创建原始订单
*/
func
(
s
*
w
angDianTong
)
TradePush
(
ctx
context
.
Context
,
req
*
TradePushReq
)
(
res
*
TradePushRes
,
err
error
)
{
func
(
s
*
W
angDianTong
)
TradePush
(
ctx
context
.
Context
,
req
*
TradePushReq
)
(
res
*
TradePushRes
,
err
error
)
{
result
,
err
:=
s
.
post
(
ctx
,
"/openapi2/trade_push.php"
,
req
)
if
nil
!=
err
{
...
...
@@ -246,7 +246,7 @@ type TradeQueryRes struct {
*
查询销售出库单
*/
func
(
s
*
w
angDianTong
)
TradeQuery
(
ctx
context
.
Context
,
req
*
TradeQueryReq
)
(
res
*
TradeQueryRes
,
err
error
)
{
func
(
s
*
W
angDianTong
)
TradeQuery
(
ctx
context
.
Context
,
req
*
TradeQueryReq
)
(
res
*
TradeQueryRes
,
err
error
)
{
result
,
err
:=
s
.
post
(
ctx
,
"/openapi2/purchase_order_query.php"
,
req
)
if
nil
!=
err
{
...
...
@@ -424,7 +424,7 @@ type SalesTradeQueryRes struct {
*
查询订单管理
*/
func
(
s
*
w
angDianTong
)
SalesTradeQuery
(
ctx
context
.
Context
,
req
*
SalesTradeQueryReq
)
(
res
*
SalesTradeQueryRes
,
err
error
)
{
func
(
s
*
W
angDianTong
)
SalesTradeQuery
(
ctx
context
.
Context
,
req
*
SalesTradeQueryReq
)
(
res
*
SalesTradeQueryRes
,
err
error
)
{
result
,
err
:=
s
.
post
(
ctx
,
"/openapi2/sales_trade_query.php"
,
req
)
if
nil
!=
err
{
...
...
@@ -528,7 +528,7 @@ type SalesApiTradeQueryRes struct {
*
查询原始订单
*/
func
(
s
*
w
angDianTong
)
SalesApiTradeQuery
(
ctx
context
.
Context
,
req
*
SalesApiTradeQueryReq
)
(
res
*
SalesApiTradeQueryRes
,
err
error
)
{
func
(
s
*
W
angDianTong
)
SalesApiTradeQuery
(
ctx
context
.
Context
,
req
*
SalesApiTradeQueryReq
)
(
res
*
SalesApiTradeQueryRes
,
err
error
)
{
result
,
err
:=
s
.
post
(
ctx
,
"/openapi2/sales_api_trade_query.php"
,
req
)
if
nil
!=
err
{
...
...
@@ -571,7 +571,7 @@ type LogisticsMultiQueryRes struct {
*
查询多物流单号
*/
func
(
s
*
w
angDianTong
)
LogisticsMultiQuery
(
ctx
context
.
Context
,
req
*
LogisticsMultiQueryReq
)
(
res
*
LogisticsMultiQueryRes
,
err
error
)
{
func
(
s
*
W
angDianTong
)
LogisticsMultiQuery
(
ctx
context
.
Context
,
req
*
LogisticsMultiQueryReq
)
(
res
*
LogisticsMultiQueryRes
,
err
error
)
{
result
,
err
:=
s
.
post
(
ctx
,
"/openapi2/logistics_multi_query.php"
,
req
)
if
nil
!=
err
{
...
...
upstream/wangdiantong/wdt_refund.go
浏览文件 @
55b1375a
...
...
@@ -38,7 +38,7 @@ type SalesRefundPushRes struct {
*
创建原始退款单
*/
func
(
s
*
w
angDianTong
)
SalesRefundPush
(
ctx
context
.
Context
,
req
*
SalesRefundPushReq
)
(
res
*
SalesRefundPushRes
,
err
error
)
{
func
(
s
*
W
angDianTong
)
SalesRefundPush
(
ctx
context
.
Context
,
req
*
SalesRefundPushReq
)
(
res
*
SalesRefundPushRes
,
err
error
)
{
salesRefundPushReqs
:=
[]
*
SalesRefundPushReq
{}
salesRefundPushReqs
=
append
(
salesRefundPushReqs
,
req
)
params
:=
make
(
map
[
string
]
interface
{})
...
...
@@ -214,7 +214,7 @@ type RefundQueryRes struct {
*
查询退换管理
*/
func
(
s
*
w
angDianTong
)
RefundQuery
(
ctx
context
.
Context
,
req
*
RefundQueryReq
)
(
res
*
RefundQueryRes
,
err
error
)
{
func
(
s
*
W
angDianTong
)
RefundQuery
(
ctx
context
.
Context
,
req
*
RefundQueryReq
)
(
res
*
RefundQueryRes
,
err
error
)
{
result
,
err
:=
s
.
post
(
ctx
,
"/openapi2/refund_query.php"
,
req
)
if
nil
!=
err
{
...
...
@@ -257,7 +257,7 @@ type StockRefundLogisticsQueryRes struct {
*
查询退货物流单号
*/
func
(
s
*
w
angDianTong
)
StockRefundLogisticsQuery
(
ctx
context
.
Context
,
req
*
StockRefundLogisticsQueryReq
)
(
res
*
StockRefundLogisticsQueryRes
,
err
error
)
{
func
(
s
*
W
angDianTong
)
StockRefundLogisticsQuery
(
ctx
context
.
Context
,
req
*
StockRefundLogisticsQueryReq
)
(
res
*
StockRefundLogisticsQueryRes
,
err
error
)
{
result
,
err
:=
s
.
post
(
ctx
,
"/openapi2/stock_refund_logistics_query.php"
,
req
)
if
nil
!=
err
{
...
...
@@ -289,7 +289,7 @@ type StockinRefundPushRes struct {
*
创建退货入库单
*/
func
(
s
*
w
angDianTong
)
StockinRefundPush
(
ctx
context
.
Context
,
req
*
StockinRefundPushReq
)
(
res
*
StockinRefundPushRes
,
err
error
)
{
func
(
s
*
W
angDianTong
)
StockinRefundPush
(
ctx
context
.
Context
,
req
*
StockinRefundPushReq
)
(
res
*
StockinRefundPushRes
,
err
error
)
{
result
,
err
:=
s
.
post
(
ctx
,
"/openapi2/stockin_refund_push.php"
,
req
)
if
nil
!=
err
{
...
...
upstream/wangdiantong/wdt_shop.go
浏览文件 @
55b1375a
...
...
@@ -37,7 +37,7 @@ type ShopListRes struct {
}
`json:"shoplist"`
}
func
(
s
*
w
angDianTong
)
ShopList
(
ctx
context
.
Context
,
req
*
ShopListReq
)
(
res
*
ShopListRes
,
err
error
)
{
func
(
s
*
W
angDianTong
)
ShopList
(
ctx
context
.
Context
,
req
*
ShopListReq
)
(
res
*
ShopListRes
,
err
error
)
{
result
,
err
:=
s
.
post
(
ctx
,
"/openapi2/shop.php"
,
req
)
if
nil
!=
err
{
...
...
编写
预览
Markdown
格式
0%
重试
或
添加新文件
添加附件
取消
您添加了
0
人
到此讨论。请谨慎行事。
请先完成此评论的编辑!
取消
请
注册
或者
登录
后发表评论