public class JwProductAPI extends Object
| 构造器和说明 |
|---|
JwProductAPI() |
| 限定符和类型 | 方法和说明 |
|---|---|
static CommodityRtnInfo |
doAddCommodity(String newAccessToken,
Product product)
增加商品
|
static CommodityRtnInfo |
doDelCommodity(String newAccessToken,
String product_id)
删除商品
|
static CommodityRtnInfo |
doModproductstatus(String newAccessToken,
String product_id,
Integer status)
商品上下架
上下架标识(0-下架, 1-上架)
|
static CommodityRtnInfo |
doUpdateCommodity(String newAccessToken,
Product product,
String accountid)
修改商品
|
static CommodityRtnInfo |
getByStatus(String newAccessToken,
Integer status)
获取指定状态的所有商品
商品状态(0-全部, 1-上架, 2-下架)
|
static List<CateInfo> |
getCateSub(String newAccessToken,
Integer cate_id)
获取指定分类的所有子分类
|
static List<SkuInfo> |
getCateSubSku(String newAccessToken,
Integer cate_id)
获取指定子分类的所有SKU
|
static Product |
getCommodity(String newAccessToken,
String product_id)
获取商品详细
|
static List<PropertiesInfo> |
getPropertyByCateId(String newAccessToken,
Integer cate_id)
获取指定分类的所有属性
|
static String |
uploadImg(String newAccessToken,
String filePath,
String fileName)
上传图片
|
public static CommodityRtnInfo doAddCommodity(String newAccessToken, Product product)
public static CommodityRtnInfo doDelCommodity(String newAccessToken, String product_id)
public static CommodityRtnInfo doUpdateCommodity(String newAccessToken, Product product, String accountid)
public static CommodityRtnInfo getByStatus(String newAccessToken, Integer status)
public static String uploadImg(String newAccessToken, String filePath, String fileName)
fileName - accountid - public static CommodityRtnInfo doModproductstatus(String newAccessToken, String product_id, Integer status)
public static List<CateInfo> getCateSub(String newAccessToken, Integer cate_id)
public static List<SkuInfo> getCateSubSku(String newAccessToken, Integer cate_id)
public static List<PropertiesInfo> getPropertyByCateId(String newAccessToken, Integer cate_id)
Copyright © 2022. All rights reserved.