message.go 1.0 KB

123456789101112131415161718192021222324252627282930313233343536373839404142
  1. package http
  2. type MessageResp struct {
  3. Rows int `json:"rows"`
  4. }
  5. type MessageReq struct {
  6. MsgTypeID int `json:"msg_type_id"`
  7. Miniprogram Miniprogram `json:"miniprogram"`
  8. Target []string `json:"target"`
  9. Keys []string `json:"keys"`
  10. Content []Tag `json:"content"`
  11. }
  12. type Miniprogram struct {
  13. AppID string `json:"appid"`
  14. PagePath string `json:"pagepath"`
  15. }
  16. type Tag struct {
  17. Value string `json:"value"`
  18. Color string `json:"color"`
  19. }
  20. type MessageTypeReq struct {
  21. ID int `json:"id"`
  22. TypeName string `json:"type_name"`
  23. SysName string `json:"sys_name"`
  24. RemindTypeID int `json:"remind_type_id"`
  25. RemindType string `json:"remind_type"`
  26. PushDate string `json:"push_date"`
  27. PushTime string `json:"push_time"`
  28. IntervalTime int `json:"interval_time"`
  29. PushLimit int `json:"push_limit"`
  30. TemplateID string `json:"template_id"`
  31. }
  32. func (m MessageTypeReq) Validate() error {
  33. return nil
  34. }
  35. func (p MessageReq) Validate() error {
  36. return nil
  37. }