This commit is contained in:
邹宗楠
2026-03-31 14:02:51 +08:00
parent 29de059c4f
commit 44b4249bc8
9 changed files with 63726 additions and 63088 deletions

View File

@@ -300,3 +300,40 @@ func (c *BiddingController) UpdateStockBySkuID() {
return
})
}
// UpdateMtActivity 更新美团任务数据
// @Title 更新美团任务数据
// @Description 更新美团任务数据
// @Param token header string true "认证token"
// @Success 200 {object} controllers.CallResult
// @Failure 200 {object} controllers.CallResult
// @router /UpdateMtActivity [get]
func (c *BiddingController) UpdateMtActivity() {
c.callUpdateMtActivity(func(params *tBindUpdateMtActivityParams) (retVal interface{}, hint string, err error) {
retVal = bidding.GetMTInfo()
return retVal, "", err
})
}
// GetActivityList 更新美团任务数据
// @Title 更新美团任务数据
// @Description 更新美团任务数据
// @Param token header string true "认证token"
// @Param startTime formData string true "开始时间"
// @Param endTime formData string true "结束时间"
// @Param storeIDs query string false "门店ID"
// @Param offset query int false "结果起始序号以0开始缺省为0"
// @Param pageSize query int false "结果页大小缺省为50-1表示全部"
// @Success 200 {object} controllers.CallResult
// @Failure 200 {object} controllers.CallResult
// @router /GetActivityList [get]
func (c *BiddingController) GetActivityList() {
c.callGetActivityList(func(params *tBindGetActivityListParams) (retVal interface{}, hint string, err error) {
var storeIDs []int
if err = jxutils.Strings2Objs(params.StoreIDs, &storeIDs); err != nil {
return nil, "", err
}
retVal, err = bidding.GetStatisticsList(utils.Str2Time(params.StartTime), utils.Str2Time(params.EndTime), storeIDs, params.Offset, params.PageSize)
return
})
}