123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124 |
- import "../base.api"
- type (
- LoginQRStatus {
-
- QRCode string `json:"qRCode,optional"`
-
- Status string `json:"status,optional"`
-
- StatusDesc string `json:"statusDesc,optional"`
- }
-
- RefreshLoginQRReq {
-
- ServerId *uint64 `json:"serverId,optional"`
-
- Port *string `json:"port,optional"`
-
- Callback *string `json:"callback,optional"`
- }
-
- RefreshLoginQRResp {
- BaseDataInfo
-
- Data LoginQRStatus `json:"data,optional"`
- }
-
- SendTextMsgReq {
-
- WxWxid *string `json:"senderWxId"`
-
- Wxid *string `json:"receiverWxId"`
-
- Msg *string `json:"msg"`
- Ctype *uint64 `json:"ctype,optional"`
- }
-
- SendPicMsgReq {
-
- WxWxid *string `json:"wxWxid"`
-
- Wxid *string `json:"wxid"`
-
- Picpath *string `json:"picpath"`
-
- Diyfilename *string `json:"diyfilename,optional"`
- }
-
- SendPicMsgLocalReq {
-
- WxWxid *string `json:"wxWxid"`
-
- Wxid *string `json:"wxid"`
-
- Picpath *string `json:"picpath"`
- }
- )
- @server(
- group: Wxhook
- )
- service Wechat {
-
- @handler sendTextMsg
- post /wxhook/sendTextMsg (SendTextMsgReq) returns (BaseMsgResp)
- }
- @server(
- jwt: Auth
- group: Wxhook
- middleware: Authority
- )
- service Wechat {
-
- @handler refreshLoginQR
- post /wxhook/refreshLoginQR (RefreshLoginQRReq) returns (RefreshLoginQRResp)
-
- @handler logout
- post /wxhook/logout (IDReq) returns (BaseMsgResp)
-
- @handler terminateThisWeChat
- post /wxhook/terminateThisWeChat (IDReq) returns (BaseMsgResp)
-
- @handler getFriendsAndGroups
- post /wxhook/getFriendsAndGroups (IDReq) returns (BaseMsgResp)
-
-
-
-
- @handler sendPicMsg
- post /wxhook/sendPicMsg (SendPicMsgReq) returns (BaseMsgResp)
-
- @handler sendPicMsgLocal
- post /wxhook/sendPicMsgLocal (SendPicMsgLocalReq) returns (BaseMsgResp)
- }
|