databus.go 380 B

12345678910111213141516171819
  1. package dao
  2. import (
  3. "context"
  4. "go-common/app/service/bbq/video/model"
  5. "go-common/library/log"
  6. )
  7. const (
  8. keyOnBoard = "OnboardVideo"
  9. )
  10. // CmsPub pub cms data into databus.
  11. func (d *Dao) CmsPub(c context.Context, data *model.DataTopicCmsData) (err error) {
  12. if err = d.cmsPub.Send(c, keyOnBoard, data); err != nil {
  13. log.Error("d.databus.Send error(%v)", err)
  14. }
  15. return
  16. }