pdd物料推荐

This commit is contained in:
suyl
2021-04-27 17:09:42 +08:00
parent 13d2b1b883
commit b65e808972
8 changed files with 78 additions and 4 deletions

View File

@@ -617,7 +617,7 @@ func (c *JobController) GetVendorMatterCategory() {
// @Param vendorID query int true "平台ID"
// @Param vendorCatID query string false "平台分类ID"
// @Param keyword query string false "关键字"
// @Param page query int false "页码"
// @Param offset query int false "页码"
// @Param pageSize query int false "页大小"
// @Param listID query string false "分页用"
// @Param sortType query int false "排序类型"
@@ -626,7 +626,7 @@ func (c *JobController) GetVendorMatterCategory() {
// @router /GetVendorMatters [get]
func (c *JobController) GetVendorMatters() {
c.callGetVendorMatters(func(params *tJobGetVendorMattersParams) (retVal interface{}, errCode string, err error) {
retVal, err = cms.GetVendorMatters(params.Ctx, params.VendorID, params.VendorCatID, params.Keyword, params.Page, params.PageSize, params.SortType, params.ListID)
retVal, err = cms.GetVendorMatters(params.Ctx, params.VendorID, params.VendorCatID, params.Keyword, params.Offset, params.PageSize, params.SortType, params.ListID)
return retVal, "", err
})
}
@@ -645,3 +645,21 @@ func (c *JobController) GetVendorMatterDetail() {
return retVal, "", err
})
}
// @Title 查询平台物料推荐
// @Description 查询平台物料推荐
// @Param token header string true "认证token"
// @Param vendorID query int true "平台ID"
// @Param goodsID query string true "平台商品ID"
// @Param rcmmdType query int true "推荐类型1为今日销量榜3为相似商品5为实时热销榜"
// @Param offset query int false "页码"
// @Param pageSize query int false "页大小"
// @Success 200 {object} controllers.CallResult
// @Failure 200 {object} controllers.CallResult
// @router /GetVendorMatterRcmmd [get]
func (c *JobController) GetVendorMatterRcmmd() {
c.callGetVendorMatterRcmmd(func(params *tJobGetVendorMatterRcmmdParams) (retVal interface{}, errCode string, err error) {
retVal, err = cms.GetVendorMatterRcmmd(params.Ctx, params.VendorID, params.GoodsID, params.RcmmdType, params.Offset, params.PageSize)
return retVal, "", err
})
}