You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
19 lines
380 B
19 lines
380 B
package dao |
|
|
|
import ( |
|
"context" |
|
"go-common/app/service/bbq/video/model" |
|
"go-common/library/log" |
|
) |
|
|
|
const ( |
|
keyOnBoard = "OnboardVideo" |
|
) |
|
|
|
// CmsPub pub cms data into databus. |
|
func (d *Dao) CmsPub(c context.Context, data *model.DataTopicCmsData) (err error) { |
|
if err = d.cmsPub.Send(c, keyOnBoard, data); err != nil { |
|
log.Error("d.databus.Send error(%v)", err) |
|
} |
|
return |
|
}
|
|
|