|
@@ -95,6 +95,28 @@ type (
|
|
|
// Whatsapp information | Whatsapp数据
|
|
|
Data WhatsappInfo `json:"data"`
|
|
|
}
|
|
|
+
|
|
|
+ ConversationalAutomationReq {
|
|
|
+ WaId *string `json:"waId,optional"`
|
|
|
+ Cc *string `json:"cc,optional"`
|
|
|
+ Phone *string `json:"phone,optional"`
|
|
|
+ }
|
|
|
+ ConversationalAutomationResp {
|
|
|
+ BaseDataInfo
|
|
|
+
|
|
|
+ // Whatsapp list data | Whatsapp列表数据
|
|
|
+ Data ConversationalAutomationInfo `json:"data"`
|
|
|
+ }
|
|
|
+ ConversationalAutomationInfo {
|
|
|
+ Prompts []string `json:"prompts,optional"`
|
|
|
+ Commands []Command `json:"commands,optional"`
|
|
|
+ PhoneNumber string `json:"phoneNumber,optional"`
|
|
|
+ EnableWelcomeMessage bool `json:"enableWelcomeMessage,optional"`
|
|
|
+ }
|
|
|
+ Command {
|
|
|
+ CommandDescription string `json:"commandDescription,optional"`
|
|
|
+ CommandName string `json:"commandName,optional"`
|
|
|
+ }
|
|
|
)
|
|
|
|
|
|
@server(
|
|
@@ -123,4 +145,8 @@ service Wechat {
|
|
|
// Get whatsapp by ID | 通过ID获取Whatsapp
|
|
|
@handler getWhatsappById
|
|
|
post /whatsapp (IDReq) returns (WhatsappInfoResp)
|
|
|
+
|
|
|
+ // Get whatsapp by ID | 通过ID获取Whatsapp
|
|
|
+ @handler GetConversationalAutomation
|
|
|
+ post /whatsapp/GetConversationalAutomation (ConversationalAutomationReq) returns (ConversationalAutomationResp)
|
|
|
}
|