123456789101112131415161718192021222324252627282930313233343536373839404142 |
- package http
- type MessageResp struct {
- Rows int `json:"rows"`
- }
- type MessageReq struct {
- MsgTypeID int `json:"msg_type_id"`
- Miniprogram Miniprogram `json:"miniprogram"`
- Target []string `json:"target"`
- Keys []string `json:"keys"`
- Content []Tag `json:"content"`
- }
- type Miniprogram struct {
- AppID string `json:"appid"`
- PagePath string `json:"pagepath"`
- }
- type Tag struct {
- Value string `json:"value"`
- Color string `json:"color"`
- }
- type MessageTypeReq struct {
- ID int `json:"id"`
- TypeName string `json:"type_name"`
- SysName string `json:"sys_name"`
- RemindTypeID int `json:"remind_type_id"`
- RemindType string `json:"remind_type"`
- PushDate string `json:"push_date"`
- PushTime string `json:"push_time"`
- IntervalTime int `json:"interval_time"`
- PushLimit int `json:"push_limit"`
- TemplateID string `json:"template_id"`
- }
- func (m MessageTypeReq) Validate() error {
- return nil
- }
- func (p MessageReq) Validate() error {
- return nil
- }
|