|
@@ -183,6 +183,34 @@ type (
|
|
|
QrdlCode string `json:"qrdlCode,optional"`
|
|
|
WaId string `json:"waId"`
|
|
|
}
|
|
|
+ getBusinessReq {
|
|
|
+ Phone *string `json:"phone"`
|
|
|
+ WaId *string `json:"waId"`
|
|
|
+ }
|
|
|
+ getBusinessResp {
|
|
|
+ BaseDataInfo
|
|
|
+ Data BusinessInfo `json:"data"`
|
|
|
+ }
|
|
|
+ BusinessInfo {
|
|
|
+ Vertical string `json:"vertical,optional"`
|
|
|
+ Description string `json:"description,optional"`
|
|
|
+ Email string `json:"email,optional"`
|
|
|
+ Address string `json:"address,optional"`
|
|
|
+ ProfilePictureUrl string `json:"profilePictureUrl,optional"`
|
|
|
+ Websites []string `json:"websites,optional"`
|
|
|
+ About string `json:"about,optional"`
|
|
|
+ }
|
|
|
+ setBusinessReq {
|
|
|
+ Phone *string `json:"phone"`
|
|
|
+ WaId *string `json:"waId"`
|
|
|
+ Vertical string `json:"vertical,optional"`
|
|
|
+ Description string `json:"description,optional"`
|
|
|
+ Email string `json:"email,optional"`
|
|
|
+ Address string `json:"address,optional"`
|
|
|
+ ProfilePictureUrl string `json:"profilePictureUrl,optional"`
|
|
|
+ Websites []string `json:"websites,optional"`
|
|
|
+ About string `json:"about,optional"`
|
|
|
+ }
|
|
|
)
|
|
|
|
|
|
@server(
|
|
@@ -243,4 +271,12 @@ service Wechat {
|
|
|
// 修改二维码
|
|
|
@handler updateQrcode
|
|
|
post /whatsapp/updateQrcode (updateQrcodeReq) returns (BaseMsgResp)
|
|
|
+
|
|
|
+ // 获取商业信息
|
|
|
+ @handler getBusinessInfo
|
|
|
+ post /whatsapp/getBusinessInfo (getBusinessReq) returns (getBusinessResp)
|
|
|
+
|
|
|
+ // 设置商业信息
|
|
|
+ @handler setBusinessInfo
|
|
|
+ post /whatsapp/setBusinessInfo (setBusinessReq) returns (BaseMsgResp)
|
|
|
}
|