123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104 |
- import "../base.api"
- type (
-
- WxInfo {
- BaseIDInfo
-
- Status *uint8 `json:"status,optional"`
-
- ServerId *uint64 `json:"serverId,optional"`
-
- Port *string `json:"port,optional"`
-
- ProcessId *string `json:"processId,optional"`
-
- Callback *string `json:"callback,optional"`
-
- Wxid *string `json:"wxid,optional"`
-
- Account *string `json:"account,optional"`
-
- Nickname *string `json:"nickname,optional"`
-
- Tel *string `json:"tel,optional"`
-
- HeadBig *string `json:"headBig,optional"`
- }
-
- WxListResp {
- BaseDataInfo
-
- Data WxListInfo `json:"data"`
- }
-
- WxListInfo {
- BaseListInfo
-
- Data []WxInfo `json:"data"`
- }
-
- WxListReq {
- PageInfo
-
- Port *string `json:"port,optional"`
-
- ProcessId *string `json:"processId,optional"`
-
- Callback *string `json:"callback,optional"`
- }
-
- WxInfoResp {
- BaseDataInfo
-
- Data WxInfo `json:"data"`
- }
- )
- @server(
- jwt: Auth
- group: Wx
- middleware: Authority
- )
- service Wechat {
-
- @handler createWx
- post /wx/create (WxInfo) returns (BaseMsgResp)
-
- @handler updateWx
- post /wx/update (WxInfo) returns (BaseMsgResp)
-
- @handler deleteWx
- post /wx/delete (IDsReq) returns (BaseMsgResp)
-
- @handler getWxList
- post /wx/list (WxListReq) returns (WxListResp)
-
- @handler getWxById
- post /wx (IDReq) returns (WxInfoResp)
- }
|