|
@@ -58,6 +58,20 @@ type (
|
|
|
GroupBlockList []ContactInfo `json:"groupBlockList,optional"`
|
|
|
}
|
|
|
|
|
|
+ WhatsappPhoneInfo {
|
|
|
+ Avatar *string `json:"avatar,optional"`
|
|
|
+
|
|
|
+ Industry *string `json:"industry,optional"`
|
|
|
+
|
|
|
+ Intro *string `json:"intro,optional"`
|
|
|
+
|
|
|
+ Address *string `json:"address,optional"`
|
|
|
+
|
|
|
+ Email *string `json:"email,optional"`
|
|
|
+
|
|
|
+ Website *string `json:"website,optional"`
|
|
|
+ }
|
|
|
+
|
|
|
// The response data of whatsapp list | Whatsapp列表数据
|
|
|
WhatsappListResp {
|
|
|
BaseDataInfo
|
|
@@ -135,6 +149,40 @@ type (
|
|
|
WaId *string `json:"waId"`
|
|
|
Code *string `json:"code"`
|
|
|
}
|
|
|
+ getQrcodeReq {
|
|
|
+ Phone *string `json:"phone"`
|
|
|
+ WaId *string `json:"waId"`
|
|
|
+ }
|
|
|
+ getQrcodeResp {
|
|
|
+ BaseDataInfo
|
|
|
+ Data []Qrcode `json:"data"`
|
|
|
+ }
|
|
|
+ Qrcode {
|
|
|
+ Phone string `json:"phone,optional"`
|
|
|
+ QrdlCode string `json:"qrdlCode,optional"`
|
|
|
+ GenerateQrImage string `json:"generateQrImage,optional"`
|
|
|
+ PrefilledMessage string `json:"prefilledMessage,optional"`
|
|
|
+ DeepLinkUrl string `json:"deepLinkUrl,optional"`
|
|
|
+ QrImageUrl string `json:"qrImageUrl,optional"`
|
|
|
+ }
|
|
|
+ createQrcodeReq {
|
|
|
+ Phone string `json:"phone"`
|
|
|
+ GenerateQrImage string `json:"generateQrImage"`
|
|
|
+ PrefilledMessage string `json:"prefilledMessage"`
|
|
|
+ WaId string `json:"waId"`
|
|
|
+ }
|
|
|
+ updateQrcodeReq {
|
|
|
+ Phone string `json:"phone,optional"`
|
|
|
+ GenerateQrImage string `json:"generateQrImage,optional"`
|
|
|
+ PrefilledMessage string `json:"prefilledMessage,optional"`
|
|
|
+ QrdlCode string `json:"qrdlCode,optional"`
|
|
|
+ WaId string `json:"waId"`
|
|
|
+ }
|
|
|
+ removeQrcodeReq {
|
|
|
+ Phone string `json:"phone,optional"`
|
|
|
+ QrdlCode string `json:"qrdlCode,optional"`
|
|
|
+ WaId string `json:"waId"`
|
|
|
+ }
|
|
|
)
|
|
|
|
|
|
@server(
|
|
@@ -150,7 +198,7 @@ service Wechat {
|
|
|
|
|
|
// Update whatsapp information | 更新Whatsapp
|
|
|
@handler updateWhatsapp
|
|
|
- post /whatsapp/update (WhatsappInfo) returns (BaseMsgResp)
|
|
|
+ post /whatsapp/update (WhatsappPhoneInfo) returns (BaseMsgResp)
|
|
|
|
|
|
// Delete whatsapp information | 删除Whatsapp信息
|
|
|
@handler deleteWhatsapp
|
|
@@ -179,4 +227,20 @@ service Wechat {
|
|
|
// 编辑开场白
|
|
|
@handler setAutomation
|
|
|
post /whatsapp/setAutomation (SetAutomationReq) returns (BaseMsgResp)
|
|
|
+
|
|
|
+ // 获取二维码
|
|
|
+ @handler getQrcode
|
|
|
+ post /whatsapp/getQrcode (getQrcodeReq) returns (getQrcodeResp)
|
|
|
+
|
|
|
+ // 创建二维码
|
|
|
+ @handler createQrcode
|
|
|
+ post /whatsapp/createQrcode (createQrcodeReq) returns (BaseMsgResp)
|
|
|
+
|
|
|
+ // 删除二维码
|
|
|
+ @handler removeQrcode
|
|
|
+ post /whatsapp/removeQrcode (removeQrcodeReq) returns (BaseMsgResp)
|
|
|
+
|
|
|
+ // 修改二维码
|
|
|
+ @handler updateQrcode
|
|
|
+ post /whatsapp/updateQrcode (updateQrcodeReq) returns (BaseMsgResp)
|
|
|
}
|