增加生产数据结构的定义

This commit is contained in:
2022-07-06 18:58:59 +08:00
parent fe92fa5374
commit f3fd54906f
4 changed files with 45 additions and 1 deletions

View File

@@ -7,6 +7,17 @@
// Date : 2022-07-06 17:55
package delay
// ProduceData 生产的数据结构
//
// Author : go_developer@163.com<白茶清欢>
//
// Date : 18:56 2022/7/6
type ProduceData struct {
MsgID string `json:"msg_id"` // 消息ID
Timestamp int64 `json:"timestamp"` // 消息生成时间: ms
Data map[string]interface{} `json:"data"` // 传入的业务数据
}
// Queue 队列数据
//
// Author : go_developer@163.com<白茶清欢>