public class WxMaLiveGoodsServiceImpl extends Object implements WxMaLiveGoodsService
Created by lipengjun on 2020/6/29.
ADD_GOODS, AUDIT_GOODS, DELETE_GOODS, GET_APPROVED_GOODS, GET_GOODS_WARE_HOUSE, RESET_AUDIT_GOODS, UPDATE_GOODS| 构造器和说明 | 
|---|
WxMaLiveGoodsServiceImpl()  | 
| 限定符和类型 | 方法和说明 | 
|---|---|
WxMaLiveResult | 
addGoods(WxMaLiveGoodInfo goods)
商品添加并提审
 
 调用此接口上传并提审需要直播的商品信息,审核通过后商品录入【小程序直播】商品库
 注意:开发者必须保存【商品ID】与【审核单ID】,如果丢失,则无法调用其他相关接口
 调用额度:500次/一天
 http请求方式:POST https://api.weixin.qq.com/wxaapi/broadcast/goods/add? 
 | 
String | 
auditGoods(Integer goodsId)
重新提交审核
 
 调用此接口,可撤回直播商品的提审申请,消耗的提审次数不返还
 调用额度:500次/一天(与接口'商品添加并提审'共用500次限制)
 http请求方式:POST https://api.weixin.qq.com/wxaapi/broadcast/goods/audit? 
 | 
boolean | 
deleteGoods(Integer goodsId)
删除商品
 
 调用此接口,可删除【小程序直播】商品库中的商品,删除后直播间上架的该商品也将被同步删除,不可恢复;
 调用额度:1000次/一天
 http请求方式:POST https://api.weixin.qq.com/wxaapi/broadcast/goods/delete? 
 | 
WxMaLiveResult | 
getApprovedGoods(Integer offset,
                Integer limit,
                Integer status)
获取商品列表
 
 调用此接口可获取商品列表
 调用额度:10000次/一天
 http请求方式:GET https://api.weixin.qq.com/wxaapi/broadcast/goods/getapproved? 
 | 
WxMaLiveResult | 
getGoodsWareHouse(List<Integer> goodsIds)
获取商品状态
 
 调用此接口可获取商品的信息与审核状态
 调用额度:1000次/一天
 http请求方式:POST https://api.weixin.qq.com/wxa/business/getgoodswarehouse? 
 | 
boolean | 
resetAudit(Integer auditId,
          Integer goodsId)
撤回审核
 
 调用此接口,可撤回直播商品的提审申请,消耗的提审次数不返还
 调用额度:500次/一天
 http请求方式:POST https://api.weixin.qq.com/wxaapi/broadcast/goods/resetaudit? 
 | 
boolean | 
updateGoods(WxMaLiveGoodInfo goods)
更新商品
 
 调用此接口可以更新商品信息,审核通过的商品仅允许更新价格类型与价格,审核中的商品不允许更新,未审核的商品允许更新所有字段, 只传入需要更新的字段。 
 | 
public WxMaLiveResult addGoods(WxMaLiveGoodInfo goods) throws WxErrorException
WxMaLiveGoodsService调用此接口上传并提审需要直播的商品信息,审核通过后商品录入【小程序直播】商品库 注意:开发者必须保存【商品ID】与【审核单ID】,如果丢失,则无法调用其他相关接口 调用额度:500次/一天 http请求方式:POST https://api.weixin.qq.com/wxaapi/broadcast/goods/add?access_token=ACCESS_TOKEN
addGoods 在接口中 WxMaLiveGoodsServicegoods - 商品WxErrorException - .public boolean resetAudit(Integer auditId, Integer goodsId) throws WxErrorException
WxMaLiveGoodsService调用此接口,可撤回直播商品的提审申请,消耗的提审次数不返还 调用额度:500次/一天 http请求方式:POST https://api.weixin.qq.com/wxaapi/broadcast/goods/resetaudit?access_token=ACCESS_TOKEN
resetAudit 在接口中 WxMaLiveGoodsServiceauditId - 审核单IDgoodsId - 商品IDWxErrorException - .public String auditGoods(Integer goodsId) throws WxErrorException
WxMaLiveGoodsService调用此接口,可撤回直播商品的提审申请,消耗的提审次数不返还 调用额度:500次/一天(与接口'商品添加并提审'共用500次限制) http请求方式:POST https://api.weixin.qq.com/wxaapi/broadcast/goods/audit?access_token=ACCESS_TOKEN
auditGoods 在接口中 WxMaLiveGoodsServicegoodsId - 商品IDWxErrorException - .public boolean deleteGoods(Integer goodsId) throws WxErrorException
WxMaLiveGoodsService调用此接口,可删除【小程序直播】商品库中的商品,删除后直播间上架的该商品也将被同步删除,不可恢复; 调用额度:1000次/一天 http请求方式:POST https://api.weixin.qq.com/wxaapi/broadcast/goods/delete?access_token=ACCESS_TOKEN
deleteGoods 在接口中 WxMaLiveGoodsServicegoodsId - 商品IDWxErrorException - .public boolean updateGoods(WxMaLiveGoodInfo goods) throws WxErrorException
WxMaLiveGoodsService调用此接口可以更新商品信息,审核通过的商品仅允许更新价格类型与价格,审核中的商品不允许更新,未审核的商品允许更新所有字段, 只传入需要更新的字段。 调用额度:1000次/一天 http请求方式:POST https://api.weixin.qq.com/wxaapi/broadcast/goods/update?access_token=ACCESS_TOKEN
updateGoods 在接口中 WxMaLiveGoodsServicegoods - 商品WxErrorException - .public WxMaLiveResult getGoodsWareHouse(List<Integer> goodsIds) throws WxErrorException
WxMaLiveGoodsService调用此接口可获取商品的信息与审核状态 调用额度:1000次/一天 http请求方式:POST https://api.weixin.qq.com/wxa/business/getgoodswarehouse?access_token=ACCESS_TOKEN
getGoodsWareHouse 在接口中 WxMaLiveGoodsServicegoodsIds - 商品ID集WxErrorException - .public WxMaLiveResult getApprovedGoods(Integer offset, Integer limit, Integer status) throws WxErrorException
WxMaLiveGoodsService调用此接口可获取商品列表 调用额度:10000次/一天 http请求方式:GET https://api.weixin.qq.com/wxaapi/broadcast/goods/getapproved?access_token=ACCESS_TOKEN
getApprovedGoods 在接口中 WxMaLiveGoodsServiceoffset - 分页条数起点limit - 分页大小,默认30,不超过100status - 商品状态,0:未审核。1:审核中,2:审核通过,3:审核驳回WxErrorException - .Copyright © 2020. All rights reserved.