From fdce90097260211ab900c64d18a66d648608cfc2 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E8=8B=8F=E5=B0=B9=E5=B2=9A?= <770236076@qq.com> Date: Thu, 16 Jan 2020 10:48:54 +0800 Subject: [PATCH] =?UTF-8?q?=E6=B4=BB=E5=8A=A8=E9=80=80=E5=9B=9E?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- business/jxstore/act/act.go | 4 ---- controllers/act.go | 17 ----------------- 2 files changed, 21 deletions(-) diff --git a/business/jxstore/act/act.go b/business/jxstore/act/act.go index ed0487a63..1ac655acb 100644 --- a/business/jxstore/act/act.go +++ b/business/jxstore/act/act.go @@ -1151,7 +1151,3 @@ func ForceUpdateVendorPrice(ctx *jxcontext.Context, vendorID int, actType int, s } return hint, err } - -func CreateActByExcel(ctx *jxcontext.Context, file []*multipart.FileHeader, vendorID, impType int) (hint string, err error) { - return hint, err -} diff --git a/controllers/act.go b/controllers/act.go index 9cde3aa98..d3626bfc2 100644 --- a/controllers/act.go +++ b/controllers/act.go @@ -116,23 +116,6 @@ func (c *ActController) CreateAct() { }) } -// @Title 通过Excel创建活动 -// @Description 通过Excel创建活动 -// @Param token header string true "认证token" -// @Param vendorID formData int false "平台ID" -// @Param impType formData int false "导入类型:一个门店对一个商品传1,所有门店对所有商品传2" -// @Success 200 {object} controllers.CallResult -// @Failure 200 {object} controllers.CallResult -// @router /CreateActByExcel [post] -func (c *ActController) CreateActByExcel() { - c.callCreateActByExcel(func(params *tActCreateActByExcelParams) (retVal interface{}, errCode string, err error) { - r := c.Ctx.Request - files := r.MultipartForm.File["userfiles"] - retVal, err = act.CreateActByExcel(params.Ctx, files, params.VendorID, params.ImpType) - return retVal, "", err - }) -} - // @Title 查询活动 // @Description 查询活动 // @Param token header string true "认证token"