1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980818283848586878889909192 |
- import "../base.api"
- type (
-
- MsgInfo {
- BaseIDInfo
-
- Status *uint8 `json:"status,optional"`
-
- Fromwxid *string `json:"fromwxid,optional"`
-
- Toid *string `json:"toid,optional"`
-
- Msgtype *int32 `json:"msgtype,optional"`
-
- Msg *string `json:"msg,optional"`
-
- BatchNo *string `json:"batchNo,optional"`
- }
-
- MsgListResp {
- BaseDataInfo
-
- Data MsgListInfo `json:"data"`
- }
-
- MsgListInfo {
- BaseListInfo
-
- Data []MsgInfo `json:"data"`
- }
-
- MsgListReq {
- PageInfo
-
- Status *uint8 `json:"status,optional"`
-
- Toid *string `json:"toid,optional"`
-
- BatchId *uint64 `json:"batchId"`
- }
-
- MsgInfoResp {
- BaseDataInfo
-
- Data MsgInfo `json:"data"`
- }
- )
- @server(
- jwt: Auth
- group: Msg
- middleware: Authority
- )
- service Wechat {
-
- @handler createMsg
- post /msg/create (MsgInfo) returns (BaseMsgResp)
-
- @handler updateMsg
- post /msg/update (MsgInfo) returns (BaseMsgResp)
-
- @handler deleteMsg
- post /msg/delete (IDsReq) returns (BaseMsgResp)
-
- @handler getMsgList
- post /msg/list (MsgListReq) returns (MsgListResp)
-
- @handler getMsgById
- post /msg (IDReq) returns (MsgInfoResp)
- }
|