Merge branch 'jdshop' of e.coding.net:rosydev/jx-callback into jdshop

This commit is contained in:
邹宗楠
2024-01-19 15:36:48 +08:00
4 changed files with 77 additions and 16 deletions

View File

@@ -144,3 +144,20 @@ func (c *IMController) GetElmMedia() {
return retVal, "", err
})
}
// @Title 增加以及获取门店自定义回复模板
// @Description 增加以及获取门店自定义回复模板
// @Param token header string true "认证token"
// @Param appID query string true "京西门店id"
// @Param vendorStoreID query string true "美团门店id"
// @Param replyTemplate query string true "新增或修改自定义模板"
// @Param opType query int true "操作 1-新增 2-获取"
// @Success 200 {object} controllers.CallResult
// @Failure 200 {object} controllers.CallResult
// @router /AddOrGetCustomReply [get]
func (c *IMController) AddOrGetCustomReply() {
c.callAddOrGetCustomReply(func(params *tImAddOrGetCustomReplyParams) (interface{}, string, error) {
retVal, err := im.AddOrGetCustomReply(params.AppID, params.VendorStoreID, params.ReplyTemplate, params.OpType)
return retVal, "", err
})
}