根据名字查询京东upc

This commit is contained in:
苏尹岚
2019-12-13 18:35:36 +08:00
parent 3412f95380
commit 593612ed94
4 changed files with 37 additions and 0 deletions

View File

@@ -375,3 +375,19 @@ func (c *SkuController) GetStoreSkuSalesInfo() {
return retVal, "", err
})
}
// @Title 根据名字查询京东商品UPC信息
// @Description 根据名字查询京东商品UPC信息
// @Param token header string true "认证token"
// @Param name formData string true "商品名"
// @Param pageNo formData int true "页码"
// @Param pageSize formData int true "分页大小"
// @Success 200 {object} controllers.CallResult
// @Failure 200 {object} controllers.CallResult
// @router /GetJdUpcCodeByName [post]
func (c *SkuController) GetJdUpcCodeByName() {
c.callGetJdUpcCodeByName(func(params *tSkuGetJdUpcCodeByNameParams) (retVal interface{}, errCode string, err error) {
retVal, err = cms.GetJdUpcCodeByName(params.Ctx, params.Name, params.PageNo, params.PageSize)
return retVal, "", err
})
}