123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250 |
- import "../base.api"
- import "./agent.api"
- import "./label_relationship.api"
- type (
-
- WxInfo {
- BaseIDInfo
-
- Status *uint8 `json:"status,optional"`
-
- ServerId *uint64 `json:"serverId,optional"`
-
- ServerName *string `json:"serverName,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"`
-
- OrganizationId *uint64 `json:"organizationId,optional"`
-
- OrganizationName *string `json:"organizationName,optional"`
-
- AgentId *uint64 `json:"agentId,optional"`
-
- AgentInfo *AgentInfo `json:"agentInfo,optional"`
-
- ApiBase *string `json:"apiBase,optional"`
-
- ApiKey *string `json:"apiKey,optional"`
-
- AllowList []ContactInfo `json:"allowList,optional"`
-
- GroupAllowList []ContactInfo `json:"groupAllowList,optional"`
-
- BlockList []ContactInfo `json:"blockList,optional"`
-
- GroupBlockList []ContactInfo `json:"groupBlockList,optional"`
-
- TotalTokens *uint64 `json:"totalTokens,optional"`
- Ctype *uint64 `json:"ctype,optional"`
- }
- UpdateBlockAndAllowListReq {
- BaseIDInfo
-
- AllowList []string `json:"allowList,optional"`
-
- GroupAllowList []string `json:"groupAllowList,optional"`
-
- BlockList []string `json:"blockList,optional"`
-
- GroupBlockList []string `json:"groupBlockList,optional"`
- }
-
- WxListResp {
- BaseDataInfo
-
- Data WxListInfo `json:"data"`
- }
-
- WxListInfo {
- BaseListInfo
-
- Data []WxInfo `json:"data"`
- }
-
- WxListReq {
- PageInfo
-
- ServerId *uint64 `json:"serverId,optional"`
-
- OrganizationId *uint64 `json:"organizationId,optional"`
-
- OrganizationName *string `json:"organizationName,optional"`
-
- Port *string `json:"port,optional"`
-
- ProcessId *string `json:"processId,optional"`
-
- Callback *string `json:"callback,optional"`
-
- Ctype *uint64 `json:"ctype,optional"`
- }
-
- WxSelectListReq {
-
- OrganizationId *uint64 `json:"organizationId,optional"`
-
- Ctype *uint64 `json:"ctype,optional"`
- }
-
- WxSelectListResp {
- BaseDataInfo
-
- Data []WxSelectListInfo `json:"data"`
- }
- WxSelectListInfo {
- BaseIDInfo
-
- Wxid *string `json:"wxid,optional"`
-
- Nickname *string `json:"nickname,optional"`
-
- Ctype *uint64 `json:"ctype,optional"`
- }
-
- WxInfoResp {
- BaseDataInfo
-
- Data WxInfo `json:"data"`
- }
-
- AllowBlockListResp {
- BaseDataInfo
-
- Data AllowBlockListRespData `json:"data"`
- }
-
- AllowBlockListRespData {
-
- AllowList []*AllowBlockData `json:"allowList,optional"`
-
- GroupAllowList []*AllowBlockData `json:"groupAllowList,optional"`
-
- BlockList []*AllowBlockData `json:"blockList,optional"`
-
- GroupBlockList []*AllowBlockData `json:"groupBlockList,optional"`
- }
-
- AllowBlockData {
-
- Wxid string `json:"wxid,optional"`
-
- Nickname string `json:"nickname,optional"`
- }
- )
- @server(
- jwt: Auth
- group: Wx
- middleware: Authority
- )
- service Wechat {
-
- @handler createWx
- post /wx/create (WxInfo) returns (BaseMsgResp)
-
- @handler checkWx
- post /wx/check (WxInfo) returns (BaseMsgResp)
-
- @handler updateWx
- post /wx/update (WxInfo) returns (BaseMsgResp)
-
- @handler updateBlockAndAllowList
- post /wx/updateBlockAndAllowList (UpdateBlockAndAllowListReq) returns (BaseMsgResp)
-
- @handler deleteWx
- post /wx/delete (IDReq) returns (BaseMsgResp)
-
- @handler getWxList
- post /wx/list (WxListReq) returns (WxListResp)
-
- @handler getSelectWxList
- post /wx/selectList (WxSelectListReq) returns (WxSelectListResp)
-
- @handler getWxAllowBlockList
- post /wx/getWxAllowBlockList (IDReq) returns (AllowBlockListResp)
-
- @handler getWxById
- post /wx (IDReq) returns (WxInfoResp)
- }
|