123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129 |
- 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"`
- }
-
- 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"`
- }
-
- BatchMsgInfoResp {
- BaseDataInfo
-
- Data BatchMsgInfo `json:"data"`
- }
- )
- @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)
- }
|