根据名字查京东upc码

This commit is contained in:
苏尹岚
2019-12-16 09:25:04 +08:00
parent 593612ed94
commit 0f07668775
2 changed files with 4 additions and 3 deletions

View File

@@ -380,14 +380,14 @@ func (c *SkuController) GetStoreSkuSalesInfo() {
// @Description 根据名字查询京东商品UPC信息
// @Param token header string true "认证token"
// @Param name formData string true "商品名"
// @Param pageNo formData int true "页码"
// @Param offset formData int true "起始序号只能传入pageSize的整数倍数比如pageSize为20offset传入02040..代表第一页,第二页.."
// @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)
retVal, err = cms.GetJdUpcCodeByName(params.Ctx, params.Name, params.Offset, params.PageSize)
return retVal, "", err
})
}