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 {
...
@@ -11,28 +11,51 @@ type order struct {
}
}
type
TradeListReq
struct
{
type
TradeListReq
struct
{
ProviderNo
int
`json:"provider_no"`
Tid
string
`json:"tid"`
WarehouseNo
string
`json:"warehouse_no"`
TradeStatus
int
`json:"trade_status"`
OuterNo
string
`json:"outer_no"`
DeliveryTerm
int
`json:"delivery_term"`
IsUseOuterNo
int
`json:"is_use_outer_no"`
PayStatus
int
`json:"pay_status"`
IsCheck
int
`json:"is_check"`
TradeTime
string
`json:"trade_time"`
Contact
string
`json:"contact"`
PayTime
string
`json:"pay_time"`
Telno
string
`json:"telno"`
BuyerNick
string
`json:"buyer_nick"`
ReceiveAddress
string
`json:"receive_address"`
BuyerEmail
string
`json:"buyer_email"`
LogisticsType
int
`json:"logistics_type"`
ReceiverMobile
string
`json:"receiver_mobile"`
OtherFee
float64
`json:"other_fee"`
ReceiverTelno
string
`json:"receiver_telno"`
PostFee
float64
`json:"post_fee"`
ReceiverZip
string
`json:"receiver_zip"`
Remark
string
`json:"remark"`
ReceiverProvince
string
`json:"receiver_province"`
DetailsList
[]
struct
{
ReceiverName
string
`json:"receiver_name"`
SpecNo
string
`json:"spec_no"`
ReceiverCity
string
`json:"receiver_city"`
Num
int
`json:"num"`
ReceiverDistrict
string
`json:"receiver_district"`
Price
float64
`json:"price"`
ReceiverAddress
string
`json:"receiver_address"`
Discount
float64
`json:"discount"`
LogisticsType
int
`json:"logistics_type"`
Tax
float64
`json:"tax"`
InvoiceType
int
`json:"invoice_type"`
Remark
string
`json:"remark"`
InvoiceTitle
string
`json:"invoice_title"`
Prop1
string
`json:"prop1"`
InvoiceContent
string
`json:"invoice_content"`
Prop2
string
`json:"prop2"`
BuyerMessage
string
`json:"buyer_message"`
}
`json:"details_list"`
CustData
string
`json:"cust_data"`
Remark
string
`json:"remark"`
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"`
ShareDiscount
float64
`json:"share_discount"`
Cid
string
`json:"cid"`
}
`json:"order_list"`
}
}
type
TradePushReq
struct
{
type
TradePushReq
struct
{
...
@@ -53,7 +76,7 @@ type TradePushRes struct {
...
@@ -53,7 +76,7 @@ type TradePushRes struct {
*/
*/
func
(
s
*
goods
)
TradePush
(
ctx
context
.
Context
,
req
*
TradePushReq
)
(
res
*
TradePushRes
,
err
error
)
{
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
{
if
nil
!=
err
{
return
return
}
}
...
...
编写
预览
Markdown
格式
0%
重试
或
添加新文件
添加附件
取消
您添加了
0
人
到此讨论。请谨慎行事。
请先完成此评论的编辑!
取消
请
注册
或者
登录
后发表评论