push.go 833 B

123456789101112131415161718192021222324252627
  1. package service
  2. import (
  3. "context"
  4. "go-common/app/interface/bbq/app-bbq/api/http/v1"
  5. notice "go-common/app/service/bbq/notice-service/api/v1"
  6. )
  7. // PushRegister .
  8. func (s *Service) PushRegister(c context.Context, args *notice.UserPushDev) (response *v1.PushRegisterResponse, err error) {
  9. err = s.dao.PushLogin(c, args)
  10. response = &v1.PushRegisterResponse{}
  11. return
  12. }
  13. // PushLogout .
  14. func (s *Service) PushLogout(c context.Context, args *notice.UserPushDev) (response *v1.PushRegisterResponse, err error) {
  15. err = s.dao.PushLogout(c, args)
  16. response = &v1.PushRegisterResponse{}
  17. return
  18. }
  19. // PushCallback .
  20. func (s *Service) PushCallback(c context.Context, args *v1.PushCallbackRequest, mid int64, buvid string) (response *v1.PushCallbackResponse, err error) {
  21. s.dao.PushCallback(c, args.TID, args.NID, mid, buvid)
  22. return
  23. }