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.
22 lines
475 B
22 lines
475 B
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 |
|
}
|
|
|