danmaku.go 475 B

12345678910111213141516171819202122
  1. package service
  2. import (
  3. "context"
  4. "go-common/app/job/main/figure/model"
  5. )
  6. const (
  7. _reportDel = "report_del"
  8. )
  9. // DanmakuReport .
  10. func (s *Service) DanmakuReport(c context.Context, d *model.DMAction) (err error) {
  11. if err = s.figureDao.DanmakuReport(c, d.Data.OwnerUID, model.ACColumnPublishDanmakuDeleted, -1); err != nil {
  12. return
  13. }
  14. if err = s.figureDao.DanmakuReport(c, d.Data.ReportUID, model.ACColumnDanmakuReoprtPassed, 1); err != nil {
  15. return
  16. }
  17. return
  18. }