Skip to content
项目
群组
代码片段
帮助
正在加载...
帮助
为 GitLab 提交贡献
登录
切换导航
L
library
项目
项目
详情
活动
周期分析
仓库
仓库
文件
提交
分支
标签
贡献者
分枝图
比较
统计图
议题
0
议题
0
列表
看板
标记
里程碑
合并请求
0
合并请求
0
CI / CD
CI / CD
流水线
作业
计划
统计图
Wiki
Wiki
代码片段
代码片段
成员
成员
折叠边栏
关闭边栏
活动
分枝图
统计图
创建新议题
作业
提交
议题看板
打开侧边栏
stbz
library
Commits
412a4c4a
提交
412a4c4a
authored
10月 09, 2024
作者:
张立波
浏览文件
操作
浏览文件
下载
电子邮件补丁
差异文件
yunzmall OrderDetailV2
上级
e4219b38
全部展开
隐藏空白字符变更
内嵌
并排
正在显示
2 个修改的文件
包含
442 行增加
和
144 行删除
+442
-144
yunzmall_order.go
upstream/yunzmall/yunzmall_order.go
+0
-144
yunzmall_order_detail.go
upstream/yunzmall/yunzmall_order_detail.go
+442
-0
没有找到文件。
upstream/yunzmall/yunzmall_order.go
浏览文件 @
412a4c4a
...
@@ -3,7 +3,6 @@ package yunzmall
...
@@ -3,7 +3,6 @@ package yunzmall
import
(
import
(
"context"
"context"
"github.com/gogf/gf/encoding/gjson"
"github.com/gogf/gf/encoding/gjson"
"github.com/gogf/gf/frame/g"
"github.com/gogf/gf/util/gconv"
"github.com/gogf/gf/util/gconv"
)
)
...
@@ -464,146 +463,3 @@ func (s *Client) OrderAvailable(ctx context.Context, req OrderAvailableReq) (res
...
@@ -464,146 +463,3 @@ func (s *Client) OrderAvailable(ctx context.Context, req OrderAvailableReq) (res
err
=
gjson
.
New
(
result
)
.
Scan
(
&
res
)
err
=
gjson
.
New
(
result
)
.
Scan
(
&
res
)
return
return
}
}
type
OrderDetailRes
struct
{
CommonRes
Data
struct
{
Read
struct
{
Id
int
`json:"id"`
CreatedAt
int
`json:"created_at"`
UpdatedAt
int
`json:"updated_at"`
OrderSn
int64
`json:"order_sn"`
Status
int
`json:"status"`
//0待支付 1待发货 2待收货 3已完成,-1已关闭 5退换货 6已退款
StatusName
string
`json:"status_name"`
Title
string
`json:"title"`
Freight
int
`json:"freight"`
Amount
int
`json:"amount"`
ItemAmount
int
`json:"item_amount"`
TechnicalServicesFee
int
`json:"technical_services_fee"`
Remark
string
`json:"remark"`
Note
string
`json:"note"`
GoodsCount
int
`json:"goods_count"`
UserId
int
`json:"user_id"`
ShippingAddressId
int
`json:"shipping_address_id"`
ShippingMethod
string
`json:"shipping_method"`
ShippingMethodId
int
`json:"shipping_method_id"`
CommentStatus
int
`json:"comment_status"`
OrderItems
[]
struct
{
Id
int
`json:"id"`
OrderId
int
`json:"order_id"`
Title
string
`json:"title"`
SkuTitle
string
`json:"sku_title"`
Unit
string
`json:"unit"`
Qty
int
`json:"qty"`
Amount
int
`json:"amount"`
Price
int
`json:"price"`
ImageUrl
string
`json:"image_url"`
ProductId
int
`json:"product_id"`
SupplyAmount
int
`json:"supply_amount"`
SkuId
int
`json:"sku_id"`
OrderExpressId
int
`json:"order_express_id"`
CommentStatus
int
`json:"comment_status"`
Options
[]
struct
{
SpecName
string
`json:"spec_name"`
SpecItemName
string
`json:"spec_item_name"`
}
`json:"options"`
}
`json:"order_items"`
OrderExpress
[]
struct
{
Id
int
`json:"id"`
ThirdOrderSn
string
`json:"third_order_sn"`
ExpressNo
string
`json:"express_no"`
CompanyCode
string
`json:"company_code"`
CompanyName
string
`json:"company_name"`
CreatedAt
int
`json:"created_at"`
OrderItems
[]
struct
{
Id
int
`json:"id"`
ImageUrl
string
`json:"image_url"`
ProductId
int
`json:"product_id"`
Title
string
`json:"title"`
SkuTitle
string
`json:"sku_title"`
SkuId
int
`json:"sku_id"`
Qty
int
`json:"qty"`
SendNum
int
`json:"send_num"`
SendStatus
int
`json:"send_status"`
SkuSn
string
`json:"sku_sn"`
}
`json:"order_items"`
ItemExpress
interface
{}
`json:"item_express"`
IsEmpty
int
`json:"is_empty"`
}
`json:"order_express"`
ShippingAddress
struct
{
Id
int
`json:"id"`
Realname
string
`json:"realname"`
Mobile
string
`json:"mobile"`
CountryId
int
`json:"country_id"`
ProvinceId
int
`json:"province_id"`
CityId
int
`json:"city_id"`
CountyId
int
`json:"county_id"`
TownId
int
`json:"town_id"`
Province
string
`json:"province"`
City
string
`json:"city"`
County
string
`json:"county"`
Town
string
`json:"town"`
Detail
string
`json:"detail"`
Lng
string
`json:"lng"`
Lat
string
`json:"lat"`
}
`json:"shipping_address"`
User
struct
{
Id
int
`json:"id"`
CreatedAt
int
`json:"created_at"`
UpdatedAt
int
`json:"updated_at"`
Mobile
string
`json:"mobile"`
Avatar
string
`json:"avatar"`
Username
string
`json:"username"`
Nickname
string
`json:"nickname"`
Status
int
`json:"status"`
Uuid
string
`json:"uuid"`
LevelId
int
`json:"level_id"`
ParentId
int
`json:"parent_id"`
QrCode
string
`json:"qr_code"`
InviteCode
string
`json:"invite_code"`
WxUsername
string
`json:"wx_username"`
UserLevel
struct
{
Id
int
`json:"id"`
CreatedAt
interface
{}
`json:"created_at"`
UpdatedAt
interface
{}
`json:"updated_at"`
Discount
int
`json:"discount"`
Name
string
`json:"name"`
}
`json:"user_level"`
}
`json:"user"`
AmountDetail
struct
{
Title
string
`json:"title"`
Amount
int
`json:"amount"`
Qty
int
`json:"qty"`
Desc
string
`json:"desc"`
AmountItems
[]
struct
{
Title
string
`json:"title"`
Amount
int
`json:"amount"`
Qty
int
`json:"qty"`
Desc
string
`json:"desc"`
AmountItems
interface
{}
`json:"amount_items"`
}
`json:"amount_items"`
}
`json:"amount_detail"`
PaidAt
int
`json:"paid_at"`
SentAt
interface
{}
`json:"sent_at"`
ReceivedAt
interface
{}
`json:"received_at"`
ClosedAt
interface
{}
`json:"closed_at"`
Button
[]
struct
{
Title
string
`json:"title"`
Url
string
`json:"url"`
}
`json:"button"`
}
`json:"read"`
}
`json:"data"`
}
// OrderDetail 订单详情
func
(
s
*
Client
)
OrderDetail
(
ctx
context
.
Context
,
req
string
)
(
res
*
OrderDetailRes
,
err
error
)
{
var
method
=
"/app/order/orderDetail"
result
,
err
:=
s
.
get
(
ctx
,
method
,
g
.
Map
{
"order_sn"
:
req
,
})
if
err
!=
nil
{
return
}
err
=
gjson
.
New
(
result
)
.
Scan
(
&
res
)
return
}
upstream/yunzmall/yunzmall_order_detail.go
0 → 100644
浏览文件 @
412a4c4a
差异被折叠。
点击展开。
编写
预览
Markdown
格式
0%
重试
或
添加新文件
添加附件
取消
您添加了
0
人
到此讨论。请谨慎行事。
请先完成此评论的编辑!
取消
请
注册
或者
登录
后发表评论