subtitle.go 479 B

1234567891011121314151617181920
  1. package subtitle
  2. import (
  3. "context"
  4. "go-common/app/interface/main/dm2/model"
  5. "go-common/library/ecode"
  6. "go-common/library/log"
  7. )
  8. // View fn
  9. func (d *Dao) View(c context.Context, aid int64) (res *model.SubtitleSubjectReply, err error) {
  10. var arg = &model.ArgArchiveID{
  11. Aid: aid,
  12. }
  13. if res, err = d.sub.SubtitleSubjectSubmitGet(c, arg); err != nil {
  14. log.Error("d.sub.SubtitleSubjectSubmitGet (%+v) error(%v)", arg, err)
  15. err = ecode.CreativeSubtitleAPIErr
  16. }
  17. return
  18. }