This commit is contained in:
苏尹岚
2021-02-23 10:16:36 +08:00
parent eb93724cbb
commit 7f94d2b48f
7 changed files with 102 additions and 29 deletions

View File

@@ -21,6 +21,8 @@ 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 actInfo formData string true "如果是活动内容通知需传"
// @Param isAsync formData bool false "是否异步操作,缺省否"
// @Param isContinueWhenError formData bool false "单个失败是否继续缺省false"
// @Success 200 {object} controllers.CallResult
@@ -32,7 +34,7 @@ func (c *MsgController) SendStoreMessage() {
if err = jxutils.Strings2Objs(params.StoreIDs, &storeIDs); err != nil {
return retVal, "", err
}
retVal, err = weixinmsg.SendStoreMessage(params.Ctx, params.Title, params.Content, storeIDs, params.IsAsync, params.IsContinueWhenError)
retVal, err = weixinmsg.SendStoreMessage(params.Ctx, params.Title, params.Content, storeIDs, params.ActInfo, params.MessageType, params.IsAsync, params.IsContinueWhenError)
return retVal, "", err
})
}

View File

@@ -1038,3 +1038,17 @@ func (c *StoreController) GetBrandStore() {
return retVal, "", err
})
}
// @Title 商家确认参与活动
// @Description 商家确认参与活动
// @Param token header string false "认证token"
// @Param msgStatusID formData int true "消息状态ID"
// @Success 200 {object} controllers.CallResult
// @Failure 200 {object} controllers.CallResult
// @router /StoreConfirmAct [post]
func (c *StoreController) StoreConfirmAct() {
c.callStoreConfirmAct(func(params *tStoreStoreConfirmActParams) (retVal interface{}, errCode string, err error) {
err = cms.StoreConfirmAct(params.Ctx, params.MsgStatusID)
return retVal, "", err
})
}