This commit is contained in:
richboo111
2024-01-19 14:44:22 +08:00
parent 2d94a361b3
commit 8e0c7ce5e8
5 changed files with 78 additions and 17 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.StoreID, params.VendorStoreID, params.ReplyTemplate, params.OpType)
return retVal, "", err
})
}