api.go 1.2 KB

123456789101112131415161718192021222324252627282930
  1. package v1
  2. // NoticeRequest .
  3. type NoticeRequest struct {
  4. RegID string `json:"register_id" form:"register_id" validate:"required"`
  5. Platform int32 `json:"platform" form:"platform" validate:"required"`
  6. SDK int32 `json:"sdk" form:"sdk" validate:"required"`
  7. Title string `json:"title" form:"title" validate:"required"`
  8. Content string `json:"content" form:"content" validate:"required"`
  9. Schema string `json:"schema" form:"schema" validate:"required"`
  10. Callback string `json:"callback" form:"callback" validate:"required"`
  11. }
  12. // NoticeResponse .
  13. type NoticeResponse struct{}
  14. // MessageRequest .
  15. type MessageRequest struct {
  16. RegID string `json:"register_id" form:"register_id" validate:"required"`
  17. Platform int32 `json:"platform" form:"platform" validate:"required"`
  18. SDK int32 `json:"sdk" form:"sdk" validate:"required"`
  19. Title string `json:"title" form:"title" validate:"required"`
  20. Content string `json:"content" form:"content" validate:"required"`
  21. ContentType string `json:"content_type" form:"content_type" validate:"required"`
  22. Schema string `json:"schema" form:"schema" validate:"required"`
  23. Callback string `json:"callback" form:"callback" validate:"required"`
  24. }
  25. // MessageResponse .
  26. type MessageResponse struct{}