aa
This commit is contained in:
@@ -21,7 +21,7 @@ type MsgController struct {
|
||||
// @Param storeIDs formData string true "门店 ID列表"
|
||||
// @Param title formData string true "消息标题"
|
||||
// @Param content formData string true "消息内容"
|
||||
// @Param messageType formData int true "消息类型,1为普通给商家发的消息,3为活动内容通知"
|
||||
// @Param messageType formData int true "消息类型,1为普通给商家发的消息,3为活动内容通知, 4为知识库"
|
||||
// @Param actInfo formData string false "如果是活动内容通知需传"
|
||||
// @Param imgs formData string false "图片s"
|
||||
// @Param isAsync formData bool false "是否异步操作,缺省否"
|
||||
@@ -41,6 +41,26 @@ func (c *MsgController) SendStoreMessage() {
|
||||
})
|
||||
}
|
||||
|
||||
// @Title 发送微信消息(知识库
|
||||
// @Description 发送微信消息(知识库
|
||||
// @Param token header string true "认证token"
|
||||
// @Param storeIDs formData string true "门店 ID列表"
|
||||
// @Param title formData string true "消息标题"
|
||||
// @Param knowIDs formData string true "消息类型,1为普通给商家发的消息,3为活动内容通知"
|
||||
// @Success 200 {object} controllers.CallResult
|
||||
// @Failure 200 {object} controllers.CallResult
|
||||
// @router /SendStoreMessageKnowledge [post]
|
||||
func (c *MsgController) SendStoreMessageKnowledge() {
|
||||
c.callSendStoreMessageKnowledge(func(params *tMsgSendStoreMessageKnowledgeParams) (retVal interface{}, errCode string, err error) {
|
||||
var knowIDs, storeIDs []int
|
||||
if err = jxutils.Strings2Objs(params.StoreIDs, &storeIDs, params.KnowIDs, &knowIDs); err != nil {
|
||||
return retVal, "", err
|
||||
}
|
||||
retVal, err = weixinmsg.SendStoreMessageKnowledge(params.Ctx, params.Title, knowIDs, storeIDs)
|
||||
return retVal, "", err
|
||||
})
|
||||
}
|
||||
|
||||
// @Title 发送用户微信消息
|
||||
// @Description 发送用户微信消息
|
||||
// @Param token header string true "认证token"
|
||||
|
||||
Reference in New Issue
Block a user