Skip to content
项目
群组
代码片段
帮助
正在加载...
帮助
为 GitLab 提交贡献
登录
切换导航
L
library
项目
项目
详情
活动
周期分析
仓库
仓库
文件
提交
分支
标签
贡献者
分枝图
比较
统计图
议题
0
议题
0
列表
看板
标记
里程碑
合并请求
0
合并请求
0
CI / CD
CI / CD
流水线
作业
计划
统计图
Wiki
Wiki
代码片段
代码片段
成员
成员
折叠边栏
关闭边栏
活动
分枝图
统计图
创建新议题
作业
提交
议题看板
打开侧边栏
stbz
library
Commits
f6f56ff9
提交
f6f56ff9
authored
3月 21, 2025
作者:
屈传平
浏览文件
操作
浏览文件
下载
电子邮件补丁
差异文件
wangdian
上级
bb1ede1b
显示空白字符变更
内嵌
并排
正在显示
1 个修改的文件
包含
46 行增加
和
23 行删除
+46
-23
wd_order.go
upstream/wangdian/wd_order.go
+46
-23
没有找到文件。
upstream/wangdian/wd_order.go
浏览文件 @
f6f56ff9
...
...
@@ -11,28 +11,51 @@ type order struct {
}
type
TradeListReq
struct
{
ProviderNo
int
`json:"provider_no"`
WarehouseNo
string
`json:"warehouse_no"`
OuterNo
string
`json:"outer_no"`
IsUseOuterNo
int
`json:"is_use_outer_no"`
IsCheck
int
`json:"is_check"`
Contact
string
`json:"contact"`
Telno
string
`json:"telno"`
ReceiveAddress
string
`json:"receive_address"`
Tid
string
`json:"tid"`
TradeStatus
int
`json:"trade_status"`
DeliveryTerm
int
`json:"delivery_term"`
PayStatus
int
`json:"pay_status"`
TradeTime
string
`json:"trade_time"`
PayTime
string
`json:"pay_time"`
BuyerNick
string
`json:"buyer_nick"`
BuyerEmail
string
`json:"buyer_email"`
ReceiverMobile
string
`json:"receiver_mobile"`
ReceiverTelno
string
`json:"receiver_telno"`
ReceiverZip
string
`json:"receiver_zip"`
ReceiverProvince
string
`json:"receiver_province"`
ReceiverName
string
`json:"receiver_name"`
ReceiverCity
string
`json:"receiver_city"`
ReceiverDistrict
string
`json:"receiver_district"`
ReceiverAddress
string
`json:"receiver_address"`
LogisticsType
int
`json:"logistics_type"`
OtherFee
float64
`json:"other_fee"`
PostFee
float64
`json:"post_fee"`
InvoiceType
int
`json:"invoice_type"`
InvoiceTitle
string
`json:"invoice_title"`
InvoiceContent
string
`json:"invoice_content"`
BuyerMessage
string
`json:"buyer_message"`
CustData
string
`json:"cust_data"`
Remark
string
`json:"remark"`
DetailsList
[]
struct
{
RemarkFlag
int
`json:"remark_flag"`
PostAmount
float64
`json:"post_amount"`
Paid
float64
`json:"paid"`
CodAmount
int
`json:"cod_amount"`
ExtCodFee
int
`json:"ext_cod_fee"`
OrderList
[]
struct
{
Oid
string
`json:"oid"`
Status
int
`json:"status"`
RefundStatus
int
`json:"refund_status"`
GoodsId
string
`json:"goods_id"`
SpecId
string
`json:"spec_id"`
GoodsNo
string
`json:"goods_no"`
SpecNo
string
`json:"spec_no"`
GoodsName
string
`json:"goods_name"`
SpecName
string
`json:"spec_name"`
Num
int
`json:"num"`
Price
float64
`json:"price"`
AdjustAmount
float64
`json:"adjust_amount"`
Discount
float64
`json:"discount"`
Tax
float64
`json:"tax"`
Remark
string
`json:"remark"`
Prop1
string
`json:"prop1"`
Prop2
string
`json:"prop2"`
}
`json:"details_list"`
ShareDiscount
float64
`json:"share_discount"`
Cid
string
`json:"cid"`
}
`json:"order_list"`
}
type
TradePushReq
struct
{
...
...
@@ -53,7 +76,7 @@ type TradePushRes struct {
*/
func
(
s
*
goods
)
TradePush
(
ctx
context
.
Context
,
req
*
TradePushReq
)
(
res
*
TradePushRes
,
err
error
)
{
result
,
err
:=
post
(
ctx
,
"/
purchase_order
_push.php"
,
req
)
result
,
err
:=
post
(
ctx
,
"/
openapi2/trade
_push.php"
,
req
)
if
nil
!=
err
{
return
}
...
...
编写
预览
Markdown
格式
0%
重试
或
添加新文件
添加附件
取消
您添加了
0
人
到此讨论。请谨慎行事。
请先完成此评论的编辑!
取消
请
注册
或者
登录
后发表评论