1
This commit is contained in:
@@ -3,6 +3,8 @@ package controllers
|
||||
import (
|
||||
"fmt"
|
||||
|
||||
"git.rosy.net.cn/jx-callback/business/partner/purchase/mtwm"
|
||||
|
||||
"git.rosy.net.cn/jx-callback/business/jxstore/act"
|
||||
"git.rosy.net.cn/jx-callback/business/jxutils"
|
||||
"git.rosy.net.cn/jx-callback/business/model"
|
||||
@@ -470,6 +472,24 @@ func (c *ActController) GetActMtwmVendor() {
|
||||
})
|
||||
}
|
||||
|
||||
// @Title 查询美团平台线上活动(会有不在我们本地创建的)
|
||||
// @Description 查询美团平台线上活动
|
||||
// @Param token header string true "认证token"
|
||||
// @Param vendorStoreID query string true "美团门店ID"
|
||||
// @Param vendorOrgCode query string true "美团appID"
|
||||
// @Param beginAt query int true "活动开始日期 时间戳"
|
||||
// @Param endAt query int true "活动结束日期"
|
||||
// @Param actType query int true "折扣或者秒杀"
|
||||
// @Success 200 {object} controllers.CallResult
|
||||
// @Failure 200 {object} controllers.CallResult
|
||||
// @router /GetMTOnlineAct [get]
|
||||
func (c *ActController) GetMTOnlineAct() {
|
||||
c.callGetMTOnlineAct(func(params *tActGetMTOnlineActParams) (interface{}, string, error) {
|
||||
retVal, err := mtwm.GetActByAppPoiCode(params.VendorStoreID, params.VendorOrgCode, int64(params.BeginAt), int64(params.EndAt), params.ActType)
|
||||
return retVal, "", err
|
||||
})
|
||||
}
|
||||
|
||||
// @Title 根据商品id查询未开展活动的门店信息
|
||||
// @Description 查询美团平台活动
|
||||
// @Param token header string true "认证token"
|
||||
|
||||
Reference in New Issue
Block a user