123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123 |
- import "../base.api"
- import "./agent.api"
- import "./label_relationship.api"
- type (
-
- WhatsappInfo {
- BaseIDInfo
-
- Status *uint8 `json:"status,optional"`
-
- Ak *string `json:"ak,optional"`
-
- Sk *string `json:"sk,optional"`
-
- Callback *string `json:"callback,optional"`
-
- Account *string `json:"account,optional"`
-
- Nickname *string `json:"nickname,optional"`
-
- Phone *string `json:"phone,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"`
- }
-
- WhatsappListResp {
- BaseDataInfo
-
- Data WhatsappListInfo `json:"data"`
- }
-
- WhatsappListInfo {
- BaseListInfo
-
- Data []WhatsappInfo `json:"data"`
- }
-
- WhatsappListReq {
- PageInfo
-
- Ak *string `json:"ak,optional"`
-
- Sk *string `json:"sk,optional"`
-
- Callback *string `json:"callback,optional"`
- }
-
- WhatsappInfoResp {
- BaseDataInfo
-
- Data WhatsappInfo `json:"data"`
- }
- )
- @server(
- jwt: Auth
- group: whatsapp
- middleware: Authority
- )
- service Wechat {
-
- @handler createWhatsapp
- post /whatsapp/create (WhatsappInfo) returns (BaseMsgResp)
-
- @handler updateWhatsapp
- post /whatsapp/update (WhatsappInfo) returns (BaseMsgResp)
-
- @handler deleteWhatsapp
- post /whatsapp/delete (IDsReq) returns (BaseMsgResp)
-
- @handler getWhatsappList
- post /whatsapp/list (WhatsappListReq) returns (WhatsappListResp)
-
- @handler getWhatsappById
- post /whatsapp (IDReq) returns (WhatsappInfoResp)
- }
|