fusenapi/server/websocket/consumer/consumer.go
laodaming 624b90260f fix
2023-08-04 17:45:36 +08:00

17 lines
270 B
Go

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
}