This commit is contained in:
laodaming
2023-08-04 17:45:36 +08:00
parent d5a6f780a5
commit 624b90260f
3 changed files with 34 additions and 2 deletions

View File

@@ -0,0 +1,16 @@
package consumer
import "fmt"
type MqHandle interface {
Run(data []byte) error
}
// 消费渲染结果数据
type MqConsumerRenderResult struct {
}
func (m *MqConsumerRenderResult) Run(data []byte) error {
fmt.Println("收到消息:" + string(data))
return nil
}