Skip to content
项目
群组
代码片段
帮助
正在加载...
帮助
为 GitLab 提交贡献
登录
切换导航
L
library
项目
项目
详情
活动
周期分析
仓库
仓库
文件
提交
分支
标签
贡献者
分枝图
比较
统计图
议题
0
议题
0
列表
看板
标记
里程碑
合并请求
0
合并请求
0
CI / CD
CI / CD
流水线
作业
计划
统计图
Wiki
Wiki
代码片段
代码片段
成员
成员
折叠边栏
关闭边栏
活动
分枝图
统计图
创建新议题
作业
提交
议题看板
打开侧边栏
stbz
library
Commits
b7fcaa4f
提交
b7fcaa4f
authored
2月 25, 2022
作者:
gukai
浏览文件
操作
浏览文件
下载
电子邮件补丁
差异文件
消息服务增加发送消息结构体
上级
fe683c6d
显示空白字符变更
内嵌
并排
正在显示
1 个修改的文件
包含
26 行增加
和
18 行删除
+26
-18
model.go
notify/model.go
+26
-18
没有找到文件。
notify/model.go
浏览文件 @
b7fcaa4f
package
notify
type
NotifyReqData
struct
{
RealSource
int
`json:"real_source"`
Source
int
`json:"source"`
Type
int
`json:"type"`
CreatedTime
int
`json:"created_time"`
Result
string
`json:"result"`
}
type
NotifyReq
struct
{
Id
int
`json:"id"`
Type
string
`json:"type"`
Data
NotifyReqData
`json:"data"`
}
//
公共message
消息
//
推送到消息系统的公共
消息
type
NotifyServer
struct
{
MsgType
int
`json:"msg_type"`
MsgData
interface
{}
`json:"msg_data"`
...
...
@@ -22,32 +10,52 @@ type NotifyServer struct {
MsgSendTime
int64
`json:"msg_send_time"`
}
//推送到消息系统的售后消息
type
NotifyRefundData
struct
{
AfsServiceId
interface
{}
`json:"afs_service_id"`
//三方服务单号
}
//推送到消息系统的订单消息
type
NotifyOrderData
struct
{
ThirdChildOrderSn
string
`json:"third_child_order_sn"`
//三方子订单号
ThirdOrderSn
string
`json:"third_order_sn"`
//三方订单号
}
//推送到消息系统的商品消息
type
NotifyGoodsData
struct
{
ThirdGoodsInfo
[]
ThirdGoods
`json:"third_goods"`
//三方商品信息
}
type
ThirdGoods
struct
{
ThirdId
int
`json:"third_id"`
//三方商品id
Skus
[]
int
`json:"skus"`
//三方规格id
}
//通知消息系统
type
NotifyMessage
struct
{
ID
int
`json:"id"`
Type
interface
{}
`json:"type"`
Data
interface
{}
`json:"data"`
URL
string
`json:"url"`
AppID
int
`json:"app
ID
"`
PushTime
int
`json:"push
T
ime"`
AppID
int
`json:"app
_id
"`
PushTime
int
`json:"push
_t
ime"`
Times
int
`json:"times"`
}
//通知客户商品/选品消息
type
GoodsMsgData
struct
{
GoodsIDs
[]
int
`json:"goods_id"`
}
//通知客户订单消息
type
OrderMsgData
struct
{
OrderSn
string
`json:"orderSn"`
Sku
uint
`json:"sku"`
}
//通知客户售后消息
type
RefundMsgData
struct
{
AfterSaleID
uint
`json:"afterSaleId"`
OrderSn
string
`json:"orderSn"`
Sku
uint
`json:"sku"`
}
//通知客户标签消息
type
TagsMsgData
struct
{
Tags
string
`json:"tags"`
}
...
...
编写
预览
Markdown
格式
0%
重试
或
添加新文件
添加附件
取消
您添加了
0
人
到此讨论。请谨慎行事。
请先完成此评论的编辑!
取消
请
注册
或者
登录
后发表评论