mission.go 687 B

12345678910111213141516171819202122232425
  1. package archive
  2. import (
  3. "context"
  4. "go-common/app/interface/main/creative/model/activity"
  5. "go-common/library/log"
  6. )
  7. // MissionProtocol fn
  8. func (s *Service) MissionProtocol(c context.Context, missionID int64) (p *activity.Protocol, err error) {
  9. if p, err = s.act.Protocol(c, missionID); err != nil {
  10. log.Error("s.act.Protocol(%d) err(%v)", missionID, err)
  11. return
  12. }
  13. return
  14. }
  15. // MissionOnlineByTid fn
  16. func (s *Service) MissionOnlineByTid(c context.Context, tid, plat int16) (res []*activity.ActWithTP, err error) {
  17. if res, err = s.act.MissionOnlineByTid(c, tid, plat); err != nil {
  18. log.Error("s.act.MissionOnlineByTid(%d,%d) err(%+v)", tid, plat, err)
  19. return
  20. }
  21. return
  22. }