123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215 |
- import "../base.api"
- type (
-
- BatchMsgInfo {
- BaseIDInfo
-
- Status *uint8 `json:"status,optional"`
-
- BatchNo *string `json:"batchNo,optional"`
-
- TaskName *string `json:"taskName,optional"`
-
- Fromwxid *string `json:"fromwxid,optional"`
-
- Msg *string `json:"msg,optional"`
-
- Tag *string `json:"tag,optional"`
-
- Total *int32 `json:"total,optional"`
-
- Success *int32 `json:"success,optional"`
-
- Fail *int32 `json:"fail,optional"`
-
- StartTime *int64 `json:"startTime,optional"`
- StartTimeStr *string `json:"startTimeStr,optional"`
-
- StopTime *int64 `json:"stopTime,optional"`
-
- SendTime *int64 `json:"sendTime,optional"`
-
- Labels []uint64 `json:"labels,optional"`
- GroupLabels []uint64 `json:"groupLabels,optional"`
-
- Type *int32 `json:"type,optional"`
-
- Ctype *uint64 `json:"ctype,optional"`
- Cc *string `json:"cc,optional"`
- Phone *string `json:"phone,optional"`
- TemplateCode *string `json:"templateCode,optional"`
- TemplateName *string `json:"templateName,optional"`
- Lang *string `json:"lang,optional"`
- }
-
- BatchMsgListResp {
- BaseDataInfo
-
- Data BatchMsgListInfo `json:"data"`
- }
-
- BatchMsgListInfo {
- BaseListInfo
-
- Data []BatchMsgInfo `json:"data"`
- }
-
- BatchMsgListReq {
- PageInfo
-
- BatchNo *string `json:"batchNo,optional"`
-
- Fromwxid *string `json:"fromwxid,optional"`
-
- Msg *string `json:"msg,optional"`
-
- TaskName *string `json:"taskName,optional"`
-
- Type *int32 `json:"type"`
-
- Ctype *uint64 `json:"ctype,optional"`
- }
-
- BatchMsgInfoResp {
- BaseDataInfo
-
- Data BatchMsgInfo `json:"data"`
- }
- WhatsappBatchMsgListReq {
- PageInfo
-
- BatchNo *string `json:"batchNo,optional"`
-
- Phone *string `json:"phone,optional"`
-
- Msg *string `json:"msg,optional"`
- }
- WhatsappBatchMsgHistoryReq {
- PageInfo
- IDReq
- Status *uint8 `json:"status,optional"`
- Phone *string `json:"phone,optional"`
- }
- WhatsappBatchMsgHistoryResp {
- BaseDataInfo
- Data HistoryListInfo `json:"data"`
- }
- HistoryListInfo {
- BaseListInfo
- Data []HistoryInfo `json:"data"`
- }
- HistoryInfo {
- Index *uint64 `json:"index,optional"`
- From *string `json:"from,optional"`
- To *string `json:"to,optional"`
- SendTime *int64 `json:"sendTime,optional"`
- BatchNo *string `json:"batchNo,optional"`
- Cc *string `json:"cc,optional"`
- Phone *string `json:"phone,optional"`
- Status *uint8 `json:"status,optional"`
- }
- SendMsgReq {
- Phone *string `json:"phone"`
- To *string `json:"to"`
- Lang *string `json:"lang"`
- TemplateCode *string `json:"templateCode"`
- }
- )
- @server(
- jwt: Auth
- group: batch_msg
- middleware: Authority
- )
- service Wechat {
-
- @handler createBatchMsg
- post /batch_msg/create (BatchMsgInfo) returns (BaseMsgResp)
-
- @handler updateBatchMsg
- post /batch_msg/update (BatchMsgInfo) returns (BaseMsgResp)
-
- @handler deleteBatchMsg
- post /batch_msg/delete (IDsReq) returns (BaseMsgResp)
-
- @handler getBatchMsgList
- post /batch_msg/list (BatchMsgListReq) returns (BatchMsgListResp)
-
- @handler getBatchMsgById
- post /batch_msg (IDReq) returns (BatchMsgInfoResp)
-
- @handler stopBatchMsg
- post /batch_msg/stop (IDReq) returns (BaseMsgResp)
-
- @handler getWhatcappBatchMsgList
- post /batch_msg/getWhatcappBatchMsgList (WhatsappBatchMsgListReq) returns (BatchMsgListResp)
-
- @handler createWhatcappBatchMsg
- post /batch_msg/createWhatcappBatchMsg (BatchMsgInfo) returns (BaseMsgResp)
-
- @handler updateWhatcappBatchMsg
- post /batch_msg/updateWhatcappBatchMsg (BatchMsgInfo) returns (BaseMsgResp)
-
- @handler getWhatcappBatchMsg
- post /batch_msg/getWhatcappBatchMsg (IDReq) returns (BatchMsgInfoResp)
-
- @handler removeWhatcappBatchMsg
- post /batch_msg/removeWhatcappBatchMsg (IDsReq) returns (BaseMsgResp)
-
- @handler getWhatcappBatchMsgHistory
- post /batch_msg/getWhatcappBatchMsgHistory (WhatsappBatchMsgHistoryReq) returns (WhatsappBatchMsgHistoryResp)
-
- @handler sendBatchMsgText
- post /batch_msg/sendBatchMsgText (SendMsgReq) returns (BaseMsgResp)
- }
|