go-common/app/job/main/figure/service/danmaku.go

23 lines
475 B
Go
Raw Normal View History

2019-04-22 10:49:16 +00:00
package service
import (
"context"
"go-common/app/job/main/figure/model"
)
const (
_reportDel = "report_del"
)
// DanmakuReport .
func (s *Service) DanmakuReport(c context.Context, d *model.DMAction) (err error) {
if err = s.figureDao.DanmakuReport(c, d.Data.OwnerUID, model.ACColumnPublishDanmakuDeleted, -1); err != nil {
return
}
if err = s.figureDao.DanmakuReport(c, d.Data.ReportUID, model.ACColumnDanmakuReoprtPassed, 1); err != nil {
return
}
return
}