- add param shopName to SendFilesToStores

This commit is contained in:
gazebo
2019-01-28 16:44:11 +08:00
parent 2f43aec72f
commit 97a3e53d22
3 changed files with 9 additions and 5 deletions

View File

@@ -19,6 +19,7 @@ type FinancialController struct {
// @Description 发送文件给门店调用GET方法得到浏览器端参考的上传HTML实现userfiles
// @Param token header string true "认证token"
// @Param title query string false "消息标题"
// @Param shopName query string false "平台菜市名称"
// @Param isAsync query bool false "是否异步,缺省是同步"
// @Success 200 {object} controllers.CallResult
// @Failure 200 {object} controllers.CallResult
@@ -40,7 +41,7 @@ func (c *FinancialController) SendFilesToStores() {
c.callSendFilesToStores(func(params *tFinancialSendFilesToStoresParams) (retVal interface{}, errCode string, err error) {
r := c.Ctx.Request
files := r.MultipartForm.File["userfiles"]
retVal, err = financial.SendFilesToStores(params.Ctx, files, params.Title, params.IsAsync, params.Ctx.GetUserName())
retVal, err = financial.SendFilesToStores(params.Ctx, files, params.Title, params.ShopName, params.IsAsync, params.Ctx.GetUserName())
return retVal, "", err
})
}