push.go 526 B

123456789101112131415161718192021
  1. package v1
  2. // PushRegisterRequest .
  3. type PushRegisterRequest struct {
  4. RegID string `json:"register_id" form:"register_id" validate:"required"`
  5. Platform string `json:"platform" form:"platform" validate:"required"`
  6. SDK uint8 `json:"sdk" form:"sdk"`
  7. }
  8. // PushRegisterResponse .
  9. type PushRegisterResponse struct{}
  10. // PushCallbackRequest .
  11. type PushCallbackRequest struct {
  12. Base
  13. TID string `json:"tid" form:"tid"`
  14. NID string `json:"nid" form:"nid"`
  15. }
  16. // PushCallbackResponse .
  17. type PushCallbackResponse struct{}