增加生产数据结构的定义
This commit is contained in:
@@ -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<白茶清欢>
|
||||
|
||||
Reference in New Issue
Block a user