Skip to content
项目
群组
代码片段
帮助
正在加载...
帮助
为 GitLab 提交贡献
登录
切换导航
L
library
项目
项目
详情
活动
周期分析
仓库
仓库
文件
提交
分支
标签
贡献者
分枝图
比较
统计图
议题
0
议题
0
列表
看板
标记
里程碑
合并请求
0
合并请求
0
CI / CD
CI / CD
流水线
作业
计划
统计图
Wiki
Wiki
代码片段
代码片段
成员
成员
折叠边栏
关闭边栏
活动
分枝图
统计图
创建新议题
作业
提交
议题看板
打开侧边栏
stbz
library
Commits
e29748ac
提交
e29748ac
authored
7月 30, 2025
作者:
屈传平
浏览文件
操作
浏览文件
下载
差异文件
Merge branch 'featrue/yonghui'
上级
e3821b98
d4c30936
显示空白字符变更
内嵌
并排
正在显示
1 个修改的文件
包含
47 行增加
和
46 行删除
+47
-46
yonghui_order.go
upstream/yonghui/yonghui_order.go
+47
-46
没有找到文件。
upstream/yonghui/yonghui_order.go
浏览文件 @
e29748ac
...
@@ -45,7 +45,8 @@ type OrderCreateRes struct {
...
@@ -45,7 +45,8 @@ type OrderCreateRes struct {
Data
interface
{}
`json:"data"`
Data
interface
{}
`json:"data"`
}
}
/**
/*
*
创建订单
创建订单
*/
*/
func
(
s
*
order
)
Create
(
ctx
context
.
Context
,
req
*
OrderCreateReq
)
(
res
*
OrderCreateRes
,
err
error
)
{
func
(
s
*
order
)
Create
(
ctx
context
.
Context
,
req
*
OrderCreateReq
)
(
res
*
OrderCreateRes
,
err
error
)
{
...
@@ -71,7 +72,8 @@ type OrderConfirmRes struct {
...
@@ -71,7 +72,8 @@ type OrderConfirmRes struct {
Data
string
`json:"data"`
Data
string
`json:"data"`
}
}
/**
/*
*
确认订单
确认订单
*/
*/
func
(
s
*
order
)
Confirm
(
ctx
context
.
Context
,
req
*
OrderConfirmReq
)
(
res
*
OrderConfirmRes
,
err
error
)
{
func
(
s
*
order
)
Confirm
(
ctx
context
.
Context
,
req
*
OrderConfirmReq
)
(
res
*
OrderConfirmRes
,
err
error
)
{
...
@@ -106,54 +108,48 @@ type OrderDetailRes struct {
...
@@ -106,54 +108,48 @@ type OrderDetailRes struct {
ReceiverAddress
string
`json:"receiverAddress"`
ReceiverAddress
string
`json:"receiverAddress"`
ReceiverName
string
`json:"receiverName"`
ReceiverName
string
`json:"receiverName"`
ReceiverPhone
string
`json:"receiverPhone"`
ReceiverPhone
string
`json:"receiverPhone"`
ShipTime
string
`json:"shipTime"`
UserName
string
`json:"userName"`
UserName
string
`json:"userName"`
UserTelephone
string
`json:"userTelephone"`
UserTelephone
string
`json:"userTelephone"`
OrderType
int
`json:"orderType"`
PushType
string
`json:"pushType"`
ShipTime
string
`json:"shipTime"`
GoodsDetails
[]
struct
{
GoodsDetails
[]
struct
{
ClassCode
string
`json:"classCode"`
ClassCode
string
`json:"classCode"`
ClassName
string
`json:"className"`
ClassName
string
`json:"className"`
GoodsCode
string
`json:"goodsCode"`
GoodsCode
string
`json:"goodsCode"`
GoodsQty
int
`json:"goodsQty"`
GoodsQty
string
`json:"goodsQty"`
GoodsImage
string
`json:"goodsImage"`
GoodsImage
string
`json:"goodsImage"`
GoodsName
string
`json:"goodsName"`
GoodsName
string
`json:"goodsName"`
GoodsPrice
int
`json:"goodsPrice"`
GoodsPrice
string
`json:"goodsPrice"`
GoodsSpec
string
`json:"goodsSpec"`
GoodsSpec
string
`json:"goodsSpec"`
GoodsUnit
string
`json:"goodsUnit"`
GoodsUnit
string
`json:"goodsUnit"`
NetPrice
float64
`json:"netPrice"`
NetPrice
string
`json:"netPrice"`
TaxPrice
int
`json:"taxPrice"`
TaxPrice
string
`json:"taxPrice"`
TaxRate
int
`json:"taxRate"`
TaxRate
int
`json:"taxRate"`
TotalPrice
int
`json:"totalPrice"`
TotalPrice
string
`json:"totalPrice"`
}
`json:"goodsDetails"`
}
`json:"goodsDetails"`
PayDetails
[]
struct
{
PayAmount
int
`json:"payAmount"`
PayCode
string
`json:"payCode"`
PayType
string
`json:"payType"`
}
`json:"payDetails"`
SubOrderDetails
[]
struct
{
SubOrderDetails
[]
struct
{
CsxSubOrderCode
string
`json:"csxS
ubOrderCode"`
SubOrderCode
string
`json:"s
ubOrderCode"`
OrderStatus
string
`json:"o
rderStatus"`
SubOrderStatus
string
`json:"subO
rderStatus"`
GoodsDetails
[]
struct
{
SubGoodsDetails
[]
struct
{
ClassCode
string
`json:"classCode"`
ClassCode
string
`json:"classCode"`
ClassName
string
`json:"className"`
ClassName
string
`json:"className"`
GoodsCode
string
`json:"goodsCode"`
GoodsCode
string
`json:"goodsCode"`
GoodsQty
int
`json:"goodsQty"`
GoodsQty
string
`json:"goodsQty"`
GoodsImage
string
`json:"goodsImage"`
GoodsImage
string
`json:"goodsImage"`
GoodsName
string
`json:"goodsName"`
GoodsName
string
`json:"goodsName"`
GoodsPrice
float64
`json:"goodsPrice"`
GoodsPrice
string
`json:"goodsPrice"`
GoodsSpec
string
`json:"goodsSpec"`
GoodsSpec
string
`json:"goodsSpec"`
GoodsUnit
string
`json:"goodsUnit"`
GoodsUnit
string
`json:"goodsUnit"`
NetPrice
float64
`json:"netPrice"`
NetPrice
string
`json:"netPrice"`
TaxPrice
float64
`json:"taxPrice"`
TaxPrice
string
`json:"taxPrice"`
TaxRate
int
`json:"taxRate"`
TaxRate
int
`json:"taxRate"`
TotalPrice
float64
`json:"totalPrice"`
TotalPrice
string
`json:"totalPrice"`
}
`json:"
g
oodsDetails"`
}
`json:"
subG
oodsDetails"`
}
`json:"subOrderDetails"`
}
`json:"subOrderDetails"`
}
`json:"data"`
}
`json:"data"`
}
}
/**
/*
*
订单详情
订单详情
*/
*/
func
(
s
*
order
)
Detail
(
ctx
context
.
Context
,
req
*
OrderDetailReq
)
(
res
*
OrderDetailRes
,
err
error
)
{
func
(
s
*
order
)
Detail
(
ctx
context
.
Context
,
req
*
OrderDetailReq
)
(
res
*
OrderDetailRes
,
err
error
)
{
...
@@ -177,7 +173,8 @@ type OrderQueryRes struct {
...
@@ -177,7 +173,8 @@ type OrderQueryRes struct {
Data
int64
`json:"data"`
Data
int64
`json:"data"`
}
}
/**
/*
*
反查订单
反查订单
*/
*/
func
(
s
*
order
)
Query
(
ctx
context
.
Context
,
req
*
OrderQueryReq
)
(
res
*
OrderQueryRes
,
err
error
)
{
func
(
s
*
order
)
Query
(
ctx
context
.
Context
,
req
*
OrderQueryReq
)
(
res
*
OrderQueryRes
,
err
error
)
{
...
@@ -202,7 +199,8 @@ type OrderReceiveRes struct {
...
@@ -202,7 +199,8 @@ type OrderReceiveRes struct {
Data
interface
{}
`json:"data"`
Data
interface
{}
`json:"data"`
}
}
/**
/*
*
签收订单
签收订单
*/
*/
func
(
s
*
order
)
Receive
(
ctx
context
.
Context
,
req
*
OrderReceiveReq
)
(
res
*
OrderReceiveRes
,
err
error
)
{
func
(
s
*
order
)
Receive
(
ctx
context
.
Context
,
req
*
OrderReceiveReq
)
(
res
*
OrderReceiveRes
,
err
error
)
{
...
@@ -236,7 +234,8 @@ type OrderCancelRes struct {
...
@@ -236,7 +234,8 @@ type OrderCancelRes struct {
}
`json:"data"`
}
`json:"data"`
}
}
/**
/*
*
取消订单
取消订单
*/
*/
func
(
s
*
order
)
Cancel
(
ctx
context
.
Context
,
req
*
OrderCancelReq
)
(
res
*
OrderCancelRes
,
err
error
)
{
func
(
s
*
order
)
Cancel
(
ctx
context
.
Context
,
req
*
OrderCancelReq
)
(
res
*
OrderCancelRes
,
err
error
)
{
...
@@ -285,7 +284,8 @@ type OrderLogisticsRes struct {
...
@@ -285,7 +284,8 @@ type OrderLogisticsRes struct {
}
`json:"data"`
}
`json:"data"`
}
}
/**
/*
*
查询物流
查询物流
*/
*/
func
(
s
*
order
)
Logistics
(
ctx
context
.
Context
,
req
*
OrderLogisticsReq
)
(
res
*
OrderLogisticsRes
,
err
error
)
{
func
(
s
*
order
)
Logistics
(
ctx
context
.
Context
,
req
*
OrderLogisticsReq
)
(
res
*
OrderLogisticsRes
,
err
error
)
{
...
@@ -342,7 +342,8 @@ type OrderFreightRes struct {
...
@@ -342,7 +342,8 @@ type OrderFreightRes struct {
}
`json:"data"`
}
`json:"data"`
}
}
/**
/*
*
订单运费
订单运费
*/
*/
func
(
s
*
order
)
Freight
(
ctx
context
.
Context
,
req
*
OrderFreightReq
)
(
res
*
OrderFreightRes
,
err
error
)
{
func
(
s
*
order
)
Freight
(
ctx
context
.
Context
,
req
*
OrderFreightReq
)
(
res
*
OrderFreightRes
,
err
error
)
{
...
...
编写
预览
Markdown
格式
0%
重试
或
添加新文件
添加附件
取消
您添加了
0
人
到此讨论。请谨慎行事。
请先完成此评论的编辑!
取消
请
注册
或者
登录
后发表评论