repo
stringclasses
1k values
file_url
stringlengths
96
373
file_path
stringlengths
11
294
content
stringlengths
0
32.8k
language
stringclasses
1 value
license
stringclasses
6 values
commit_sha
stringclasses
1k values
retrieved_at
stringdate
2026-01-04 14:45:56
2026-01-04 18:30:23
truncated
bool
2 classes
binarywang/WxJava
https://github.com/binarywang/WxJava/blob/84b5c4d2d0774f800237634e5d0336f53c004fe3/weixin-java-channel/src/main/java/me/chanjar/weixin/channel/api/impl/WxStoreHomePageServiceImpl.java
weixin-java-channel/src/main/java/me/chanjar/weixin/channel/api/impl/WxStoreHomePageServiceImpl.java
package me.chanjar.weixin.channel.api.impl; import static me.chanjar.weixin.channel.constant.WxChannelApiUrlConstants.HomePage.*; import lombok.extern.slf4j.Slf4j; import me.chanjar.weixin.channel.api.WxStoreHomePageService; import me.chanjar.weixin.channel.bean.base.WxChannelBaseResponse; import me.chanjar.weixin.channel.bean.home.background.BackgroundApplyResponse; import me.chanjar.weixin.channel.bean.home.background.BackgroundGetResponse; import me.chanjar.weixin.channel.bean.home.banner.BannerApplyParam; import me.chanjar.weixin.channel.bean.home.banner.BannerApplyResponse; import me.chanjar.weixin.channel.bean.home.banner.BannerGetResponse; import me.chanjar.weixin.channel.bean.home.banner.BannerInfo; import me.chanjar.weixin.channel.bean.home.tree.TreeProductEditInfo; import me.chanjar.weixin.channel.bean.home.tree.TreeProductEditParam; import me.chanjar.weixin.channel.bean.home.tree.TreeProductListInfo; import me.chanjar.weixin.channel.bean.home.tree.TreeProductListParam; import me.chanjar.weixin.channel.bean.home.tree.TreeProductListResponse; import me.chanjar.weixin.channel.bean.home.tree.TreeShowGetResponse; import me.chanjar.weixin.channel.bean.home.tree.TreeShowInfo; import me.chanjar.weixin.channel.bean.home.tree.TreeShowParam; import me.chanjar.weixin.channel.bean.home.tree.TreeShowSetResponse; import me.chanjar.weixin.channel.bean.home.window.WindowProductIndexParam; import me.chanjar.weixin.channel.bean.home.window.WindowProductListParam; import me.chanjar.weixin.channel.bean.home.window.WindowProductSetting; import me.chanjar.weixin.channel.bean.home.window.WindowProductSettingResponse; import me.chanjar.weixin.channel.util.ResponseUtils; import me.chanjar.weixin.common.error.WxErrorException; /** * 微信小店 主页管理相关接口 * * @author <a href="https://github.com/lixize">Zeyes</a> */ @Slf4j public class WxStoreHomePageServiceImpl implements WxStoreHomePageService { /** 微信小店服务 */ private final BaseWxChannelServiceImpl<?, ?> storeService; public WxStoreHomePageServiceImpl(BaseWxChannelServiceImpl<?, ?> storeService) { this.storeService = storeService; } @Override public WxChannelBaseResponse addTreeProduct(TreeProductEditInfo info) throws WxErrorException { TreeProductEditParam param = new TreeProductEditParam(info); String resJson = storeService.post(ADD_TREE_PRODUCT_URL, param); return ResponseUtils.decode(resJson, WxChannelBaseResponse.class); } @Override public WxChannelBaseResponse delTreeProduct(TreeProductEditInfo info) throws WxErrorException { TreeProductEditParam param = new TreeProductEditParam(info); String resJson = storeService.post(DEL_TREE_PRODUCT_URL, param); return ResponseUtils.decode(resJson, WxChannelBaseResponse.class); } @Override public TreeProductListResponse getTreeProductList(TreeProductListInfo info) throws WxErrorException { TreeProductListParam param = new TreeProductListParam(info); String resJson = storeService.post(LIST_TREE_PRODUCT_URL, param); return ResponseUtils.decode(resJson, TreeProductListResponse.class); } @Override public TreeShowSetResponse setShowTree(TreeShowInfo info) throws WxErrorException { TreeShowParam param = new TreeShowParam(info); String resJson = storeService.post(SET_SHOW_TREE_URL, param); return ResponseUtils.decode(resJson, TreeShowSetResponse.class); } @Override public TreeShowGetResponse getShowTree() throws WxErrorException { String resJson = storeService.post(GET_SHOW_TREE_URL, ""); return ResponseUtils.decode(resJson, TreeShowGetResponse.class); } @Override public WindowProductSettingResponse listWindowProduct(Integer pageSize, String nextKey) throws WxErrorException { WindowProductListParam param = new WindowProductListParam(pageSize, nextKey); String resJson = storeService.post(LIST_WINDOW_PRODUCT_URL, param); return ResponseUtils.decode(resJson, WindowProductSettingResponse.class); } @Override public WxChannelBaseResponse reorderWindowProduct(String productId, Integer indexNum) throws WxErrorException { WindowProductIndexParam param = new WindowProductIndexParam(productId, indexNum); String resJson = storeService.post(REORDER_WINDOW_PRODUCT_URL, param); return ResponseUtils.decode(resJson, WxChannelBaseResponse.class); } @Override public WxChannelBaseResponse hideWindowProduct(String productId, Integer setHide) throws WxErrorException { WindowProductSetting param = new WindowProductSetting(); param.setProductId(productId); param.setSetHide(setHide); String resJson = storeService.post(HIDE_WINDOW_PRODUCT_URL, param); return ResponseUtils.decode(resJson, WxChannelBaseResponse.class); } @Override public WxChannelBaseResponse topWindowProduct(String productId, Integer setTop) throws WxErrorException { WindowProductSetting param = new WindowProductSetting(); param.setProductId(productId); param.setSetTop(setTop); String resJson = storeService.post(TOP_WINDOW_PRODUCT_URL, param); return ResponseUtils.decode(resJson, WxChannelBaseResponse.class); } @Override public BackgroundApplyResponse applyBackground(String imgUrl) throws WxErrorException { String paramJson = "{\"img_url\":\"" + imgUrl + "\"}"; String resJson = storeService.post(APPLY_BACKGROUND_URL, paramJson); return ResponseUtils.decode(resJson, BackgroundApplyResponse.class); } @Override public BackgroundGetResponse getBackground() throws WxErrorException { String resJson = storeService.post(GET_BACKGROUND_URL, ""); return ResponseUtils.decode(resJson, BackgroundGetResponse.class); } @Override public WxChannelBaseResponse cancelBackground(Integer applyId) throws WxErrorException { String paramJson = "{\"apply_id\":" + applyId + "}"; String resJson = storeService.post(CANCEL_BACKGROUND_URL, paramJson); return ResponseUtils.decode(resJson, WxChannelBaseResponse.class); } @Override public WxChannelBaseResponse removeBackground() throws WxErrorException { String resJson = storeService.post(REMOVE_BACKGROUND_URL, ""); return ResponseUtils.decode(resJson, WxChannelBaseResponse.class); } @Override public BannerApplyResponse applyBanner(BannerInfo info) throws WxErrorException { BannerApplyParam param = new BannerApplyParam(info); String resJson = storeService.post(APPLY_BANNER_URL, param); return ResponseUtils.decode(resJson, BannerApplyResponse.class); } @Override public BannerGetResponse getBanner() throws WxErrorException { String resJson = storeService.post(GET_BANNER_URL, ""); return ResponseUtils.decode(resJson, BannerGetResponse.class); } @Override public WxChannelBaseResponse cancelBanner(Integer applyId) throws WxErrorException { String paramJson = "{\"apply_id\":" + applyId + "}"; String resJson = storeService.post(CANCEL_BANNER_URL, paramJson); return ResponseUtils.decode(resJson, WxChannelBaseResponse.class); } @Override public WxChannelBaseResponse removeBanner() throws WxErrorException { String resJson = storeService.post(REMOVE_BANNER_URL, ""); return ResponseUtils.decode(resJson, WxChannelBaseResponse.class); } }
java
Apache-2.0
84b5c4d2d0774f800237634e5d0336f53c004fe3
2026-01-04T14:46:39.499027Z
false
binarywang/WxJava
https://github.com/binarywang/WxJava/blob/84b5c4d2d0774f800237634e5d0336f53c004fe3/weixin-java-channel/src/main/java/me/chanjar/weixin/channel/api/impl/WxAssistantServiceImpl.java
weixin-java-channel/src/main/java/me/chanjar/weixin/channel/api/impl/WxAssistantServiceImpl.java
package me.chanjar.weixin.channel.api.impl; import lombok.RequiredArgsConstructor; import lombok.extern.slf4j.Slf4j; import me.chanjar.weixin.channel.api.WxAssistantService; import me.chanjar.weixin.channel.bean.base.WxChannelBaseResponse; import me.chanjar.weixin.channel.bean.window.request.AddWindowProductRequest; import me.chanjar.weixin.channel.bean.window.request.GetWindowProductListRequest; import me.chanjar.weixin.channel.bean.window.request.WindowProductRequest; import me.chanjar.weixin.channel.bean.window.response.GetWindowProductListResponse; import me.chanjar.weixin.channel.bean.window.response.GetWindowProductResponse; import me.chanjar.weixin.channel.util.ResponseUtils; import me.chanjar.weixin.common.error.WxErrorException; import static me.chanjar.weixin.channel.constant.WxChannelApiUrlConstants.Assistant.ADD_WINDOW_PRODUCT_URL; import static me.chanjar.weixin.channel.constant.WxChannelApiUrlConstants.Assistant.GET_WINDOW_PRODUCT_URL; import static me.chanjar.weixin.channel.constant.WxChannelApiUrlConstants.Assistant.LIST_WINDOW_PRODUCT_URL; import static me.chanjar.weixin.channel.constant.WxChannelApiUrlConstants.Assistant.OFF_WINDOW_PRODUCT_URL; /** * 视频号助手 橱窗管理服务 * * @author <a href="https://github.com/imyzt">imyzt</a> */ @RequiredArgsConstructor @Slf4j public class WxAssistantServiceImpl implements WxAssistantService { /** 微信商店服务 */ private final BaseWxChannelServiceImpl<?, ?> shopService; @Override public WxChannelBaseResponse addWindowProduct(AddWindowProductRequest req) throws WxErrorException { String resJson = shopService.post(ADD_WINDOW_PRODUCT_URL, "{}"); return ResponseUtils.decode(resJson, WxChannelBaseResponse.class); } @Override public GetWindowProductResponse getWindowProduct(WindowProductRequest req) throws WxErrorException { String resJson = shopService.post(GET_WINDOW_PRODUCT_URL, "{}"); return ResponseUtils.decode(resJson, GetWindowProductResponse.class); } @Override public GetWindowProductListResponse getWindowProductList(GetWindowProductListRequest req) throws WxErrorException { String resJson = shopService.post(LIST_WINDOW_PRODUCT_URL, "{}"); return ResponseUtils.decode(resJson, GetWindowProductListResponse.class); } @Override public WxChannelBaseResponse offWindowProduct(WindowProductRequest req) throws WxErrorException { String resJson = shopService.post(OFF_WINDOW_PRODUCT_URL, "{}"); return ResponseUtils.decode(resJson, WxChannelBaseResponse.class); } }
java
Apache-2.0
84b5c4d2d0774f800237634e5d0336f53c004fe3
2026-01-04T14:46:39.499027Z
false
binarywang/WxJava
https://github.com/binarywang/WxJava/blob/84b5c4d2d0774f800237634e5d0336f53c004fe3/weixin-java-channel/src/main/java/me/chanjar/weixin/channel/api/impl/WxStoreCooperationServiceImpl.java
weixin-java-channel/src/main/java/me/chanjar/weixin/channel/api/impl/WxStoreCooperationServiceImpl.java
package me.chanjar.weixin.channel.api.impl; import static me.chanjar.weixin.channel.constant.WxChannelApiUrlConstants.Cooperation.CANCEL_COOPERATION_URL; import static me.chanjar.weixin.channel.constant.WxChannelApiUrlConstants.Cooperation.GENERATE_QRCODE_COOPERATION_URL; import static me.chanjar.weixin.channel.constant.WxChannelApiUrlConstants.Cooperation.GET_COOPERATION_STATUS_URL; import static me.chanjar.weixin.channel.constant.WxChannelApiUrlConstants.Cooperation.LIST_COOPERATION_URL; import static me.chanjar.weixin.channel.constant.WxChannelApiUrlConstants.Cooperation.UNBIND_COOPERATION_URL; import lombok.extern.slf4j.Slf4j; import me.chanjar.weixin.channel.api.WxStoreCooperationService; import me.chanjar.weixin.channel.bean.base.WxChannelBaseResponse; import me.chanjar.weixin.channel.bean.cooperation.CooperationListResponse; import me.chanjar.weixin.channel.bean.cooperation.CooperationQrCodeResponse; import me.chanjar.weixin.channel.bean.cooperation.CooperationSharerParam; import me.chanjar.weixin.channel.bean.cooperation.CooperationStatusResponse; import me.chanjar.weixin.channel.util.ResponseUtils; import me.chanjar.weixin.common.error.WxErrorException; /** * 微信小店 合作账号相关接口 * * @author <a href="https://github.com/lixize">Zeyes</a> */ @Slf4j public class WxStoreCooperationServiceImpl implements WxStoreCooperationService { /** 微信小店服务 */ private final BaseWxChannelServiceImpl<?, ?> storeService; public WxStoreCooperationServiceImpl(BaseWxChannelServiceImpl<?, ?> storeService) { this.storeService = storeService; } @Override public CooperationListResponse listCooperation(Integer sharerType) throws WxErrorException { String paramJson = "{\"sharer_type\":" + sharerType + "}"; String resJson = storeService.post(LIST_COOPERATION_URL, paramJson); return ResponseUtils.decode(resJson, CooperationListResponse.class); } @Override public CooperationStatusResponse getCooperationStatus(String sharerId, Integer sharerType) throws WxErrorException { CooperationSharerParam param = new CooperationSharerParam(sharerId, sharerType); String resJson = storeService.post(GET_COOPERATION_STATUS_URL, param); return ResponseUtils.decode(resJson, CooperationStatusResponse.class); } @Override public CooperationQrCodeResponse generateQrCode(String sharerId, Integer sharerType) throws WxErrorException { CooperationSharerParam param = new CooperationSharerParam(sharerId, sharerType); String resJson = storeService.post(GENERATE_QRCODE_COOPERATION_URL, param); return ResponseUtils.decode(resJson, CooperationQrCodeResponse.class); } @Override public WxChannelBaseResponse cancelInvitation(String sharerId, Integer sharerType) throws WxErrorException { CooperationSharerParam param = new CooperationSharerParam(sharerId, sharerType); String resJson = storeService.post(CANCEL_COOPERATION_URL, param); return ResponseUtils.decode(resJson, WxChannelBaseResponse.class); } @Override public WxChannelBaseResponse unbind(String sharerId, Integer sharerType) throws WxErrorException { CooperationSharerParam param = new CooperationSharerParam(sharerId, sharerType); String resJson = storeService.post(UNBIND_COOPERATION_URL, param); return ResponseUtils.decode(resJson, WxChannelBaseResponse.class); } }
java
Apache-2.0
84b5c4d2d0774f800237634e5d0336f53c004fe3
2026-01-04T14:46:39.499027Z
false
binarywang/WxJava
https://github.com/binarywang/WxJava/blob/84b5c4d2d0774f800237634e5d0336f53c004fe3/weixin-java-channel/src/main/java/me/chanjar/weixin/channel/api/impl/WxChannelAddressServiceImpl.java
weixin-java-channel/src/main/java/me/chanjar/weixin/channel/api/impl/WxChannelAddressServiceImpl.java
package me.chanjar.weixin.channel.api.impl; import static me.chanjar.weixin.channel.constant.WxChannelApiUrlConstants.Address.ADD_ADDRESS_URL; import static me.chanjar.weixin.channel.constant.WxChannelApiUrlConstants.Address.DELETE_ADDRESS_URL; import static me.chanjar.weixin.channel.constant.WxChannelApiUrlConstants.Address.GET_ADDRESS_URL; import static me.chanjar.weixin.channel.constant.WxChannelApiUrlConstants.Address.LIST_ADDRESS_URL; import static me.chanjar.weixin.channel.constant.WxChannelApiUrlConstants.Address.UPDATE_ADDRESS_URL; import lombok.extern.slf4j.Slf4j; import me.chanjar.weixin.channel.api.WxChannelAddressService; import me.chanjar.weixin.channel.bean.address.AddressAddParam; import me.chanjar.weixin.channel.bean.address.AddressDetail; import me.chanjar.weixin.channel.bean.address.AddressIdParam; import me.chanjar.weixin.channel.bean.address.AddressIdResponse; import me.chanjar.weixin.channel.bean.address.AddressInfoResponse; import me.chanjar.weixin.channel.bean.address.AddressListParam; import me.chanjar.weixin.channel.bean.address.AddressListResponse; import me.chanjar.weixin.channel.bean.base.WxChannelBaseResponse; import me.chanjar.weixin.channel.util.ResponseUtils; import me.chanjar.weixin.common.error.WxErrorException; /** * 视频号小店 地址管理服务实现 * * @author <a href="https://github.com/lixize">Zeyes</a> */ @Slf4j public class WxChannelAddressServiceImpl implements WxChannelAddressService { /** 微信商店服务 */ private final BaseWxChannelServiceImpl<?, ?> shopService; public WxChannelAddressServiceImpl(BaseWxChannelServiceImpl<?, ?> shopService) { this.shopService = shopService; } @Override public AddressListResponse listAddress(Integer offset, Integer limit) throws WxErrorException { AddressListParam param = new AddressListParam(offset, limit); String resJson = shopService.post(LIST_ADDRESS_URL, param); return ResponseUtils.decode(resJson, AddressListResponse.class); } @Override public AddressInfoResponse getAddress(String addressId) throws WxErrorException { AddressIdParam param = new AddressIdParam(addressId); String resJson = shopService.post(GET_ADDRESS_URL, param); return ResponseUtils.decode(resJson, AddressInfoResponse.class); } @Override public AddressIdResponse addAddress(AddressDetail addressDetail) throws WxErrorException { AddressAddParam param = new AddressAddParam(addressDetail); String resJson = shopService.post(ADD_ADDRESS_URL, param); return ResponseUtils.decode(resJson, AddressIdResponse.class); } @Override public WxChannelBaseResponse updateAddress(AddressDetail addressDetail) throws WxErrorException { AddressAddParam param = new AddressAddParam(addressDetail); String resJson = shopService.post(UPDATE_ADDRESS_URL, param); return ResponseUtils.decode(resJson, WxChannelBaseResponse.class); } @Override public WxChannelBaseResponse deleteAddress(String addressId) throws WxErrorException { AddressIdParam param = new AddressIdParam(addressId); String resJson = shopService.post(DELETE_ADDRESS_URL, param); return ResponseUtils.decode(resJson, WxChannelBaseResponse.class); } }
java
Apache-2.0
84b5c4d2d0774f800237634e5d0336f53c004fe3
2026-01-04T14:46:39.499027Z
false
binarywang/WxJava
https://github.com/binarywang/WxJava/blob/84b5c4d2d0774f800237634e5d0336f53c004fe3/weixin-java-channel/src/main/java/me/chanjar/weixin/channel/api/impl/WxChannelProductServiceImpl.java
weixin-java-channel/src/main/java/me/chanjar/weixin/channel/api/impl/WxChannelProductServiceImpl.java
package me.chanjar.weixin.channel.api.impl; import static me.chanjar.weixin.channel.constant.WxChannelApiUrlConstants.Spu.ADD_LIMIT_TASK_URL; import static me.chanjar.weixin.channel.constant.WxChannelApiUrlConstants.Spu.CANCEL_AUDIT_URL; import static me.chanjar.weixin.channel.constant.WxChannelApiUrlConstants.Spu.DELETE_LIMIT_TASK_URL; import static me.chanjar.weixin.channel.constant.WxChannelApiUrlConstants.Spu.LIST_LIMIT_TASK_URL; import static me.chanjar.weixin.channel.constant.WxChannelApiUrlConstants.Spu.SPU_ADD_URL; import static me.chanjar.weixin.channel.constant.WxChannelApiUrlConstants.Spu.SPU_AUDIT_FREE_UPDATE_URL; import static me.chanjar.weixin.channel.constant.WxChannelApiUrlConstants.Spu.SPU_DELISTING_URL; import static me.chanjar.weixin.channel.constant.WxChannelApiUrlConstants.Spu.SPU_DEL_URL; import static me.chanjar.weixin.channel.constant.WxChannelApiUrlConstants.Spu.SPU_GET_STOCK_BATCH_URL; import static me.chanjar.weixin.channel.constant.WxChannelApiUrlConstants.Spu.SPU_GET_STOCK_URL; import static me.chanjar.weixin.channel.constant.WxChannelApiUrlConstants.Spu.SPU_GET_URL; import static me.chanjar.weixin.channel.constant.WxChannelApiUrlConstants.Spu.SPU_H5URL_URL; import static me.chanjar.weixin.channel.constant.WxChannelApiUrlConstants.Spu.SPU_LISTING_URL; import static me.chanjar.weixin.channel.constant.WxChannelApiUrlConstants.Spu.SPU_LIST_URL; import static me.chanjar.weixin.channel.constant.WxChannelApiUrlConstants.Spu.SPU_QRCODE_URL; import static me.chanjar.weixin.channel.constant.WxChannelApiUrlConstants.Spu.SPU_TAGLINK_URL; import static me.chanjar.weixin.channel.constant.WxChannelApiUrlConstants.Spu.SPU_UPDATE_STOCK_URL; import static me.chanjar.weixin.channel.constant.WxChannelApiUrlConstants.Spu.SPU_UPDATE_URL; import static me.chanjar.weixin.channel.constant.WxChannelApiUrlConstants.Spu.STOP_LIMIT_TASK_URL; import java.util.List; import lombok.extern.slf4j.Slf4j; import me.chanjar.weixin.channel.api.WxChannelProductService; import me.chanjar.weixin.channel.bean.base.WxChannelBaseResponse; import me.chanjar.weixin.channel.bean.limit.LimitTaskAddResponse; import me.chanjar.weixin.channel.bean.limit.LimitTaskListParam; import me.chanjar.weixin.channel.bean.limit.LimitTaskListResponse; import me.chanjar.weixin.channel.bean.limit.LimitTaskParam; import me.chanjar.weixin.channel.bean.product.SkuStockBatchParam; import me.chanjar.weixin.channel.bean.product.SkuStockBatchResponse; import me.chanjar.weixin.channel.bean.product.SkuStockParam; import me.chanjar.weixin.channel.bean.product.SkuStockResponse; import me.chanjar.weixin.channel.bean.product.SpuFastInfo; import me.chanjar.weixin.channel.bean.product.SpuGetResponse; import me.chanjar.weixin.channel.bean.product.SpuInfo; import me.chanjar.weixin.channel.bean.product.SpuListParam; import me.chanjar.weixin.channel.bean.product.SpuListResponse; import me.chanjar.weixin.channel.bean.product.SpuUpdateInfo; import me.chanjar.weixin.channel.bean.product.SpuUpdateResponse; import me.chanjar.weixin.channel.bean.product.link.ProductH5UrlResponse; import me.chanjar.weixin.channel.bean.product.link.ProductQrCodeResponse; import me.chanjar.weixin.channel.bean.product.link.ProductTagLinkResponse; import me.chanjar.weixin.channel.util.JsonUtils; import me.chanjar.weixin.channel.util.ResponseUtils; import me.chanjar.weixin.common.error.WxErrorException; /** * 视频号小店商品服务 * * @author <a href="https://github.com/lixize">Zeyes</a> */ @Slf4j public class WxChannelProductServiceImpl implements WxChannelProductService { /** 微信商店服务 */ private final BaseWxChannelServiceImpl<?, ?> shopService; public WxChannelProductServiceImpl(BaseWxChannelServiceImpl<?, ?> shopService) { this.shopService = shopService; } @Override public SpuUpdateResponse addProduct(SpuUpdateInfo info) throws WxErrorException { String reqJson = JsonUtils.encode(info); String resJson = shopService.post(SPU_ADD_URL, reqJson); return ResponseUtils.decode(resJson, SpuUpdateResponse.class); } @Override public SpuUpdateResponse updateProduct(SpuUpdateInfo info) throws WxErrorException { String reqJson = JsonUtils.encode(info); String resJson = shopService.post(SPU_UPDATE_URL, reqJson); return ResponseUtils.decode(resJson, SpuUpdateResponse.class); } @Override public SpuUpdateResponse addProduct(SpuInfo info) throws WxErrorException { String reqJson = JsonUtils.encode(info); String resJson = shopService.post(SPU_ADD_URL, reqJson); return ResponseUtils.decode(resJson, SpuUpdateResponse.class); } @Override public SpuUpdateResponse updateProduct(SpuInfo info) throws WxErrorException { String reqJson = JsonUtils.encode(info); String resJson = shopService.post(SPU_UPDATE_URL, reqJson); return ResponseUtils.decode(resJson, SpuUpdateResponse.class); } @Override public WxChannelBaseResponse updateProductAuditFree(SpuFastInfo info) throws WxErrorException { String reqJson = JsonUtils.encode(info); String resJson = shopService.post(SPU_AUDIT_FREE_UPDATE_URL, reqJson); return ResponseUtils.decode(resJson, SpuUpdateResponse.class); } @Override public WxChannelBaseResponse updateStock(String productId, String skuId, Integer diffType, Integer num) throws WxErrorException { SkuStockParam param = new SkuStockParam(productId, skuId, diffType, num); String reqJson = JsonUtils.encode(param); String resJson = shopService.post(SPU_UPDATE_STOCK_URL, reqJson); return ResponseUtils.decode(resJson, WxChannelBaseResponse.class); } /** * 生成商品id Json * * @param productId 商品ID * @param dataType 默认取1。1:获取线上数据, 2:获取草稿数据, 3:同时获取线上和草稿数据(注意:需成功上架后才有线上数据) * @return json */ protected String generateProductIdJson(String productId, Integer dataType) { StringBuilder sb = new StringBuilder(); sb.append('{'); if (productId != null) { sb.append("\"product_id\":").append(productId); } if (dataType != null) { sb.append(",").append("\"data_type\":").append(dataType); } sb.append('}'); return sb.toString(); } /** * 简单的商品请求 参数是商品id 只返回基本结果 * * @param url 资源路径 * @param productId 商品ID * @return 是否成功 */ protected WxChannelBaseResponse simpleProductRequest(String url, String productId) throws WxErrorException { String reqJson = this.generateProductIdJson(productId, null); String resJson = shopService.post(url, reqJson); return ResponseUtils.decode(resJson, WxChannelBaseResponse.class); } @Override public WxChannelBaseResponse deleteProduct(String productId) throws WxErrorException { return simpleProductRequest(SPU_DEL_URL, productId); } @Override public WxChannelBaseResponse cancelProductAudit(String productId) throws WxErrorException { return simpleProductRequest(CANCEL_AUDIT_URL, productId); } @Override public SpuGetResponse getProduct(String productId, Integer dataType) throws WxErrorException { String reqJson = this.generateProductIdJson(productId, dataType); String resJson = shopService.post(SPU_GET_URL, reqJson); return ResponseUtils.decode(resJson, SpuGetResponse.class); } @Override public SpuListResponse listProduct(Integer pageSize, String nextKey, Integer status) throws WxErrorException { SpuListParam param = new SpuListParam(pageSize, nextKey, status); String reqJson = JsonUtils.encode(param); String resJson = shopService.post(SPU_LIST_URL, reqJson); return ResponseUtils.decode(resJson, SpuListResponse.class); } @Override public WxChannelBaseResponse upProduct(String productId) throws WxErrorException { return simpleProductRequest(SPU_LISTING_URL, productId); } @Override public WxChannelBaseResponse downProduct(String productId) throws WxErrorException { return simpleProductRequest(SPU_DELISTING_URL, productId); } @Override public SkuStockResponse getSkuStock(String productId, String skuId) throws WxErrorException { String reqJson = "{\"product_id\":\"" + productId + "\",\"sku_id\":\"" + skuId + "\"}"; String resJson = shopService.post(SPU_GET_STOCK_URL, reqJson); return ResponseUtils.decode(resJson, SkuStockResponse.class); } @Override public SkuStockBatchResponse getSkuStockBatch(List<String> productIds) throws WxErrorException { SkuStockBatchParam param = new SkuStockBatchParam(productIds); String reqJson = JsonUtils.encode(param); String resJson = shopService.post(SPU_GET_STOCK_BATCH_URL, reqJson); return ResponseUtils.decode(resJson, SkuStockBatchResponse.class); } @Override public ProductH5UrlResponse getProductH5Url(String productId) throws WxErrorException { String reqJson = "{\"product_id\":\"" + productId + "\"}"; String resJson = shopService.post(SPU_H5URL_URL, reqJson); return ResponseUtils.decode(resJson, ProductH5UrlResponse.class); } @Override public ProductQrCodeResponse getProductQrCode(String productId) throws WxErrorException { String reqJson = "{\"product_id\":\"" + productId + "\"}"; String resJson = shopService.post(SPU_QRCODE_URL, reqJson); return ResponseUtils.decode(resJson, ProductQrCodeResponse.class); } @Override public ProductTagLinkResponse getProductTagLink(String productId) throws WxErrorException { String reqJson = "{\"product_id\":\"" + productId + "\"}"; String resJson = shopService.post(SPU_TAGLINK_URL, reqJson); return ResponseUtils.decode(resJson, ProductTagLinkResponse.class); } @Override public LimitTaskAddResponse addLimitTask(LimitTaskParam param) throws WxErrorException { String reqJson = JsonUtils.encode(param); String resJson = shopService.post(ADD_LIMIT_TASK_URL, reqJson); return ResponseUtils.decode(resJson, LimitTaskAddResponse.class); } @Override public LimitTaskListResponse listLimitTask(Integer pageSize, String nextKey, Integer status) throws WxErrorException { LimitTaskListParam param = new LimitTaskListParam(pageSize, nextKey, status); String reqJson = JsonUtils.encode(param); String resJson = shopService.post(LIST_LIMIT_TASK_URL, reqJson); return ResponseUtils.decode(resJson, LimitTaskListResponse.class); } @Override public WxChannelBaseResponse stopLimitTask(String taskId) throws WxErrorException { String reqJson = "{\"task_id\": \"" + taskId + "\"}"; String resJson = shopService.post(STOP_LIMIT_TASK_URL, reqJson); return ResponseUtils.decode(resJson, WxChannelBaseResponse.class); } @Override public WxChannelBaseResponse deleteLimitTask(String taskId) throws WxErrorException { String reqJson = "{\"task_id\": \"" + taskId + "\"}"; String resJson = shopService.post(DELETE_LIMIT_TASK_URL, reqJson); return ResponseUtils.decode(resJson, WxChannelBaseResponse.class); } }
java
Apache-2.0
84b5c4d2d0774f800237634e5d0336f53c004fe3
2026-01-04T14:46:39.499027Z
false
binarywang/WxJava
https://github.com/binarywang/WxJava/blob/84b5c4d2d0774f800237634e5d0336f53c004fe3/weixin-java-channel/src/main/java/me/chanjar/weixin/channel/api/impl/WxChannelOrderServiceImpl.java
weixin-java-channel/src/main/java/me/chanjar/weixin/channel/api/impl/WxChannelOrderServiceImpl.java
package me.chanjar.weixin.channel.api.impl; import static me.chanjar.weixin.channel.constant.WxChannelApiUrlConstants.Delivery.DELIVERY_SEND_URL; import static me.chanjar.weixin.channel.constant.WxChannelApiUrlConstants.Delivery.GET_DELIVERY_COMPANY_NEW_URL; import static me.chanjar.weixin.channel.constant.WxChannelApiUrlConstants.Delivery.GET_DELIVERY_COMPANY_URL; import static me.chanjar.weixin.channel.constant.WxChannelApiUrlConstants.Order.ACCEPT_ADDRESS_MODIFY_URL; import static me.chanjar.weixin.channel.constant.WxChannelApiUrlConstants.Order.DECODE_SENSITIVE_INFO_URL; import static me.chanjar.weixin.channel.constant.WxChannelApiUrlConstants.Order.ORDER_GET_URL; import static me.chanjar.weixin.channel.constant.WxChannelApiUrlConstants.Order.ORDER_LIST_URL; import static me.chanjar.weixin.channel.constant.WxChannelApiUrlConstants.Order.ORDER_SEARCH_URL; import static me.chanjar.weixin.channel.constant.WxChannelApiUrlConstants.Order.REJECT_ADDRESS_MODIFY_URL; import static me.chanjar.weixin.channel.constant.WxChannelApiUrlConstants.Order.UPDATE_ADDRESS_URL; import static me.chanjar.weixin.channel.constant.WxChannelApiUrlConstants.Order.UPDATE_EXPRESS_URL; import static me.chanjar.weixin.channel.constant.WxChannelApiUrlConstants.Order.UPDATE_PRICE_URL; import static me.chanjar.weixin.channel.constant.WxChannelApiUrlConstants.Order.UPDATE_REMARK_URL; import static me.chanjar.weixin.channel.constant.WxChannelApiUrlConstants.Order.UPLOAD_FRESH_INSPECT_URL; import static me.chanjar.weixin.channel.constant.WxChannelApiUrlConstants.Order.VIRTUAL_TEL_NUMBER_URL; import java.util.List; import lombok.extern.slf4j.Slf4j; import me.chanjar.weixin.channel.api.WxChannelOrderService; import me.chanjar.weixin.channel.bean.base.AddressInfo; import me.chanjar.weixin.channel.bean.base.WxChannelBaseResponse; import me.chanjar.weixin.channel.bean.delivery.DeliveryCompanyResponse; import me.chanjar.weixin.channel.bean.delivery.DeliveryInfo; import me.chanjar.weixin.channel.bean.delivery.DeliverySendParam; import me.chanjar.weixin.channel.bean.delivery.FreshInspectParam; import me.chanjar.weixin.channel.bean.delivery.PackageAuditInfo; import me.chanjar.weixin.channel.bean.order.ChangeOrderInfo; import me.chanjar.weixin.channel.bean.order.DecodeSensitiveInfoResponse; import me.chanjar.weixin.channel.bean.order.DeliveryUpdateParam; import me.chanjar.weixin.channel.bean.order.OrderAddressParam; import me.chanjar.weixin.channel.bean.order.OrderIdParam; import me.chanjar.weixin.channel.bean.order.OrderInfoParam; import me.chanjar.weixin.channel.bean.order.OrderInfoResponse; import me.chanjar.weixin.channel.bean.order.OrderListParam; import me.chanjar.weixin.channel.bean.order.OrderListResponse; import me.chanjar.weixin.channel.bean.order.OrderPriceParam; import me.chanjar.weixin.channel.bean.order.OrderRemarkParam; import me.chanjar.weixin.channel.bean.order.OrderSearchParam; import me.chanjar.weixin.channel.bean.order.VirtualTelNumberResponse; import me.chanjar.weixin.channel.util.ResponseUtils; import me.chanjar.weixin.common.error.WxErrorException; /** * 视频号小店订单服务 * * @author <a href="https://github.com/lixize">Zeyes</a> */ @Slf4j public class WxChannelOrderServiceImpl implements WxChannelOrderService { /** 微信商店服务 */ private final BaseWxChannelServiceImpl<?, ?> shopService; public WxChannelOrderServiceImpl(BaseWxChannelServiceImpl<?, ?> shopService) { this.shopService = shopService; } @Override public OrderInfoResponse getOrder(String orderId) throws WxErrorException { OrderInfoParam param = new OrderInfoParam(orderId, null); String resJson = shopService.post(ORDER_GET_URL, param); return ResponseUtils.decode(resJson, OrderInfoResponse.class); } @Override public OrderInfoResponse getOrder(String orderId, Boolean encodeSensitiveInfo) throws WxErrorException { OrderInfoParam param = new OrderInfoParam(orderId, encodeSensitiveInfo); String resJson = shopService.post(ORDER_GET_URL, param); return ResponseUtils.decode(resJson, OrderInfoResponse.class); } @Override public OrderListResponse getOrders(OrderListParam param) throws WxErrorException { String resJson = shopService.post(ORDER_LIST_URL, param); return ResponseUtils.decode(resJson, OrderListResponse.class); } @Override public OrderListResponse searchOrder(OrderSearchParam param) throws WxErrorException { String resJson = shopService.post(ORDER_SEARCH_URL, param); return ResponseUtils.decode(resJson, OrderListResponse.class); } @Override public WxChannelBaseResponse updatePrice(String orderId, Integer expressFee, List<ChangeOrderInfo> changeOrderInfos) throws WxErrorException { OrderPriceParam param = new OrderPriceParam(orderId, expressFee, changeOrderInfos); String resJson = shopService.post(UPDATE_PRICE_URL, param); ; return ResponseUtils.decode(resJson, WxChannelBaseResponse.class); } @Override public WxChannelBaseResponse updateRemark(String orderId, String merchantNotes) throws WxErrorException { OrderRemarkParam param = new OrderRemarkParam(orderId, merchantNotes); String resJson = shopService.post(UPDATE_REMARK_URL, param); return ResponseUtils.decode(resJson, WxChannelBaseResponse.class); } @Override public WxChannelBaseResponse updateAddress(String orderId, AddressInfo userAddress) throws WxErrorException { OrderAddressParam param = new OrderAddressParam(orderId, userAddress); String resJson = shopService.post(UPDATE_ADDRESS_URL, param); return ResponseUtils.decode(resJson, WxChannelBaseResponse.class); } @Override public WxChannelBaseResponse updateDelivery(DeliveryUpdateParam param) throws WxErrorException { String resJson = shopService.post(UPDATE_EXPRESS_URL, param); return ResponseUtils.decode(resJson, WxChannelBaseResponse.class); } @Override public WxChannelBaseResponse acceptAddressModify(String orderId) throws WxErrorException { OrderIdParam param = new OrderIdParam(orderId); String resJson = shopService.post(ACCEPT_ADDRESS_MODIFY_URL, param); return ResponseUtils.decode(resJson, WxChannelBaseResponse.class); } @Override public WxChannelBaseResponse rejectAddressModify(String orderId) throws WxErrorException { OrderIdParam param = new OrderIdParam(orderId); String resJson = shopService.post(REJECT_ADDRESS_MODIFY_URL, param); return ResponseUtils.decode(resJson, WxChannelBaseResponse.class); } @Override public WxChannelBaseResponse closeOrder(String orderId) { // 暂不支持 return ResponseUtils.internalError(WxChannelBaseResponse.class); } @Override public DeliveryCompanyResponse listDeliveryCompany() throws WxErrorException { String resJson = shopService.post(GET_DELIVERY_COMPANY_URL, "{}"); return ResponseUtils.decode(resJson, DeliveryCompanyResponse.class); } @Override public DeliveryCompanyResponse listDeliveryCompany(Boolean ewaybillOnly) throws WxErrorException { String reqJson = "{}"; if (ewaybillOnly != null) { reqJson = "{\"ewaybill_only\":" + ewaybillOnly + "}"; } String resJson = shopService.post(GET_DELIVERY_COMPANY_NEW_URL, reqJson); return ResponseUtils.decode(resJson, DeliveryCompanyResponse.class); } @Override public WxChannelBaseResponse deliveryOrder(String orderId, List<DeliveryInfo> deliveryList) throws WxErrorException { DeliverySendParam param = new DeliverySendParam(orderId, deliveryList); String resJson = shopService.post(DELIVERY_SEND_URL, param); return ResponseUtils.decode(resJson, WxChannelBaseResponse.class); } @Override public WxChannelBaseResponse uploadFreshInspect(String orderId, List<PackageAuditInfo> items) throws WxErrorException { FreshInspectParam param = new FreshInspectParam(orderId, items); String resJson = shopService.post(UPLOAD_FRESH_INSPECT_URL, param); return ResponseUtils.decode(resJson, WxChannelBaseResponse.class); } @Override public VirtualTelNumberResponse getVirtualTelNumber(String orderId) throws WxErrorException { String reqJson = "{\"order_id\":\"" + orderId + "\"}"; String resJson = shopService.post(VIRTUAL_TEL_NUMBER_URL, reqJson); return ResponseUtils.decode(resJson, VirtualTelNumberResponse.class); } @Override public DecodeSensitiveInfoResponse decodeSensitiveInfo(String orderId) throws WxErrorException { String reqJson = "{\"order_id\":\"" + orderId + "\"}"; String resJson = shopService.post(DECODE_SENSITIVE_INFO_URL, reqJson); return ResponseUtils.decode(resJson, DecodeSensitiveInfoResponse.class); } }
java
Apache-2.0
84b5c4d2d0774f800237634e5d0336f53c004fe3
2026-01-04T14:46:39.499027Z
false
binarywang/WxJava
https://github.com/binarywang/WxJava/blob/84b5c4d2d0774f800237634e5d0336f53c004fe3/weixin-java-channel/src/main/java/me/chanjar/weixin/channel/api/impl/WxChannelCouponServiceImpl.java
weixin-java-channel/src/main/java/me/chanjar/weixin/channel/api/impl/WxChannelCouponServiceImpl.java
package me.chanjar.weixin.channel.api.impl; import static me.chanjar.weixin.channel.constant.WxChannelApiUrlConstants.Coupon.CREATE_COUPON_URL; import static me.chanjar.weixin.channel.constant.WxChannelApiUrlConstants.Coupon.GET_COUPON_URL; import static me.chanjar.weixin.channel.constant.WxChannelApiUrlConstants.Coupon.GET_USER_COUPON_URL; import static me.chanjar.weixin.channel.constant.WxChannelApiUrlConstants.Coupon.LIST_COUPON_URL; import static me.chanjar.weixin.channel.constant.WxChannelApiUrlConstants.Coupon.LIST_USER_COUPON_URL; import static me.chanjar.weixin.channel.constant.WxChannelApiUrlConstants.Coupon.UPDATE_COUPON_STATUS_URL; import static me.chanjar.weixin.channel.constant.WxChannelApiUrlConstants.Coupon.UPDATE_COUPON_URL; import lombok.extern.slf4j.Slf4j; import me.chanjar.weixin.channel.api.WxChannelCouponService; import me.chanjar.weixin.channel.bean.base.WxChannelBaseResponse; import me.chanjar.weixin.channel.bean.coupon.CouponIdInfo; import me.chanjar.weixin.channel.bean.coupon.CouponIdResponse; import me.chanjar.weixin.channel.bean.coupon.CouponInfoResponse; import me.chanjar.weixin.channel.bean.coupon.CouponListParam; import me.chanjar.weixin.channel.bean.coupon.CouponListResponse; import me.chanjar.weixin.channel.bean.coupon.CouponParam; import me.chanjar.weixin.channel.bean.coupon.CouponStatusParam; import me.chanjar.weixin.channel.bean.coupon.UserCouponIdParam; import me.chanjar.weixin.channel.bean.coupon.UserCouponListParam; import me.chanjar.weixin.channel.bean.coupon.UserCouponListResponse; import me.chanjar.weixin.channel.bean.coupon.UserCouponResponse; import me.chanjar.weixin.channel.util.ResponseUtils; import me.chanjar.weixin.common.error.WxErrorException; /** * 视频号小店 优惠券服务实现 * * @author <a href="https://github.com/lixize">Zeyes</a> */ @Slf4j public class WxChannelCouponServiceImpl implements WxChannelCouponService { /** 微信商店服务 */ private final BaseWxChannelServiceImpl<?, ?> shopService; public WxChannelCouponServiceImpl(BaseWxChannelServiceImpl<?, ?> shopService) { this.shopService = shopService; } @Override public CouponIdResponse createCoupon(CouponParam coupon) throws WxErrorException { String resJson = shopService.post(CREATE_COUPON_URL, coupon); return ResponseUtils.decode(resJson, CouponIdResponse.class); } @Override public CouponIdResponse updateCoupon(CouponParam coupon) throws WxErrorException { String resJson = shopService.post(UPDATE_COUPON_URL, coupon); return ResponseUtils.decode(resJson, CouponIdResponse.class); } @Override public WxChannelBaseResponse updateCouponStatus(String couponId, Integer status) throws WxErrorException { CouponStatusParam param = new CouponStatusParam(couponId, status); String resJson = shopService.post(UPDATE_COUPON_STATUS_URL, param); return ResponseUtils.decode(resJson, WxChannelBaseResponse.class); } @Override public CouponInfoResponse getCoupon(String couponId) throws WxErrorException { CouponIdInfo param = new CouponIdInfo(couponId); String resJson = shopService.post(GET_COUPON_URL, param); return ResponseUtils.decode(resJson, CouponInfoResponse.class); } @Override public CouponListResponse getCouponList(CouponListParam param) throws WxErrorException { String resJson = shopService.post(LIST_COUPON_URL, param); return ResponseUtils.decode(resJson, CouponListResponse.class); } @Override public UserCouponResponse getUserCoupon(String openId, String userCouponId) throws WxErrorException { UserCouponIdParam param = new UserCouponIdParam(openId, userCouponId); String resJson = shopService.post(GET_USER_COUPON_URL, param); return ResponseUtils.decode(resJson, UserCouponResponse.class); } @Override public UserCouponListResponse getUserCouponList(UserCouponListParam param) throws WxErrorException { String resJson = shopService.post(LIST_USER_COUPON_URL, param); return ResponseUtils.decode(resJson, UserCouponListResponse.class); } }
java
Apache-2.0
84b5c4d2d0774f800237634e5d0336f53c004fe3
2026-01-04T14:46:39.499027Z
false
binarywang/WxJava
https://github.com/binarywang/WxJava/blob/84b5c4d2d0774f800237634e5d0336f53c004fe3/weixin-java-channel/src/main/java/me/chanjar/weixin/channel/api/impl/BaseWxChannelMessageServiceImpl.java
weixin-java-channel/src/main/java/me/chanjar/weixin/channel/api/impl/BaseWxChannelMessageServiceImpl.java
package me.chanjar.weixin.channel.api.impl; import java.util.Map; import lombok.extern.slf4j.Slf4j; import me.chanjar.weixin.channel.api.BaseWxChannelMessageService; import me.chanjar.weixin.channel.api.WxChannelService; import me.chanjar.weixin.channel.bean.message.after.AfterSaleMessage; import me.chanjar.weixin.channel.bean.message.after.ComplaintMessage; import me.chanjar.weixin.channel.bean.message.coupon.CouponActionMessage; import me.chanjar.weixin.channel.bean.message.coupon.CouponReceiveMessage; import me.chanjar.weixin.channel.bean.message.coupon.UserCouponExpireMessage; import me.chanjar.weixin.channel.bean.message.fund.AccountNotifyMessage; import me.chanjar.weixin.channel.bean.message.fund.QrNotifyMessage; import me.chanjar.weixin.channel.bean.message.fund.WithdrawNotifyMessage; import me.chanjar.weixin.channel.bean.message.order.OrderCancelMessage; import me.chanjar.weixin.channel.bean.message.order.OrderConfirmMessage; import me.chanjar.weixin.channel.bean.message.order.OrderDeliveryMessage; import me.chanjar.weixin.channel.bean.message.order.OrderExtMessage; import me.chanjar.weixin.channel.bean.message.order.OrderIdMessage; import me.chanjar.weixin.channel.bean.message.order.OrderPayMessage; import me.chanjar.weixin.channel.bean.message.order.OrderSettleMessage; import me.chanjar.weixin.channel.bean.message.order.OrderStatusMessage; import me.chanjar.weixin.channel.bean.message.product.BrandMessage; import me.chanjar.weixin.channel.bean.message.product.CategoryAuditMessage; import me.chanjar.weixin.channel.bean.message.product.SpuAuditMessage; import me.chanjar.weixin.channel.bean.message.product.SpuStockMessage; import me.chanjar.weixin.channel.bean.message.sharer.SharerChangeMessage; import me.chanjar.weixin.channel.bean.message.store.CloseStoreMessage; import me.chanjar.weixin.channel.bean.message.store.NicknameUpdateMessage; import me.chanjar.weixin.channel.bean.message.supplier.SupplierItemMessage; import me.chanjar.weixin.channel.bean.message.vip.ExchangeInfoMessage; import me.chanjar.weixin.channel.bean.message.vip.UserInfoMessage; import me.chanjar.weixin.channel.bean.message.voucher.VoucherMessage; import me.chanjar.weixin.channel.message.WxChannelMessage; import me.chanjar.weixin.channel.message.WxChannelMessageRouter; import me.chanjar.weixin.channel.message.WxChannelMessageRouterRule; import me.chanjar.weixin.channel.message.rule.HandlerConsumer; import me.chanjar.weixin.channel.util.JsonUtils; import me.chanjar.weixin.common.session.WxSessionManager; import static me.chanjar.weixin.channel.constant.MessageEventConstants.*; /** * @author <a href="https://github.com/lixize">Zeyes</a> */ @Slf4j public abstract class BaseWxChannelMessageServiceImpl implements BaseWxChannelMessageService { /** 消息路由器 */ protected WxChannelMessageRouter router; public BaseWxChannelMessageServiceImpl(WxChannelMessageRouter router) { this.router = router; this.addDefaultRule(); } /** * 添加默认的回调规则 */ protected void addDefaultRule() { /* 品牌资质事件回调 */ this.addRule(BrandMessage.class, BRAND, this::brandUpdate); /* 商品审核结果 */ this.addRule(SpuAuditMessage.class, PRODUCT_SPU_AUDIT, this::spuAudit); /* 商品上下架 */ this.addRule(SpuAuditMessage.class, PRODUCT_SPU_STATUS_UPDATE, this::spuStatusUpdate); /* 商品更新 */ this.addRule(SpuAuditMessage.class, PRODUCT_SPU_UPDATE, this::spuUpdate); /* 商品库存不足 */ this.addRule(SpuStockMessage.class, PRODUCT_STOCK_NO_ENOUGH, this::stockNoEnough); /* 类目审核结果 */ this.addRule(CategoryAuditMessage.class, PRODUCT_CATEGORY_AUDIT, this::categoryAudit); /* 订单下单 */ this.addRule(OrderIdMessage.class, ORDER_NEW, this::orderNew); /* 订单取消 */ this.addRule(OrderCancelMessage.class, ORDER_CANCEL, this::orderCancel); /* 订单支付成功 */ this.addRule(OrderPayMessage.class, ORDER_PAY, this::orderPay); /* 订单待发货 */ this.addRule(OrderIdMessage.class, ORDER_WAIT_SHIPPING, this::orderWaitShipping); /* 订单发货 */ this.addRule(OrderDeliveryMessage.class, ORDER_DELIVER, this::orderDelivery); /* 订单确认收货 */ this.addRule(OrderConfirmMessage.class, ORDER_CONFIRM, this::orderConfirm); /* 订单结算成功 */ this.addRule(OrderSettleMessage.class, ORDER_SETTLE, this::orderSettle); /* 订单其他信息更新 */ this.addRule(OrderExtMessage.class, ORDER_EXT_INFO_UPDATE, this::orderExtInfoUpdate); /* 订单状态更新 */ this.addRule(OrderStatusMessage.class, ORDER_STATUS_UPDATE, this::orderStatusUpdate); /* 售后单更新通知 */ this.addRule(AfterSaleMessage.class, AFTER_SALE_UPDATE, this::afterSaleStatusUpdate); /* 纠纷更新通知 */ this.addRule(ComplaintMessage.class, COMPLAINT_NOTIFY, this::complaintNotify); /* 优惠券领取通知 */ this.addRule(CouponReceiveMessage.class, RECEIVE_COUPON, this::couponReceive); /* 优惠券使用通知 */ this.addRule(CouponActionMessage.class, CREATE_COUPON, this::couponCreate); /* 优惠券删除通知 */ this.addRule(CouponActionMessage.class, DELETE_COUPON, this::couponDelete); /* 优惠券过期通知 */ this.addRule(CouponActionMessage.class, EXPIRE_COUPON, this::couponExpire); /* 更新优惠券信息通知 */ this.addRule(CouponActionMessage.class, UPDATE_COUPON_INFO, this::couponUpdate); /* 更新优惠券信息通知 */ this.addRule(CouponActionMessage.class, INVALID_COUPON, this::couponInvalid); /* 用户优惠券过期通知 */ this.addRule(UserCouponExpireMessage.class, USER_COUPON_EXPIRE, this::userCouponExpire); /* 用户优惠券过期通知 */ this.addRule(UserCouponExpireMessage.class, USER_COUPON_UNUSE, this::userCouponUnuse); /* 优惠券返还通知 */ this.addRule(UserCouponExpireMessage.class, USER_COUPON_USE, this::userCouponUse); /* 发放团购优惠成功通知 */ this.addRule(VoucherMessage.class, VOUCHER_SEND_SUCC, this::voucherSendSucc); /* 结算账户变更回调 */ this.addRule(AccountNotifyMessage.class, ACCOUNT_NOTIFY, this::accountNotify); /* 提现回调 */ this.addRule(WithdrawNotifyMessage.class, WITHDRAW_NOTIFY, this::withdrawNotify); /* 提现二维码回调 */ this.addRule(QrNotifyMessage.class, QRCODE_STATUS, this::qrNotify); /* 团长 */ this.addRule(SupplierItemMessage.class, SUPPLIER_ITEM_UPDATE, this::supplierItemUpdate); /* 用户加入会员 */ this.addRule(UserInfoMessage.class, USER_VIP_JOIN, false, this::vipJoin); /* 用户注销会员 */ this.addRule(UserInfoMessage.class, USER_VIP_CLOSE,false, this::vipClose); /* 用户等级信息更新 */ this.addRule(UserInfoMessage.class, USER_VIP_GRADE_INFO_UPDATE, false, this::vipGradeUpdate); /* 用户积分更新 */ this.addRule(UserInfoMessage.class, USER_VIP_SCORE_UPDATE, false, this::vipScoreUpdate); /* 用户积分兑换 */ this.addRule(ExchangeInfoMessage.class, USER_VIP_SCORE_EXCHANGE, false, this::vipScoreExchange); /* 分享员变更 */ this.addRule(SharerChangeMessage.class,SHARER_CHANGE,false,this::sharerChange); /* 小店注销 */ this.addRule(CloseStoreMessage.class, CLOSE_STORE, this::closeStore); /* 小店修改名称 */ this.addRule(NicknameUpdateMessage.class, SET_SHOP_NICKNAME, this::updateNickname); } /** * 添加一条规则进入路由器 * * @param clazz 消息类型 * @param event 事件类型 * @param consumer 处理器 * @param <T> 消息类型 */ protected <T extends WxChannelMessage> void addRule(Class<T> clazz, String event, Boolean async, HandlerConsumer<T, String, String, Map<String, Object>, WxSessionManager> consumer) { WxChannelMessageRouterRule<T> rule = new WxChannelMessageRouterRule<>(); rule.setMessageClass(clazz).setEvent(event).setAsync(async); rule.getHandlers().add((message, content, appId, context, sessionManager) -> { consumer.accept(message, content, appId, context, sessionManager); return "success"; }); rule.setNext(true); this.addRule(rule); } protected <T extends WxChannelMessage> void addRule(Class<T> clazz, String event, HandlerConsumer<T, String, String, Map<String, Object>, WxSessionManager> consumer) { this.addRule(clazz, event, true, consumer); } @Override public void addRule(WxChannelMessageRouterRule<? extends WxChannelMessage> rule) { router.getRules().add(rule); } @Override public Object route(WxChannelMessage message, String content, String appId, final WxChannelService service) { return router.route(message, content, appId, service); } @Override public void orderNew(OrderIdMessage message, String content, String appId, Map<String, Object> context, WxSessionManager sessionManager) { log.info("订单下单:{}", JsonUtils.encode(message)); } @Override public void orderCancel(OrderCancelMessage message, String content, String appId, Map<String, Object> context, WxSessionManager sessionManager) { log.info("订单取消:{}", JsonUtils.encode(message)); } @Override public void orderPay(OrderPayMessage message, String content, String appId, Map<String, Object> context, WxSessionManager sessionManager) { log.info("订单支付成功:{}", JsonUtils.encode(message)); } @Override public void orderWaitShipping(OrderIdMessage message, String content, String appId, Map<String, Object> context, WxSessionManager sessionManager) { log.info("订单待发货:{}", JsonUtils.encode(message)); } @Override public void orderDelivery(OrderDeliveryMessage message, String content, String appId, Map<String, Object> context, WxSessionManager sessionManager) { log.info("订单发货:{}", JsonUtils.encode(message)); } @Override public void orderConfirm(OrderConfirmMessage message, String content, String appId, Map<String, Object> context, WxSessionManager sessionManager) { log.info("订单确认收货:{}", JsonUtils.encode(message)); } @Override public void orderSettle(OrderSettleMessage message, String content, String appId, Map<String, Object> context, WxSessionManager sessionManager) { log.info("订单结算:{}", JsonUtils.encode(message)); } @Override public void orderExtInfoUpdate(OrderExtMessage message, String content, String appId, Map<String, Object> context, WxSessionManager sessionManager) { log.info("订单其他信息更新:{}", JsonUtils.encode(message)); } @Override public void orderStatusUpdate(OrderStatusMessage message, String content, String appId, Map<String, Object> context, WxSessionManager sessionManager) { log.info("订单状态更新:{}", JsonUtils.encode(message)); } @Override public void spuAudit(SpuAuditMessage message, String content, String appId, Map<String, Object> context, WxSessionManager sessionManager) { log.info("商品审核:{}", JsonUtils.encode(message)); } @Override public void spuStatusUpdate(SpuAuditMessage message, String content, String appId, Map<String, Object> context, WxSessionManager sessionManager) { log.info("商品状态更新:{}", JsonUtils.encode(message)); } @Override public void spuUpdate(SpuAuditMessage message, String content, String appId, Map<String, Object> context, WxSessionManager sessionManager) { log.info("商品更新:{}", JsonUtils.encode(message)); } @Override public void stockNoEnough(SpuStockMessage message, String content, String appId, Map<String, Object> context, WxSessionManager sessionManager) { log.info("商品库存不足:{}", JsonUtils.encode(message)); } @Override public void categoryAudit(CategoryAuditMessage message, String content, String appId, Map<String, Object> context, WxSessionManager sessionManager) { log.info("分类审核:{}", JsonUtils.encode(message)); } @Override public void brandUpdate(BrandMessage message, String content, String appId, Map<String, Object> context, WxSessionManager sessionManager) { log.info("品牌更新:{}", JsonUtils.encode(message)); } @Override public void afterSaleStatusUpdate(AfterSaleMessage message, String content, String appId, Map<String, Object> context, WxSessionManager sessionManager) { log.info("售后状态更新:{}", JsonUtils.encode(message)); } @Override public void complaintNotify(ComplaintMessage message, String content, String appId, Map<String, Object> context, WxSessionManager sessionManager) { log.info("投诉通知:{}", JsonUtils.encode(message)); } @Override public void couponReceive(CouponReceiveMessage message, String content, String appId, Map<String, Object> context, WxSessionManager sessionManager) { log.info("优惠券领取:{}", JsonUtils.encode(message)); } @Override public void couponCreate(CouponActionMessage message, String content, String appId, Map<String, Object> context, WxSessionManager sessionManager) { log.info("优惠券创建:{}", JsonUtils.encode(message)); } @Override public void couponDelete(CouponActionMessage message, String content, String appId, Map<String, Object> context, WxSessionManager sessionManager) { log.info("优惠券删除:{}", JsonUtils.encode(message)); } @Override public void couponExpire(CouponActionMessage message, String content, String appId, Map<String, Object> context, WxSessionManager sessionManager) { log.info("优惠券过期:{}", JsonUtils.encode(message)); } @Override public void couponUpdate(CouponActionMessage message, String content, String appId, Map<String, Object> context, WxSessionManager sessionManager) { log.info("优惠券更新:{}", JsonUtils.encode(message)); } @Override public void couponInvalid(CouponActionMessage message, String content, String appId, Map<String, Object> context, WxSessionManager sessionManager) { log.info("优惠券失效:{}", JsonUtils.encode(message)); } @Override public void userCouponExpire(UserCouponExpireMessage message, String content, String appId, Map<String, Object> context, WxSessionManager sessionManager) { log.info("用户优惠券过期:{}", JsonUtils.encode(message)); } @Override public void userCouponUse(UserCouponExpireMessage message, String content, String appId, Map<String, Object> context, WxSessionManager sessionManager) { log.info("用户优惠券使用:{}", JsonUtils.encode(message)); } @Override public void userCouponUnuse(UserCouponExpireMessage message, String content, String appId, Map<String, Object> context, WxSessionManager sessionManager) { log.info("用户优惠券取消使用:{}", JsonUtils.encode(message)); } @Override public void voucherSendSucc(VoucherMessage message, String content, String appId, Map<String, Object> context, WxSessionManager sessionManager) { log.info("发放团购优惠成功:{}", JsonUtils.encode(message)); } @Override public void accountNotify(AccountNotifyMessage message, String content, String appId, Map<String, Object> context, WxSessionManager sessionManager) { log.info("账户通知:{}", JsonUtils.encode(message)); } @Override public void withdrawNotify(WithdrawNotifyMessage message, String content, String appId, Map<String, Object> context, WxSessionManager sessionManager) { log.info("提现通知:{}", JsonUtils.encode(message)); } @Override public void qrNotify(QrNotifyMessage message, String content, String appId, Map<String, Object> context, WxSessionManager sessionManager) { log.info("二维码通知:{}", JsonUtils.encode(message)); } @Override public void supplierItemUpdate(SupplierItemMessage message, String content, String appId, Map<String, Object> context, WxSessionManager sessionManager) { log.info("供应商商品更新:{}", JsonUtils.encode(message)); } @Override public Object defaultMessageHandler(WxChannelMessage message, String content, String appId, Map<String, Object> context, WxSessionManager sessionManager) { log.info("默认消息处理:{}", JsonUtils.encode(message)); return null; } @Override public void sharerChange(WxChannelMessage message, String content, String appId, Map<String, Object> context, WxSessionManager sessionManager) { log.info("分享员变更:{}", JsonUtils.encode(message)); } @Override public void vipJoin(UserInfoMessage message, String content, String appId, Map<String, Object> context, WxSessionManager sessionManager) { log.info("用户加入会员:{}", JsonUtils.encode(message)); } @Override public void vipClose(UserInfoMessage message, String content, String appId, Map<String, Object> context, WxSessionManager sessionManager) { log.info("用户注销会员:{}", JsonUtils.encode(message)); } @Override public void vipGradeUpdate(UserInfoMessage message, String content, String appId, Map<String, Object> context, WxSessionManager sessionManager) { log.info("用户等级信息更新:{}", JsonUtils.encode(message)); } @Override public void vipScoreUpdate(UserInfoMessage message, String content, String appId, Map<String, Object> context, WxSessionManager sessionManager) { log.info("用户积分更新:{}", JsonUtils.encode(message)); } @Override public void vipScoreExchange(ExchangeInfoMessage message, String content, String appId, Map<String, Object> context, WxSessionManager sessionManager) { log.info("用户积分兑换:{}", JsonUtils.encode(message)); } @Override public void closeStore(CloseStoreMessage message, String content, String appId, Map<String, Object> context, WxSessionManager sessionManager) { log.info("小店注销:{}", JsonUtils.encode(message)); } @Override public void updateNickname(NicknameUpdateMessage message, String content, String appId, Map<String, Object> context, WxSessionManager sessionManager) { log.info("小店修改名称:{}", JsonUtils.encode(message)); } }
java
Apache-2.0
84b5c4d2d0774f800237634e5d0336f53c004fe3
2026-01-04T14:46:39.499027Z
false
binarywang/WxJava
https://github.com/binarywang/WxJava/blob/84b5c4d2d0774f800237634e5d0336f53c004fe3/weixin-java-channel/src/main/java/me/chanjar/weixin/channel/api/impl/WxChannelAfterSaleServiceImpl.java
weixin-java-channel/src/main/java/me/chanjar/weixin/channel/api/impl/WxChannelAfterSaleServiceImpl.java
package me.chanjar.weixin.channel.api.impl; import lombok.extern.slf4j.Slf4j; import me.chanjar.weixin.channel.api.WxChannelAfterSaleService; import me.chanjar.weixin.channel.bean.after.*; import me.chanjar.weixin.channel.bean.base.WxChannelBaseResponse; import me.chanjar.weixin.channel.bean.complaint.ComplaintOrderResponse; import me.chanjar.weixin.channel.bean.complaint.ComplaintParam; import me.chanjar.weixin.channel.util.ResponseUtils; import me.chanjar.weixin.common.error.WxErrorException; import java.util.List; import static me.chanjar.weixin.channel.constant.WxChannelApiUrlConstants.AfterSale.*; import static me.chanjar.weixin.channel.constant.WxChannelApiUrlConstants.Complaint.*; /** * 视频号小店 售后服务实现 * * @author <a href="https://github.com/lixize">Zeyes</a> */ @Slf4j public class WxChannelAfterSaleServiceImpl implements WxChannelAfterSaleService { /** * 微信商店服务 */ private final BaseWxChannelServiceImpl<?, ?> shopService; public WxChannelAfterSaleServiceImpl(BaseWxChannelServiceImpl<?, ?> shopService) { this.shopService = shopService; } @Override public AfterSaleListResponse listIds(Long beginCreateTime, Long endCreateTime, String nextKey) throws WxErrorException { AfterSaleListParam param = new AfterSaleListParam(beginCreateTime, endCreateTime, null, null, nextKey); String resJson = shopService.post(AFTER_SALE_LIST_URL, param); return ResponseUtils.decode(resJson, AfterSaleListResponse.class); } @Override public AfterSaleListResponse listIds(AfterSaleListParam param) throws WxErrorException { String resJson = shopService.post(AFTER_SALE_LIST_URL, param); return ResponseUtils.decode(resJson, AfterSaleListResponse.class); } @Override public AfterSaleInfoResponse get(String afterSaleOrderId) throws WxErrorException { AfterSaleIdParam param = new AfterSaleIdParam(afterSaleOrderId); String resJson = shopService.post(AFTER_SALE_GET_URL, param); return ResponseUtils.decode(resJson, AfterSaleInfoResponse.class); } @Override public WxChannelBaseResponse accept(String afterSaleOrderId, String addressId, Integer acceptType) throws WxErrorException { AfterSaleAcceptParam param = new AfterSaleAcceptParam(afterSaleOrderId, addressId, acceptType); String resJson = shopService.post(AFTER_SALE_ACCEPT_URL, param); return ResponseUtils.decode(resJson, WxChannelBaseResponse.class); } @Override public WxChannelBaseResponse reject(String afterSaleOrderId, String rejectReason, Integer rejectReasonType) throws WxErrorException { AfterSaleRejectParam param = new AfterSaleRejectParam(afterSaleOrderId, rejectReason, rejectReasonType); String resJson = shopService.post(AFTER_SALE_REJECT_URL, param); return ResponseUtils.decode(resJson, WxChannelBaseResponse.class); } @Override public WxChannelBaseResponse uploadRefundEvidence(String afterSaleOrderId, String desc, List<String> certificates) throws WxErrorException { RefundEvidenceParam param = new RefundEvidenceParam(afterSaleOrderId, desc, certificates); String resJson = shopService.post(AFTER_SALE_UPLOAD_URL, param); return ResponseUtils.decode(resJson, WxChannelBaseResponse.class); } @Override public WxChannelBaseResponse addComplaintMaterial(String complaintId, String content, List<String> mediaIds) throws WxErrorException { ComplaintParam param = new ComplaintParam(complaintId, content, mediaIds); String resJson = shopService.post(ADD_COMPLAINT_MATERIAL_URL, param); return ResponseUtils.decode(resJson, WxChannelBaseResponse.class); } @Override public WxChannelBaseResponse addComplaintEvidence(String complaintId, String content, List<String> mediaIds) throws WxErrorException { ComplaintParam param = new ComplaintParam(complaintId, content, mediaIds); String resJson = shopService.post(ADD_COMPLAINT_PROOF_URL, param); return ResponseUtils.decode(resJson, WxChannelBaseResponse.class); } @Override public ComplaintOrderResponse getComplaint(String complaintId) throws WxErrorException { String reqJson = "{\"complaint_id\":\"" + complaintId + "\"}"; String resJson = shopService.post(GET_COMPLAINT_ORDER_URL, reqJson); return ResponseUtils.decode(resJson, ComplaintOrderResponse.class); } @Override public AfterSaleReasonResponse getAllReason() throws WxErrorException { String resJson = shopService.post(AFTER_SALE_REASON_GET_URL, "{}"); return ResponseUtils.decode(resJson, AfterSaleReasonResponse.class); } @Override public AfterSaleRejectReasonResponse getRejectReason() throws WxErrorException { String resJson = shopService.post(AFTER_SALE_REJECT_REASON_GET_URL, "{}"); return ResponseUtils.decode(resJson, AfterSaleRejectReasonResponse.class); } @Override public WxChannelBaseResponse acceptExchangeReship(String afterSaleOrderId, String waybillId, String deliveryId) throws WxErrorException { AfterSaleAcceptExchangeReshipParam param = new AfterSaleAcceptExchangeReshipParam(afterSaleOrderId, waybillId, deliveryId); String resJson = shopService.post(AFTER_SALE_ACCEPT_EXCHANGE_RESHIP_URL, param); return ResponseUtils.decode(resJson, WxChannelBaseResponse.class); } @Override public WxChannelBaseResponse rejectExchangeReship(String afterSaleOrderId, String rejectReason, Integer rejectReasonType, List<String> rejectCertificates) throws WxErrorException { AfterSaleRejectExchangeReshipParam param = new AfterSaleRejectExchangeReshipParam(afterSaleOrderId, rejectReason, rejectReasonType, rejectCertificates); String resJson = shopService.post(AFTER_SALE_REJECT_EXCHANGE_RESHIP_URL, param); return ResponseUtils.decode(resJson, WxChannelBaseResponse.class); } @Override public WxChannelBaseResponse merchantUpdateAfterSale(AfterSaleMerchantUpdateParam param) throws WxErrorException { String resJson = shopService.post(AFTER_SALE_MERCHANT_UPDATE_URL, param); return ResponseUtils.decode(resJson, WxChannelBaseResponse.class); } }
java
Apache-2.0
84b5c4d2d0774f800237634e5d0336f53c004fe3
2026-01-04T14:46:39.499027Z
false
binarywang/WxJava
https://github.com/binarywang/WxJava/blob/84b5c4d2d0774f800237634e5d0336f53c004fe3/weixin-java-channel/src/main/java/me/chanjar/weixin/channel/common/ChannelWxError.java
weixin-java-channel/src/main/java/me/chanjar/weixin/channel/common/ChannelWxError.java
package me.chanjar.weixin.channel.common; import me.chanjar.weixin.channel.enums.WxChannelErrorMsgEnum; import me.chanjar.weixin.common.error.WxError; /** * 微信视频号错误码 * * @author <a href="https://github.com/lixize">Zeyes</a> * @deprecated 请使用 {@link me.chanjar.weixin.common.error.WxError} 替代 */ @Deprecated public class ChannelWxError extends WxError { private static final long serialVersionUID = -2638512715814977441L; public ChannelWxError() { } public ChannelWxError(int errorCode, String errorMsgEn) { super(errorCode, errorMsgEn); if (WxChannelErrorMsgEnum.findMsgByCode(errorCode) != null) { this.setErrorMsg(WxChannelErrorMsgEnum.findMsgByCode(errorCode)); } this.setErrorMsgEn(errorMsgEn); } }
java
Apache-2.0
84b5c4d2d0774f800237634e5d0336f53c004fe3
2026-01-04T14:46:39.499027Z
false
binarywang/WxJava
https://github.com/binarywang/WxJava/blob/84b5c4d2d0774f800237634e5d0336f53c004fe3/weixin-java-channel/src/main/java/me/chanjar/weixin/channel/executor/ApacheHttpChannelMediaDownloadRequestExecutor.java
weixin-java-channel/src/main/java/me/chanjar/weixin/channel/executor/ApacheHttpChannelMediaDownloadRequestExecutor.java
package me.chanjar.weixin.channel.executor; import me.chanjar.weixin.channel.bean.image.ChannelImageResponse; import me.chanjar.weixin.channel.util.JsonUtils; import me.chanjar.weixin.common.enums.WxType; import me.chanjar.weixin.common.error.WxErrorException; import me.chanjar.weixin.common.util.http.RequestHttp; import me.chanjar.weixin.common.util.http.ResponseHandler; import me.chanjar.weixin.common.util.http.apache.InputStreamResponseHandler; import me.chanjar.weixin.common.util.http.apache.Utf8ResponseHandler; import org.apache.commons.io.FilenameUtils; import org.apache.commons.lang3.StringUtils; import org.apache.http.Header; import org.apache.http.HttpHost; import org.apache.http.client.config.RequestConfig; import org.apache.http.client.methods.CloseableHttpResponse; import org.apache.http.client.methods.HttpGet; import org.apache.http.entity.ContentType; import org.apache.http.impl.client.CloseableHttpClient; import java.io.File; import java.io.IOException; import java.io.InputStream; public class ApacheHttpChannelMediaDownloadRequestExecutor extends ChannelMediaDownloadRequestExecutor<CloseableHttpClient, HttpHost> { public ApacheHttpChannelMediaDownloadRequestExecutor(RequestHttp<CloseableHttpClient, HttpHost> requestHttp, File tmpDirFile) { super(requestHttp, tmpDirFile); } @Override public ChannelImageResponse execute(String uri, String data, WxType wxType) throws WxErrorException, IOException { if (data != null) { if (uri.indexOf('?') == -1) { uri += '?'; } uri += uri.endsWith("?") ? data : '&' + data; } HttpGet httpGet = new HttpGet(uri); if (requestHttp.getRequestHttpProxy() != null) { RequestConfig config = RequestConfig.custom().setProxy(requestHttp.getRequestHttpProxy()).build(); httpGet.setConfig(config); } try (CloseableHttpResponse response = requestHttp.getRequestHttpClient().execute(httpGet); InputStream inputStream = InputStreamResponseHandler.INSTANCE.handleResponse(response)) { Header[] contentTypeHeader = response.getHeaders("Content-Type"); String contentType = null; if (contentTypeHeader != null && contentTypeHeader.length > 0) { contentType = contentTypeHeader[0].getValue(); if (contentType.startsWith(ContentType.APPLICATION_JSON.getMimeType())) { // application/json; encoding=utf-8 下载媒体文件出错 String responseContent = Utf8ResponseHandler.INSTANCE.handleResponse(response); return JsonUtils.decode(responseContent, ChannelImageResponse.class); } } String fileName = this.getFileName(response); if (StringUtils.isBlank(fileName)) { fileName = String.valueOf(System.currentTimeMillis()); } String baseName = FilenameUtils.getBaseName(fileName); if (StringUtils.isBlank(fileName) || baseName.length() < 3) { baseName = String.valueOf(System.currentTimeMillis()); } String extension = FilenameUtils.getExtension(fileName); if (StringUtils.isBlank(extension)) { extension = "unknown"; } File file = createTmpFile(inputStream, baseName, extension, tmpDirFile); return new ChannelImageResponse(file, contentType); } } private String getFileName(CloseableHttpResponse response) throws WxErrorException { Header[] contentDispositionHeader = response.getHeaders("Content-disposition"); if (contentDispositionHeader == null || contentDispositionHeader.length == 0) { return createDefaultFileName(); } return this.extractFileNameFromContentString(contentDispositionHeader[0].getValue()); } @Override public void execute(String uri, String data, ResponseHandler<ChannelImageResponse> handler, WxType wxType) throws WxErrorException, IOException { handler.handle(this.execute(uri, data, wxType)); } }
java
Apache-2.0
84b5c4d2d0774f800237634e5d0336f53c004fe3
2026-01-04T14:46:39.499027Z
false
binarywang/WxJava
https://github.com/binarywang/WxJava/blob/84b5c4d2d0774f800237634e5d0336f53c004fe3/weixin-java-channel/src/main/java/me/chanjar/weixin/channel/executor/HttpComponentsChannelFileUploadRequestExecutor.java
weixin-java-channel/src/main/java/me/chanjar/weixin/channel/executor/HttpComponentsChannelFileUploadRequestExecutor.java
package me.chanjar.weixin.channel.executor; import me.chanjar.weixin.common.enums.WxType; import me.chanjar.weixin.common.error.WxErrorException; import me.chanjar.weixin.common.util.http.RequestHttp; import me.chanjar.weixin.common.util.http.ResponseHandler; import me.chanjar.weixin.common.util.http.hc.Utf8ResponseHandler; import org.apache.hc.client5.http.classic.methods.HttpPost; import org.apache.hc.client5.http.config.RequestConfig; import org.apache.hc.client5.http.entity.mime.HttpMultipartMode; import org.apache.hc.client5.http.entity.mime.MultipartEntityBuilder; import org.apache.hc.client5.http.impl.classic.CloseableHttpClient; import org.apache.hc.core5.http.HttpEntity; import org.apache.hc.core5.http.HttpHost; import java.io.File; import java.io.IOException; public class HttpComponentsChannelFileUploadRequestExecutor extends ChannelFileUploadRequestExecutor<CloseableHttpClient, HttpHost> { public HttpComponentsChannelFileUploadRequestExecutor(RequestHttp<CloseableHttpClient, HttpHost> requestHttp) { super(requestHttp); } @Override public String execute(String uri, File file, WxType wxType) throws WxErrorException, IOException { HttpPost httpPost = new HttpPost(uri); if (requestHttp.getRequestHttpProxy() != null) { RequestConfig config = RequestConfig.custom().setProxy(requestHttp.getRequestHttpProxy()).build(); httpPost.setConfig(config); } if (file != null) { HttpEntity entity = MultipartEntityBuilder .create() .addBinaryBody("media", file) .setMode(HttpMultipartMode.EXTENDED) .build(); httpPost.setEntity(entity); } return requestHttp.getRequestHttpClient().execute(httpPost, Utf8ResponseHandler.INSTANCE); } @Override public void execute(String uri, File data, ResponseHandler<String> handler, WxType wxType) throws WxErrorException, IOException { handler.handle(this.execute(uri, data, wxType)); } }
java
Apache-2.0
84b5c4d2d0774f800237634e5d0336f53c004fe3
2026-01-04T14:46:39.499027Z
false
binarywang/WxJava
https://github.com/binarywang/WxJava/blob/84b5c4d2d0774f800237634e5d0336f53c004fe3/weixin-java-channel/src/main/java/me/chanjar/weixin/channel/executor/ChannelFileUploadRequestExecutor.java
weixin-java-channel/src/main/java/me/chanjar/weixin/channel/executor/ChannelFileUploadRequestExecutor.java
package me.chanjar.weixin.channel.executor; import me.chanjar.weixin.common.util.http.RequestExecutor; import me.chanjar.weixin.common.util.http.RequestHttp; import java.io.File; /** * 视频号小店 图片上传接口 请求的参数是File, 返回的结果是String * * @author <a href="https://github.com/lixize">Zeyes</a> */ public abstract class ChannelFileUploadRequestExecutor<H, P> implements RequestExecutor<String, File> { protected RequestHttp<H, P> requestHttp; public ChannelFileUploadRequestExecutor(RequestHttp<H, P> requestHttp) { this.requestHttp = requestHttp; } @SuppressWarnings("unchecked") public static RequestExecutor<String, File> create(RequestHttp<?, ?> requestHttp) { switch (requestHttp.getRequestType()) { case APACHE_HTTP: return new ApacheHttpChannelFileUploadRequestExecutor( (RequestHttp<org.apache.http.impl.client.CloseableHttpClient, org.apache.http.HttpHost>) requestHttp); case HTTP_COMPONENTS: return new HttpComponentsChannelFileUploadRequestExecutor( (RequestHttp<org.apache.hc.client5.http.impl.classic.CloseableHttpClient, org.apache.hc.core5.http.HttpHost>) requestHttp); default: throw new IllegalArgumentException("不支持的http执行器类型:" + requestHttp.getRequestType()); } } }
java
Apache-2.0
84b5c4d2d0774f800237634e5d0336f53c004fe3
2026-01-04T14:46:39.499027Z
false
binarywang/WxJava
https://github.com/binarywang/WxJava/blob/84b5c4d2d0774f800237634e5d0336f53c004fe3/weixin-java-channel/src/main/java/me/chanjar/weixin/channel/executor/ApacheHttpChannelFileUploadRequestExecutor.java
weixin-java-channel/src/main/java/me/chanjar/weixin/channel/executor/ApacheHttpChannelFileUploadRequestExecutor.java
package me.chanjar.weixin.channel.executor; import me.chanjar.weixin.common.enums.WxType; import me.chanjar.weixin.common.error.WxErrorException; import me.chanjar.weixin.common.util.http.RequestHttp; import me.chanjar.weixin.common.util.http.ResponseHandler; import me.chanjar.weixin.common.util.http.apache.Utf8ResponseHandler; import org.apache.http.HttpEntity; import org.apache.http.HttpHost; import org.apache.http.client.config.RequestConfig; import org.apache.http.client.methods.HttpPost; import org.apache.http.entity.mime.HttpMultipartMode; import org.apache.http.entity.mime.MultipartEntityBuilder; import org.apache.http.impl.client.CloseableHttpClient; import java.io.File; import java.io.IOException; public class ApacheHttpChannelFileUploadRequestExecutor extends ChannelFileUploadRequestExecutor<CloseableHttpClient, HttpHost> { public ApacheHttpChannelFileUploadRequestExecutor(RequestHttp<CloseableHttpClient, HttpHost> requestHttp) { super(requestHttp); } @Override public String execute(String uri, File file, WxType wxType) throws WxErrorException, IOException { HttpPost httpPost = new HttpPost(uri); if (requestHttp.getRequestHttpProxy() != null) { RequestConfig config = RequestConfig.custom().setProxy(requestHttp.getRequestHttpProxy()).build(); httpPost.setConfig(config); } if (file != null) { HttpEntity entity = MultipartEntityBuilder .create() .addBinaryBody("media", file) .setMode(HttpMultipartMode.RFC6532) .build(); httpPost.setEntity(entity); } return requestHttp.getRequestHttpClient().execute(httpPost, Utf8ResponseHandler.INSTANCE); } @Override public void execute(String uri, File data, ResponseHandler<String> handler, WxType wxType) throws WxErrorException, IOException { handler.handle(this.execute(uri, data, wxType)); } }
java
Apache-2.0
84b5c4d2d0774f800237634e5d0336f53c004fe3
2026-01-04T14:46:39.499027Z
false
binarywang/WxJava
https://github.com/binarywang/WxJava/blob/84b5c4d2d0774f800237634e5d0336f53c004fe3/weixin-java-channel/src/main/java/me/chanjar/weixin/channel/executor/HttpComponentsChannelMediaDownloadRequestExecutor.java
weixin-java-channel/src/main/java/me/chanjar/weixin/channel/executor/HttpComponentsChannelMediaDownloadRequestExecutor.java
package me.chanjar.weixin.channel.executor; import me.chanjar.weixin.channel.bean.image.ChannelImageResponse; import me.chanjar.weixin.channel.util.JsonUtils; import me.chanjar.weixin.common.enums.WxType; import me.chanjar.weixin.common.error.WxErrorException; import me.chanjar.weixin.common.util.http.RequestHttp; import me.chanjar.weixin.common.util.http.ResponseHandler; import me.chanjar.weixin.common.util.http.hc.InputStreamResponseHandler; import me.chanjar.weixin.common.util.http.hc.Utf8ResponseHandler; import org.apache.commons.io.FilenameUtils; import org.apache.commons.lang3.StringUtils; import org.apache.hc.client5.http.ClientProtocolException; import org.apache.hc.client5.http.classic.methods.HttpGet; import org.apache.hc.client5.http.config.RequestConfig; import org.apache.hc.client5.http.impl.classic.CloseableHttpClient; import org.apache.hc.client5.http.impl.classic.CloseableHttpResponse; import org.apache.hc.core5.http.ContentType; import org.apache.hc.core5.http.Header; import org.apache.hc.core5.http.HttpException; import org.apache.hc.core5.http.HttpHost; import java.io.File; import java.io.IOException; import java.io.InputStream; public class HttpComponentsChannelMediaDownloadRequestExecutor extends ChannelMediaDownloadRequestExecutor<CloseableHttpClient, HttpHost> { public HttpComponentsChannelMediaDownloadRequestExecutor(RequestHttp<CloseableHttpClient, HttpHost> requestHttp, File tmpDirFile) { super(requestHttp, tmpDirFile); } @Override public ChannelImageResponse execute(String uri, String data, WxType wxType) throws WxErrorException, IOException { if (data != null) { if (uri.indexOf('?') == -1) { uri += '?'; } uri += uri.endsWith("?") ? data : '&' + data; } HttpGet httpGet = new HttpGet(uri); if (requestHttp.getRequestHttpProxy() != null) { RequestConfig config = RequestConfig.custom().setProxy(requestHttp.getRequestHttpProxy()).build(); httpGet.setConfig(config); } try (CloseableHttpResponse response = requestHttp.getRequestHttpClient().execute(httpGet); InputStream inputStream = InputStreamResponseHandler.INSTANCE.handleResponse(response)) { Header[] contentTypeHeader = response.getHeaders("Content-Type"); String contentType = null; if (contentTypeHeader != null && contentTypeHeader.length > 0) { contentType = contentTypeHeader[0].getValue(); if (contentType.startsWith(ContentType.APPLICATION_JSON.getMimeType())) { // application/json; encoding=utf-8 下载媒体文件出错 String responseContent = Utf8ResponseHandler.INSTANCE.handleResponse(response); return JsonUtils.decode(responseContent, ChannelImageResponse.class); } } String fileName = this.getFileName(response); if (StringUtils.isBlank(fileName)) { fileName = String.valueOf(System.currentTimeMillis()); } String baseName = FilenameUtils.getBaseName(fileName); if (StringUtils.isBlank(fileName) || baseName.length() < 3) { baseName = String.valueOf(System.currentTimeMillis()); } String extension = FilenameUtils.getExtension(fileName); if (StringUtils.isBlank(extension)) { extension = "unknown"; } File file = createTmpFile(inputStream, baseName, extension, tmpDirFile); return new ChannelImageResponse(file, contentType); } catch (HttpException httpException) { throw new ClientProtocolException(httpException.getMessage(), httpException); } } private String getFileName(CloseableHttpResponse response) throws WxErrorException { Header[] contentDispositionHeader = response.getHeaders("Content-disposition"); if (contentDispositionHeader == null || contentDispositionHeader.length == 0) { return createDefaultFileName(); } return this.extractFileNameFromContentString(contentDispositionHeader[0].getValue()); } @Override public void execute(String uri, String data, ResponseHandler<ChannelImageResponse> handler, WxType wxType) throws WxErrorException, IOException { handler.handle(this.execute(uri, data, wxType)); } }
java
Apache-2.0
84b5c4d2d0774f800237634e5d0336f53c004fe3
2026-01-04T14:46:39.499027Z
false
binarywang/WxJava
https://github.com/binarywang/WxJava/blob/84b5c4d2d0774f800237634e5d0336f53c004fe3/weixin-java-channel/src/main/java/me/chanjar/weixin/channel/executor/ChannelMediaDownloadRequestExecutor.java
weixin-java-channel/src/main/java/me/chanjar/weixin/channel/executor/ChannelMediaDownloadRequestExecutor.java
package me.chanjar.weixin.channel.executor; import me.chanjar.weixin.channel.bean.image.ChannelImageResponse; import me.chanjar.weixin.common.util.http.RequestExecutor; import me.chanjar.weixin.common.util.http.RequestHttp; import org.apache.commons.io.IOUtils; import java.io.File; import java.io.IOException; import java.io.InputStream; import java.io.OutputStream; import java.util.UUID; import java.util.regex.Matcher; import java.util.regex.Pattern; import static org.apache.commons.io.FileUtils.openOutputStream; /** * 下载媒体文件请求执行器 * * @author <a href="https://github.com/lixize">Zeyes</a> */ public abstract class ChannelMediaDownloadRequestExecutor<H, P> implements RequestExecutor<ChannelImageResponse, String> { protected RequestHttp<H, P> requestHttp; protected File tmpDirFile; private static final Pattern PATTERN = Pattern.compile(".*filename=\"(.*)\""); public ChannelMediaDownloadRequestExecutor(RequestHttp<H, P> requestHttp, File tmpDirFile) { this.requestHttp = requestHttp; this.tmpDirFile = tmpDirFile; } @SuppressWarnings("unchecked") public static RequestExecutor<ChannelImageResponse, String> create(RequestHttp<?, ?> requestHttp, File tmpDirFile) { switch (requestHttp.getRequestType()) { case APACHE_HTTP: return new ApacheHttpChannelMediaDownloadRequestExecutor( (RequestHttp<org.apache.http.impl.client.CloseableHttpClient, org.apache.http.HttpHost>) requestHttp, tmpDirFile); case HTTP_COMPONENTS: return new HttpComponentsChannelMediaDownloadRequestExecutor( (RequestHttp<org.apache.hc.client5.http.impl.classic.CloseableHttpClient, org.apache.hc.core5.http.HttpHost>) requestHttp, tmpDirFile); default: throw new IllegalArgumentException("不支持的http执行器类型:" + requestHttp.getRequestType()); } } /** * 创建临时文件 * * @param inputStream 输入文件流 * @param name 文件名 * @param ext 扩展名 * @param tmpDirFile 临时文件夹目录 */ public static File createTmpFile(InputStream inputStream, String name, String ext, File tmpDirFile) throws IOException { File resultFile = File.createTempFile(name, '.' + ext, tmpDirFile); resultFile.deleteOnExit(); try (InputStream in = inputStream; OutputStream out = openOutputStream(resultFile)) { IOUtils.copy(in, out); } return resultFile; } protected String createDefaultFileName() { return UUID.randomUUID().toString(); } protected String extractFileNameFromContentString(String content) { if (content == null || content.isEmpty()) { return createDefaultFileName(); } Matcher m = PATTERN.matcher(content); if (m.matches()) { return m.group(1); } return createDefaultFileName(); } }
java
Apache-2.0
84b5c4d2d0774f800237634e5d0336f53c004fe3
2026-01-04T14:46:39.499027Z
false
binarywang/WxJava
https://github.com/binarywang/WxJava/blob/84b5c4d2d0774f800237634e5d0336f53c004fe3/weixin-java-channel/src/main/java/me/chanjar/weixin/channel/bean/lead/component/response/GetFinderLiveLeadsDataResponse.java
weixin-java-channel/src/main/java/me/chanjar/weixin/channel/bean/lead/component/response/GetFinderLiveLeadsDataResponse.java
package me.chanjar.weixin.channel.bean.lead.component.response; import com.fasterxml.jackson.annotation.JsonProperty; import lombok.Data; import lombok.EqualsAndHashCode; import lombok.NoArgsConstructor; import me.chanjar.weixin.channel.bean.base.WxChannelBaseResponse; import java.util.List; /** * 获取账号收集的留资数据详情 * @author imyzt * @date 2024/01/27 */ @Data @NoArgsConstructor @EqualsAndHashCode(callSuper = true) public class GetFinderLiveLeadsDataResponse extends WxChannelBaseResponse { /** * 留资统计信息列表 */ @JsonProperty("item") private List<LeadCountItem> items; /** * 留资统计信息 */ @Data @NoArgsConstructor public static class LeadCountItem { /** * 组件类型 * 0 表单 * 1 企微名片 * 2 企微客服 */ @JsonProperty("component_type") private int componentType; /** * 流量来源 * 0 自然流量 * 1 广告流量 */ @JsonProperty("traffic_type") private int trafficType; /** * 留资条数 */ @JsonProperty("leads_count") private int leadsCount; } }
java
Apache-2.0
84b5c4d2d0774f800237634e5d0336f53c004fe3
2026-01-04T14:46:39.499027Z
false
binarywang/WxJava
https://github.com/binarywang/WxJava/blob/84b5c4d2d0774f800237634e5d0336f53c004fe3/weixin-java-channel/src/main/java/me/chanjar/weixin/channel/bean/lead/component/response/GetLeadsRequestIdResponse.java
weixin-java-channel/src/main/java/me/chanjar/weixin/channel/bean/lead/component/response/GetLeadsRequestIdResponse.java
package me.chanjar.weixin.channel.bean.lead.component.response; import com.fasterxml.jackson.annotation.JsonProperty; import lombok.Data; import lombok.EqualsAndHashCode; import lombok.NoArgsConstructor; import me.chanjar.weixin.channel.bean.base.WxChannelBaseResponse; import java.util.List; /** * 获取留资request_id列表详情 * @author imyzt * @date 2024/01/27 */ @Data @NoArgsConstructor @EqualsAndHashCode(callSuper = true) public class GetLeadsRequestIdResponse extends WxChannelBaseResponse { /** * 某一场直播对应的留资信息请求id */ @JsonProperty("item") private List<LiveLeadItem> items; /** * 本次翻页的上下文,用于顺序翻页请求 */ @JsonProperty("last_buffer") private String lastBuffer; /** * 是否还有留资信息 */ @JsonProperty("continue_flag") private boolean continueFlag; /** * 直播对应的留资信息 */ @Data @NoArgsConstructor public static class LiveLeadItem { /** * 某一场直播对应的留资信息请求id */ @JsonProperty("request_id") private String requestId; /** * 直播开始时间 */ @JsonProperty("live_start_time") private Long liveStartTime; /** * 直播描述 */ @JsonProperty("live_description") private String liveDescription; } }
java
Apache-2.0
84b5c4d2d0774f800237634e5d0336f53c004fe3
2026-01-04T14:46:39.499027Z
false
binarywang/WxJava
https://github.com/binarywang/WxJava/blob/84b5c4d2d0774f800237634e5d0336f53c004fe3/weixin-java-channel/src/main/java/me/chanjar/weixin/channel/bean/lead/component/response/GetLeadsComponentIdResponse.java
weixin-java-channel/src/main/java/me/chanjar/weixin/channel/bean/lead/component/response/GetLeadsComponentIdResponse.java
package me.chanjar.weixin.channel.bean.lead.component.response; import com.fasterxml.jackson.annotation.JsonProperty; import lombok.Data; import lombok.EqualsAndHashCode; import lombok.NoArgsConstructor; import me.chanjar.weixin.channel.bean.base.WxChannelBaseResponse; import java.util.List; /** * 留资组件Id列表详情 * @author imyzt * @date 2024/01/27 */ @Data @NoArgsConstructor @EqualsAndHashCode(callSuper = true) public class GetLeadsComponentIdResponse extends WxChannelBaseResponse { /** * 留资组件信息 */ @JsonProperty("item") private List<LeadComponentItem> item; /** * 本次翻页的上下文,用于顺序翻页请求 */ @JsonProperty("last_buffer") private String lastBuffer; /** * 是否还有留资信息 */ @JsonProperty("continue_flag") private boolean continueFlag; /** * 留资组件信息 */ @Data @NoArgsConstructor public static class LeadComponentItem { /** * 留资组件id */ @JsonProperty("leads_component_id") private String leadsComponentId; /** * 留资组件标题 */ @JsonProperty("leads_description") private String leadsDescription; /** * 留资组件状态码 */ @JsonProperty("status") private int status; } }
java
Apache-2.0
84b5c4d2d0774f800237634e5d0336f53c004fe3
2026-01-04T14:46:39.499027Z
false
binarywang/WxJava
https://github.com/binarywang/WxJava/blob/84b5c4d2d0774f800237634e5d0336f53c004fe3/weixin-java-channel/src/main/java/me/chanjar/weixin/channel/bean/lead/component/response/GetFinderLiveDataListResponse.java
weixin-java-channel/src/main/java/me/chanjar/weixin/channel/bean/lead/component/response/GetFinderLiveDataListResponse.java
package me.chanjar.weixin.channel.bean.lead.component.response; import com.fasterxml.jackson.annotation.JsonProperty; import lombok.Data; import lombok.EqualsAndHashCode; import lombok.NoArgsConstructor; import me.chanjar.weixin.channel.bean.base.WxChannelBaseResponse; import java.util.List; /** * 留资直播间数据详情 * @author imyzt * @date 2024/01/27 */ @Data @NoArgsConstructor @EqualsAndHashCode(callSuper = true) public class GetFinderLiveDataListResponse extends WxChannelBaseResponse { /** * 直播统计信息列表 */ @JsonProperty("item") private List<LiveStatisticsItem> items; /** * 本次翻页的上下文,用于顺序翻页请求 */ @JsonProperty("last_buffer") private String lastBuffer; /** * 是否还有直播 */ @JsonProperty("continue_flag") private boolean continueFlag; /** * 直播统计信息 */ @Data @NoArgsConstructor public static class LiveStatisticsItem { /** * 直播唯一id */ @JsonProperty("export_id") private String exportId; /** * 开播时间戳 */ @JsonProperty("live_start_time") private Long liveStartTime; /** * 直播时长 */ @JsonProperty("live_duration_in_seconds") private Long liveDurationInSeconds; /** * 观看人数 */ @JsonProperty("total_audience_count") private Long totalAudienceCount; /** * 喝彩次数 */ @JsonProperty("total_cheer_count") private Long totalCheerCount; /** * 分享次数 */ @JsonProperty("forward_count") private Long forwardCount; /** * 评论条数 */ @JsonProperty("total_comment_count") private Long totalCommentCount; /** * 人均观看时长 */ @JsonProperty("audiences_avg_seconds") private Long audiencesAvgSeconds; /** * 最高在线人数 */ @JsonProperty("max_online_count") private Long maxOnlineCount; /** * 新增粉丝 */ @JsonProperty("new_follow_count") private Long newFollowCount; /** * 公众号新增粉丝 */ @JsonProperty("new_follow_count_biz") private Long newFollowCountBiz; } }
java
Apache-2.0
84b5c4d2d0774f800237634e5d0336f53c004fe3
2026-01-04T14:46:39.499027Z
false
binarywang/WxJava
https://github.com/binarywang/WxJava/blob/84b5c4d2d0774f800237634e5d0336f53c004fe3/weixin-java-channel/src/main/java/me/chanjar/weixin/channel/bean/lead/component/response/GetLeadsComponentPromoteRecordResponse.java
weixin-java-channel/src/main/java/me/chanjar/weixin/channel/bean/lead/component/response/GetLeadsComponentPromoteRecordResponse.java
package me.chanjar.weixin.channel.bean.lead.component.response; import com.fasterxml.jackson.annotation.JsonProperty; import lombok.Data; import lombok.EqualsAndHashCode; import lombok.NoArgsConstructor; import me.chanjar.weixin.channel.bean.base.WxChannelBaseResponse; import java.util.List; /** * 获取留资组件直播推广记录信息详情 * @author imyzt * @date 2024/01/27 */ @Data @NoArgsConstructor @EqualsAndHashCode(callSuper = true) public class GetLeadsComponentPromoteRecordResponse extends WxChannelBaseResponse { /** * 留资组件直播推广记录列表 */ @JsonProperty("record_data") private List<RecordData> recordData; /** * 本次翻页的上下文,用于顺序翻页请求 */ @JsonProperty("last_buffer") private String lastBuffer; /** * 是否还有留资信息 */ @JsonProperty("continue_flag") private boolean continueFlag; /** * 留资组件直播推广记录列表 */ @Data @NoArgsConstructor public static class RecordData { @JsonProperty("anchor_nickname") private String anchorNickname; @JsonProperty("live_description") private String liveDescription; @JsonProperty("live_start_time") private long liveStartTime; @JsonProperty("live_audience_count") private String liveAudienceCount; @JsonProperty("exposure_uv") private String exposureUV; @JsonProperty("click_uv") private String clickUV; @JsonProperty("exposure_click_rate") private double exposureClickRate; @JsonProperty("leads_num") private String leadsNum; } }
java
Apache-2.0
84b5c4d2d0774f800237634e5d0336f53c004fe3
2026-01-04T14:46:39.499027Z
false
binarywang/WxJava
https://github.com/binarywang/WxJava/blob/84b5c4d2d0774f800237634e5d0336f53c004fe3/weixin-java-channel/src/main/java/me/chanjar/weixin/channel/bean/lead/component/response/LeadInfoResponse.java
weixin-java-channel/src/main/java/me/chanjar/weixin/channel/bean/lead/component/response/LeadInfoResponse.java
package me.chanjar.weixin.channel.bean.lead.component.response; import com.fasterxml.jackson.annotation.JsonProperty; import lombok.Data; import lombok.EqualsAndHashCode; import lombok.NoArgsConstructor; import me.chanjar.weixin.channel.bean.base.WxChannelBaseResponse; import java.util.List; /** * 留资信息详情 * @author imyzt * @date 2024/01/27 */ @Data @NoArgsConstructor @EqualsAndHashCode(callSuper = true) public class LeadInfoResponse extends WxChannelBaseResponse { /** * 用户留资信息列表 */ @JsonProperty("user_data") private List<UserData> userData; /** * 本次翻页的上下文,用于顺序翻页请求 */ @JsonProperty("last_buffer") private String lastBuffer; /** * 是否还有留资信息 */ @JsonProperty("continue_flag") private boolean continueFlag; /** * 用户留资信息 */ @Data @NoArgsConstructor public static class UserData { /** * 主播昵称 */ @JsonProperty("anchor_nickname") private String anchorNickname; /** * 直播开始时间 */ @JsonProperty("live_start_time") private Long liveStartTime; /** * 用户留资信息列表 */ @JsonProperty("leads_data") private List<LeadsData> leadsData; /** * 用户留资时间 */ @JsonProperty("time") private Long time; } @Data @NoArgsConstructor public static class LeadsData { /** * 表单名称 */ @JsonProperty("title") private String title; /** * 手机号,文本框,单选框时, 均为字符串 * 仅当title=城市 时, 微信返回字符串数组, eg: ["北京市","北京市","东城区"] */ @JsonProperty("value") private Object value; } }
java
Apache-2.0
84b5c4d2d0774f800237634e5d0336f53c004fe3
2026-01-04T14:46:39.499027Z
false
binarywang/WxJava
https://github.com/binarywang/WxJava/blob/84b5c4d2d0774f800237634e5d0336f53c004fe3/weixin-java-channel/src/main/java/me/chanjar/weixin/channel/bean/lead/component/response/FinderAttrResponse.java
weixin-java-channel/src/main/java/me/chanjar/weixin/channel/bean/lead/component/response/FinderAttrResponse.java
package me.chanjar.weixin.channel.bean.lead.component.response; import com.fasterxml.jackson.annotation.JsonProperty; import lombok.Data; import lombok.EqualsAndHashCode; import lombok.NoArgsConstructor; import me.chanjar.weixin.channel.bean.base.WxChannelBaseResponse; /** * 视频号账号信息 * @author imyzt * @date 2024/01/27 */ @Data @NoArgsConstructor @EqualsAndHashCode(callSuper = true) public class FinderAttrResponse extends WxChannelBaseResponse { /** * 用户留资信息列表 */ @JsonProperty("finder_attr") private FinderAttr finderAttr; /** * 用户留资信息 */ @Data @NoArgsConstructor public static class FinderAttr { /** * 视频号唯一标识 */ @JsonProperty("uniq_id") private String uniqId; /** * 视频号昵称 */ @JsonProperty("nickname") private String nickname; /** * 视频号的粉丝数 */ @JsonProperty("fans_count") private int fansCount; } }
java
Apache-2.0
84b5c4d2d0774f800237634e5d0336f53c004fe3
2026-01-04T14:46:39.499027Z
false
binarywang/WxJava
https://github.com/binarywang/WxJava/blob/84b5c4d2d0774f800237634e5d0336f53c004fe3/weixin-java-channel/src/main/java/me/chanjar/weixin/channel/bean/lead/component/request/GetLeadsRequestIdRequest.java
weixin-java-channel/src/main/java/me/chanjar/weixin/channel/bean/lead/component/request/GetLeadsRequestIdRequest.java
package me.chanjar.weixin.channel.bean.lead.component.request; import com.fasterxml.jackson.annotation.JsonInclude; import com.fasterxml.jackson.annotation.JsonProperty; import lombok.AllArgsConstructor; import lombok.Data; import lombok.NoArgsConstructor; /** * 获取留资request_id列表详情 * @author imyzt * @date 2024/01/27 */ @Data @NoArgsConstructor @AllArgsConstructor @JsonInclude(JsonInclude.Include.NON_NULL) public class GetLeadsRequestIdRequest { /** * 用于查询某个留资组件某段时间内收集的留资信息 */ @JsonProperty("leads_component_id") private String leadsComponentId; /** * 顺序翻页,传入上次请求返回的last_buffer, 会从上次返回的结果往后翻一页 */ @JsonProperty("last_buffer") private String lastBuffer; }
java
Apache-2.0
84b5c4d2d0774f800237634e5d0336f53c004fe3
2026-01-04T14:46:39.499027Z
false
binarywang/WxJava
https://github.com/binarywang/WxJava/blob/84b5c4d2d0774f800237634e5d0336f53c004fe3/weixin-java-channel/src/main/java/me/chanjar/weixin/channel/bean/lead/component/request/GetFinderLiveDataListRequest.java
weixin-java-channel/src/main/java/me/chanjar/weixin/channel/bean/lead/component/request/GetFinderLiveDataListRequest.java
package me.chanjar.weixin.channel.bean.lead.component.request; import com.fasterxml.jackson.annotation.JsonInclude; import com.fasterxml.jackson.annotation.JsonProperty; import lombok.AllArgsConstructor; import lombok.Data; import lombok.NoArgsConstructor; /** * 留资直播间数据详情 * @author imyzt * @date 2024/01/27 */ @Data @NoArgsConstructor @AllArgsConstructor @JsonInclude(JsonInclude.Include.NON_NULL) public class GetFinderLiveDataListRequest { /** * 开始时间 */ @JsonProperty("start_time") private Long startTime; /** * 结束时间 */ @JsonProperty("end_time") private Long endTime; /** * 顺序翻页,传入上次请求返回的last_buffer, 会从上次返回的结果往后翻一页 */ @JsonProperty("last_buffer") private String lastBuffer; }
java
Apache-2.0
84b5c4d2d0774f800237634e5d0336f53c004fe3
2026-01-04T14:46:39.499027Z
false
binarywang/WxJava
https://github.com/binarywang/WxJava/blob/84b5c4d2d0774f800237634e5d0336f53c004fe3/weixin-java-channel/src/main/java/me/chanjar/weixin/channel/bean/lead/component/request/GetLeadsComponentPromoteRecordRequest.java
weixin-java-channel/src/main/java/me/chanjar/weixin/channel/bean/lead/component/request/GetLeadsComponentPromoteRecordRequest.java
package me.chanjar.weixin.channel.bean.lead.component.request; import com.fasterxml.jackson.annotation.JsonInclude; import com.fasterxml.jackson.annotation.JsonProperty; import lombok.AllArgsConstructor; import lombok.Data; import lombok.NoArgsConstructor; /** * 获取留资组件直播推广记录信息详情 * @author imyzt * @date 2024/01/27 */ @Data @NoArgsConstructor @AllArgsConstructor @JsonInclude(JsonInclude.Include.NON_NULL) public class GetLeadsComponentPromoteRecordRequest { /** * 用于查询某个留资组件某段时间内收集的留资信息 */ @JsonProperty("leads_component_id") private String leadsComponentId; /** * 开始时间 */ @JsonProperty("start_time") private Long startTime; /** * 结束时间 */ @JsonProperty("end_time") private Long endTime; /** * 顺序翻页,传入上次请求返回的last_buffer, 会从上次返回的结果往后翻一页 */ @JsonProperty("last_buffer") private String lastBuffer; }
java
Apache-2.0
84b5c4d2d0774f800237634e5d0336f53c004fe3
2026-01-04T14:46:39.499027Z
false
binarywang/WxJava
https://github.com/binarywang/WxJava/blob/84b5c4d2d0774f800237634e5d0336f53c004fe3/weixin-java-channel/src/main/java/me/chanjar/weixin/channel/bean/lead/component/request/GetLeadsInfoByRequestIdRequest.java
weixin-java-channel/src/main/java/me/chanjar/weixin/channel/bean/lead/component/request/GetLeadsInfoByRequestIdRequest.java
package me.chanjar.weixin.channel.bean.lead.component.request; import com.fasterxml.jackson.annotation.JsonInclude; import com.fasterxml.jackson.annotation.JsonProperty; import lombok.AllArgsConstructor; import lombok.Data; import lombok.NoArgsConstructor; /** * 按直播场次获取留资信息详情 * @author imyzt * @date 2024/01/27 */ @Data @NoArgsConstructor @AllArgsConstructor @JsonInclude(JsonInclude.Include.NON_NULL) public class GetLeadsInfoByRequestIdRequest { /** * 用于查询某个留资组件某场直播收集的留资信息 */ @JsonProperty("request_id") private String requestId; /** * 顺序翻页,传入上次请求返回的last_buffer, 会从上次返回的结果往后翻一页 */ @JsonProperty("last_buffer") private String lastBuffer; /** * 接口版本号,默认=1 * =null和=1,微信返回的结构不一样,=1信息更全 */ @JsonProperty("version") private Integer version; }
java
Apache-2.0
84b5c4d2d0774f800237634e5d0336f53c004fe3
2026-01-04T14:46:39.499027Z
false
binarywang/WxJava
https://github.com/binarywang/WxJava/blob/84b5c4d2d0774f800237634e5d0336f53c004fe3/weixin-java-channel/src/main/java/me/chanjar/weixin/channel/bean/lead/component/request/GetFinderLiveLeadsDataRequest.java
weixin-java-channel/src/main/java/me/chanjar/weixin/channel/bean/lead/component/request/GetFinderLiveLeadsDataRequest.java
package me.chanjar.weixin.channel.bean.lead.component.request; import com.fasterxml.jackson.annotation.JsonInclude; import com.fasterxml.jackson.annotation.JsonProperty; import lombok.AllArgsConstructor; import lombok.Data; import lombok.NoArgsConstructor; /** * 获取账号收集的留资数据详情 * @author imyzt * @date 2024/01/27 */ @Data @NoArgsConstructor @AllArgsConstructor @JsonInclude(JsonInclude.Include.NON_NULL) public class GetFinderLiveLeadsDataRequest { /** * 开始时间 */ @JsonProperty("start_time") private Long startTime; /** * 结束时间 */ @JsonProperty("end_time") private Long endTime; /** * 来源类型 * source_type 来源类型 0 直播 */ @JsonProperty("source_type") private Long sourceType; }
java
Apache-2.0
84b5c4d2d0774f800237634e5d0336f53c004fe3
2026-01-04T14:46:39.499027Z
false
binarywang/WxJava
https://github.com/binarywang/WxJava/blob/84b5c4d2d0774f800237634e5d0336f53c004fe3/weixin-java-channel/src/main/java/me/chanjar/weixin/channel/bean/lead/component/request/GetLeadInfoByComponentRequest.java
weixin-java-channel/src/main/java/me/chanjar/weixin/channel/bean/lead/component/request/GetLeadInfoByComponentRequest.java
package me.chanjar.weixin.channel.bean.lead.component.request; import com.fasterxml.jackson.annotation.JsonInclude; import com.fasterxml.jackson.annotation.JsonProperty; import lombok.AllArgsConstructor; import lombok.Data; import lombok.NoArgsConstructor; /** * 按时间获取留资信息详情 * @author imyzt * @date 2024/01/27 */ @Data @NoArgsConstructor @AllArgsConstructor @JsonInclude(JsonInclude.Include.NON_NULL) public class GetLeadInfoByComponentRequest { /** * 用于查询某个留资组件某段时间内收集的留资信息 */ @JsonProperty("leads_component_id") private String leadsComponentId; /** * 开始时间 */ @JsonProperty("start_time") private Long startTime; /** * 结束时间 */ @JsonProperty("end_time") private Long endTime; /** * 顺序翻页,传入上次请求返回的last_buffer, 会从上次返回的结果往后翻一页 */ @JsonProperty("last_buffer") private String lastBuffer; /** * 接口版本号,默认=1 * =null和=1,微信返回的结构不一样,=1信息更全 */ @JsonProperty("version") private Integer version; }
java
Apache-2.0
84b5c4d2d0774f800237634e5d0336f53c004fe3
2026-01-04T14:46:39.499027Z
false
binarywang/WxJava
https://github.com/binarywang/WxJava/blob/84b5c4d2d0774f800237634e5d0336f53c004fe3/weixin-java-channel/src/main/java/me/chanjar/weixin/channel/bean/lead/component/request/GetLeadsComponentIdRequest.java
weixin-java-channel/src/main/java/me/chanjar/weixin/channel/bean/lead/component/request/GetLeadsComponentIdRequest.java
package me.chanjar.weixin.channel.bean.lead.component.request; import com.fasterxml.jackson.annotation.JsonInclude; import com.fasterxml.jackson.annotation.JsonProperty; import lombok.AllArgsConstructor; import lombok.Data; import lombok.NoArgsConstructor; /** * 获取留资组件Id列表详情 * @author imyzt * @date 2024/01/27 */ @Data @NoArgsConstructor @AllArgsConstructor @JsonInclude(JsonInclude.Include.NON_NULL) public class GetLeadsComponentIdRequest { /** * 顺序翻页,传入上次请求返回的last_buffer, 会从上次返回的结果往后翻一页 */ @JsonProperty("last_buffer") private String lastBuffer; }
java
Apache-2.0
84b5c4d2d0774f800237634e5d0336f53c004fe3
2026-01-04T14:46:39.499027Z
false
binarywang/WxJava
https://github.com/binarywang/WxJava/blob/84b5c4d2d0774f800237634e5d0336f53c004fe3/weixin-java-channel/src/main/java/me/chanjar/weixin/channel/bean/fund/FundsListParam.java
weixin-java-channel/src/main/java/me/chanjar/weixin/channel/bean/fund/FundsListParam.java
package me.chanjar.weixin.channel.bean.fund; import com.fasterxml.jackson.annotation.JsonProperty; import java.io.Serializable; import lombok.Data; import lombok.NoArgsConstructor; /** * 资金流水参数 * * @author <a href="https://github.com/lixize">Zeyes</a> */ @Data @NoArgsConstructor public class FundsListParam implements Serializable { private static final long serialVersionUID = 2998955690332382229L; /** 页码,从1开始 */ @JsonProperty("page") private Integer page; /** 页数,不填默认为10 */ @JsonProperty("page_size") protected Integer pageSize; /** 流水产生的开始时间,uinx时间戳 */ @JsonProperty("start_time") private Long startTime; /** 流水产生的结束时间,unix时间戳 */ @JsonProperty("end_time") private Long endTime; /** 流水类型, 1 收入,2 支出 */ @JsonProperty("flow_type") private Integer flowType; /** 关联支付单号 */ @JsonProperty("transaction_id") private String transactionId; /** * 分页参数,翻页时写入上一页返回的next_key(page为上一页加一, 并且page_size与上一页相同的时候才生效),page * page_size >= 10000时必填 */ @JsonProperty("next_key") private String nextKey; }
java
Apache-2.0
84b5c4d2d0774f800237634e5d0336f53c004fe3
2026-01-04T14:46:39.499027Z
false
binarywang/WxJava
https://github.com/binarywang/WxJava/blob/84b5c4d2d0774f800237634e5d0336f53c004fe3/weixin-java-channel/src/main/java/me/chanjar/weixin/channel/bean/fund/AccountInfoParam.java
weixin-java-channel/src/main/java/me/chanjar/weixin/channel/bean/fund/AccountInfoParam.java
package me.chanjar.weixin.channel.bean.fund; import com.fasterxml.jackson.annotation.JsonInclude; import com.fasterxml.jackson.annotation.JsonProperty; import java.io.Serializable; import lombok.AllArgsConstructor; import lombok.Data; import lombok.NoArgsConstructor; /** * 账户信息 * * @author <a href="https://github.com/lixize">Zeyes</a> */ @Data @NoArgsConstructor @AllArgsConstructor @JsonInclude(JsonInclude.Include.NON_NULL) public class AccountInfoParam implements Serializable { private static final long serialVersionUID = 1689204583402779134L; @JsonProperty("account_info") private AccountInfo accountInfo; }
java
Apache-2.0
84b5c4d2d0774f800237634e5d0336f53c004fe3
2026-01-04T14:46:39.499027Z
false
binarywang/WxJava
https://github.com/binarywang/WxJava/blob/84b5c4d2d0774f800237634e5d0336f53c004fe3/weixin-java-channel/src/main/java/me/chanjar/weixin/channel/bean/fund/FlowRelatedInfo.java
weixin-java-channel/src/main/java/me/chanjar/weixin/channel/bean/fund/FlowRelatedInfo.java
package me.chanjar.weixin.channel.bean.fund; import com.fasterxml.jackson.annotation.JsonProperty; import java.io.Serializable; import lombok.Data; import lombok.NoArgsConstructor; /** * 流水关联信息 * * @author <a href="https://github.com/lixize">Zeyes</a> */ @Data @NoArgsConstructor public class FlowRelatedInfo implements Serializable { private static final long serialVersionUID = 3757839018198212504L; /** 关联类型, 1 订单, 2售后,3 提现,4 运费险 */ @JsonProperty("related_type") private Integer relatedType; /** 关联订单号 */ @JsonProperty("order_id") private String orderId; /** 关联售后单号 */ @JsonProperty("aftersale_id") private String afterSaleId; /** 关联提现单号 */ @JsonProperty("withdraw_id") private String withdrawId; /** 记账时间 */ @JsonProperty("bookkeeping_time") private String bookkeepingTime; /** 关联运费险单号 */ @JsonProperty("insurance_id") private String insuranceId; /** 关联支付单号 */ @JsonProperty("transaction_id") private String transactionId; }
java
Apache-2.0
84b5c4d2d0774f800237634e5d0336f53c004fe3
2026-01-04T14:46:39.499027Z
false
binarywang/WxJava
https://github.com/binarywang/WxJava/blob/84b5c4d2d0774f800237634e5d0336f53c004fe3/weixin-java-channel/src/main/java/me/chanjar/weixin/channel/bean/fund/FlowListResponse.java
weixin-java-channel/src/main/java/me/chanjar/weixin/channel/bean/fund/FlowListResponse.java
package me.chanjar.weixin.channel.bean.fund; import com.fasterxml.jackson.annotation.JsonProperty; import java.util.List; import lombok.Data; import lombok.NoArgsConstructor; import me.chanjar.weixin.channel.bean.base.WxChannelBaseResponse; /** * 流水列表响应 * * @author <a href="https://github.com/lixize">Zeyes</a> */ @Data @NoArgsConstructor public class FlowListResponse extends WxChannelBaseResponse { private static final long serialVersionUID = 8017827444308973489L; /** 流水单号列表 */ @JsonProperty("flow_ids") private List<String> flowIds; /** 是否还有下一页 */ @JsonProperty("has_more") private boolean hasMore; /** 分页参数,深翻页时使用 */ @JsonProperty("next_key") private String nextKey; }
java
Apache-2.0
84b5c4d2d0774f800237634e5d0336f53c004fe3
2026-01-04T14:46:39.499027Z
false
binarywang/WxJava
https://github.com/binarywang/WxJava/blob/84b5c4d2d0774f800237634e5d0336f53c004fe3/weixin-java-channel/src/main/java/me/chanjar/weixin/channel/bean/fund/WithdrawSubmitParam.java
weixin-java-channel/src/main/java/me/chanjar/weixin/channel/bean/fund/WithdrawSubmitParam.java
package me.chanjar.weixin.channel.bean.fund; import com.fasterxml.jackson.annotation.JsonProperty; import java.io.Serializable; import lombok.AllArgsConstructor; import lombok.Data; import lombok.NoArgsConstructor; /** * 提现提交参数 * * @author <a href="https://github.com/lixize">Zeyes</a> */ @Data @NoArgsConstructor @AllArgsConstructor public class WithdrawSubmitParam implements Serializable { private static final long serialVersionUID = 5801338663530567830L; /** 提现金额(单位:分) */ @JsonProperty("amount") private Integer amount; /** 提现备注 */ @JsonProperty("remark") private String remark; /** 银行附言 */ @JsonProperty("bank_memo") private String bankMemo; }
java
Apache-2.0
84b5c4d2d0774f800237634e5d0336f53c004fe3
2026-01-04T14:46:39.499027Z
false
binarywang/WxJava
https://github.com/binarywang/WxJava/blob/84b5c4d2d0774f800237634e5d0336f53c004fe3/weixin-java-channel/src/main/java/me/chanjar/weixin/channel/bean/fund/AccountInfoResponse.java
weixin-java-channel/src/main/java/me/chanjar/weixin/channel/bean/fund/AccountInfoResponse.java
package me.chanjar.weixin.channel.bean.fund; import com.fasterxml.jackson.annotation.JsonProperty; import lombok.Data; import lombok.NoArgsConstructor; import me.chanjar.weixin.channel.bean.base.WxChannelBaseResponse; /** * 账户信息响应 * * @author <a href="https://github.com/lixize">Zeyes</a> */ @Data @NoArgsConstructor public class AccountInfoResponse extends WxChannelBaseResponse { private static final long serialVersionUID = -8316068503468969533L; /** 账户信息 */ @JsonProperty("account_info") private AccountInfo accountInfo; }
java
Apache-2.0
84b5c4d2d0774f800237634e5d0336f53c004fe3
2026-01-04T14:46:39.499027Z
false
binarywang/WxJava
https://github.com/binarywang/WxJava/blob/84b5c4d2d0774f800237634e5d0336f53c004fe3/weixin-java-channel/src/main/java/me/chanjar/weixin/channel/bean/fund/FundsFlowResponse.java
weixin-java-channel/src/main/java/me/chanjar/weixin/channel/bean/fund/FundsFlowResponse.java
package me.chanjar.weixin.channel.bean.fund; import com.fasterxml.jackson.annotation.JsonProperty; import lombok.Data; import lombok.EqualsAndHashCode; import lombok.NoArgsConstructor; import me.chanjar.weixin.channel.bean.base.WxChannelBaseResponse; /** * 资金流水响应 * * @author <a href="https://github.com/lixize">Zeyes</a> */ @Data @NoArgsConstructor @EqualsAndHashCode(callSuper = true) public class FundsFlowResponse extends WxChannelBaseResponse { private static final long serialVersionUID = -1130785908352355914L; /** 流水信息 */ @JsonProperty("funds_flow") private FundsFlow fundsFlow; }
java
Apache-2.0
84b5c4d2d0774f800237634e5d0336f53c004fe3
2026-01-04T14:46:39.499027Z
false
binarywang/WxJava
https://github.com/binarywang/WxJava/blob/84b5c4d2d0774f800237634e5d0336f53c004fe3/weixin-java-channel/src/main/java/me/chanjar/weixin/channel/bean/fund/WithdrawListResponse.java
weixin-java-channel/src/main/java/me/chanjar/weixin/channel/bean/fund/WithdrawListResponse.java
package me.chanjar.weixin.channel.bean.fund; import com.fasterxml.jackson.annotation.JsonProperty; import java.util.List; import lombok.Data; import lombok.NoArgsConstructor; import me.chanjar.weixin.channel.bean.base.WxChannelBaseResponse; /** * 提现列表响应 * * @author <a href="https://github.com/lixize">Zeyes</a> */ @Data @NoArgsConstructor public class WithdrawListResponse extends WxChannelBaseResponse { private static final long serialVersionUID = -7950467108750325235L; /** 提现单号列表 */ @JsonProperty("withdraw_ids") private List<String> withdrawIds; }
java
Apache-2.0
84b5c4d2d0774f800237634e5d0336f53c004fe3
2026-01-04T14:46:39.499027Z
false
binarywang/WxJava
https://github.com/binarywang/WxJava/blob/84b5c4d2d0774f800237634e5d0336f53c004fe3/weixin-java-channel/src/main/java/me/chanjar/weixin/channel/bean/fund/BalanceInfoResponse.java
weixin-java-channel/src/main/java/me/chanjar/weixin/channel/bean/fund/BalanceInfoResponse.java
package me.chanjar.weixin.channel.bean.fund; import com.fasterxml.jackson.annotation.JsonProperty; import lombok.Data; import lombok.NoArgsConstructor; import me.chanjar.weixin.channel.bean.base.WxChannelBaseResponse; /** * 账户余额信息 * * @author <a href="https://github.com/lixize">Zeyes</a> */ @Data @NoArgsConstructor public class BalanceInfoResponse extends WxChannelBaseResponse { private static final long serialVersionUID = 4480496860612566921L; /** 可提现余额 */ @JsonProperty("available_amount") private Integer availableAmount; /** 待结算余额 */ @JsonProperty("pending_amount") private Integer pendingAmount; /** 二级商户号 */ @JsonProperty("sub_mchid") private String subMchid; }
java
Apache-2.0
84b5c4d2d0774f800237634e5d0336f53c004fe3
2026-01-04T14:46:39.499027Z
false
binarywang/WxJava
https://github.com/binarywang/WxJava/blob/84b5c4d2d0774f800237634e5d0336f53c004fe3/weixin-java-channel/src/main/java/me/chanjar/weixin/channel/bean/fund/WithdrawDetailResponse.java
weixin-java-channel/src/main/java/me/chanjar/weixin/channel/bean/fund/WithdrawDetailResponse.java
package me.chanjar.weixin.channel.bean.fund; import com.fasterxml.jackson.annotation.JsonProperty; import lombok.Data; import lombok.EqualsAndHashCode; import lombok.NoArgsConstructor; import me.chanjar.weixin.channel.bean.base.WxChannelBaseResponse; /** * 提现详情响应 * * @author <a href="https://github.com/lixize">Zeyes</a> */ @Data @NoArgsConstructor @EqualsAndHashCode(callSuper = true) public class WithdrawDetailResponse extends WxChannelBaseResponse { private static final long serialVersionUID = 1473346677401168323L; /** 金额 */ @JsonProperty("amount") private Integer amount; /** 创建时间 */ @JsonProperty("create_time") private Long createTime; /** 更新时间 */ @JsonProperty("update_time") private Long updateTime; /** 失败原因 */ @JsonProperty("reason") private String reason; /** 备注 */ @JsonProperty("remark") private String remark; /** 银行附言 */ @JsonProperty("bank_memo") private String bankMemo; /** 银行名称 */ @JsonProperty("bank_name") private String bankName; /** 银行账户 */ @JsonProperty("bank_num") private String bankNum; /** 提现状态 {@link me.chanjar.weixin.channel.enums.WithdrawStatus} */ @JsonProperty("status") private String status; }
java
Apache-2.0
84b5c4d2d0774f800237634e5d0336f53c004fe3
2026-01-04T14:46:39.499027Z
false
binarywang/WxJava
https://github.com/binarywang/WxJava/blob/84b5c4d2d0774f800237634e5d0336f53c004fe3/weixin-java-channel/src/main/java/me/chanjar/weixin/channel/bean/fund/WithdrawListParam.java
weixin-java-channel/src/main/java/me/chanjar/weixin/channel/bean/fund/WithdrawListParam.java
package me.chanjar.weixin.channel.bean.fund; import com.fasterxml.jackson.annotation.JsonProperty; import java.io.Serializable; import lombok.AllArgsConstructor; import lombok.Data; import lombok.NoArgsConstructor; /** * 提现列表参数 * * @author <a href="https://github.com/lixize">Zeyes</a> */ @Data @NoArgsConstructor @AllArgsConstructor public class WithdrawListParam implements Serializable { private static final long serialVersionUID = -672422656564313999L; /** 页码,从1开始 */ @JsonProperty("page_num") private Integer pageNum; /** 页数 */ @JsonProperty("page_size") private Integer pageSize; /** 开始时间 */ @JsonProperty("start_time") private Long startTime; /** 结束时间 */ @JsonProperty("end_time") private Long endTime; }
java
Apache-2.0
84b5c4d2d0774f800237634e5d0336f53c004fe3
2026-01-04T14:46:39.499027Z
false
binarywang/WxJava
https://github.com/binarywang/WxJava/blob/84b5c4d2d0774f800237634e5d0336f53c004fe3/weixin-java-channel/src/main/java/me/chanjar/weixin/channel/bean/fund/AccountInfo.java
weixin-java-channel/src/main/java/me/chanjar/weixin/channel/bean/fund/AccountInfo.java
package me.chanjar.weixin.channel.bean.fund; import com.fasterxml.jackson.annotation.JsonInclude; import com.fasterxml.jackson.annotation.JsonProperty; import java.io.Serializable; import lombok.Data; import lombok.NoArgsConstructor; /** * 账户信息 * * @author <a href="https://github.com/lixize">Zeyes</a> */ @Data @NoArgsConstructor @JsonInclude(JsonInclude.Include.NON_NULL) public class AccountInfo implements Serializable { private static final long serialVersionUID = -2107134853480093451L; /** 账户类型 {@link me.chanjar.weixin.channel.enums.AccountType} */ @JsonProperty("bank_account_type") private String bankAccountType; /** 开户银行 */ @JsonProperty("account_bank") private String accountBank; /** 开户银行省市编码 */ @JsonProperty("bank_address_code") private String bankAddressCode; /** 开户银行联行号 */ @JsonProperty("bank_branch_id") private String bankBranchId; /** 开户银行全称 */ @JsonProperty("bank_name") private String bankName; /** 银行账号 */ @JsonProperty("account_number") private String accountNumber; /** 开户银行名称前端展示值 */ @JsonProperty("account_bank4show") private String accountBank4show; /** 账户名称 */ @JsonProperty("account_name") private String accountName; }
java
Apache-2.0
84b5c4d2d0774f800237634e5d0336f53c004fe3
2026-01-04T14:46:39.499027Z
false
binarywang/WxJava
https://github.com/binarywang/WxJava/blob/84b5c4d2d0774f800237634e5d0336f53c004fe3/weixin-java-channel/src/main/java/me/chanjar/weixin/channel/bean/fund/FundsFlow.java
weixin-java-channel/src/main/java/me/chanjar/weixin/channel/bean/fund/FundsFlow.java
package me.chanjar.weixin.channel.bean.fund; import com.fasterxml.jackson.annotation.JsonProperty; import java.io.Serializable; import java.util.List; import lombok.Data; import lombok.NoArgsConstructor; /** * 资金流水 * * @author <a href="https://github.com/lixize">Zeyes</a> */ @Data @NoArgsConstructor public class FundsFlow implements Serializable { private static final long serialVersionUID = -2785498655066305510L; /** 流水id */ @JsonProperty("flow_id") private String flowId; /** 资金类型,见 {@link me.chanjar.weixin.channel.enums.FundsType} */ @JsonProperty("funds_type") private Integer fundsType; /** 流水类型, 1 收入,2 支出 */ @JsonProperty("flow_type") private Integer flowType; /** 流水金额 */ @JsonProperty("amount") private Integer amount; /** 余额 */ @JsonProperty("balance") private Integer balance; /** 流水关联信息 */ @JsonProperty("related_info_list") private List<FlowRelatedInfo> relatedInfos; /** 记账时间 */ @JsonProperty("bookkeeping_time") private String bookkeepingTime; /** 备注 */ @JsonProperty("remark") private String remark; }
java
Apache-2.0
84b5c4d2d0774f800237634e5d0336f53c004fe3
2026-01-04T14:46:39.499027Z
false
binarywang/WxJava
https://github.com/binarywang/WxJava/blob/84b5c4d2d0774f800237634e5d0336f53c004fe3/weixin-java-channel/src/main/java/me/chanjar/weixin/channel/bean/fund/WithdrawSubmitResponse.java
weixin-java-channel/src/main/java/me/chanjar/weixin/channel/bean/fund/WithdrawSubmitResponse.java
package me.chanjar.weixin.channel.bean.fund; import com.fasterxml.jackson.annotation.JsonProperty; import lombok.Data; import lombok.EqualsAndHashCode; import lombok.NoArgsConstructor; import me.chanjar.weixin.channel.bean.base.WxChannelBaseResponse; /** * 提现提交响应 * * @author <a href="https://github.com/lixize">Zeyes</a> */ @Data @NoArgsConstructor @EqualsAndHashCode(callSuper = true) public class WithdrawSubmitResponse extends WxChannelBaseResponse { private static final long serialVersionUID = -8269579250564427758L; /** 二维码ticket,可用于获取二维码和查询二维码状态 */ @JsonProperty("qrcode_ticket") private String qrcodeTicket; }
java
Apache-2.0
84b5c4d2d0774f800237634e5d0336f53c004fe3
2026-01-04T14:46:39.499027Z
false
binarywang/WxJava
https://github.com/binarywang/WxJava/blob/84b5c4d2d0774f800237634e5d0336f53c004fe3/weixin-java-channel/src/main/java/me/chanjar/weixin/channel/bean/fund/bank/BankInfoResponse.java
weixin-java-channel/src/main/java/me/chanjar/weixin/channel/bean/fund/bank/BankInfoResponse.java
package me.chanjar.weixin.channel.bean.fund.bank; import com.fasterxml.jackson.annotation.JsonProperty; import java.util.List; import lombok.Data; import lombok.EqualsAndHashCode; import lombok.NoArgsConstructor; import me.chanjar.weixin.channel.bean.base.WxChannelBaseResponse; /** * 银行信息响应 * * @author <a href="https://github.com/lixize">Zeyes</a> */ @Data @NoArgsConstructor @EqualsAndHashCode(callSuper = true) public class BankInfoResponse extends WxChannelBaseResponse { private static final long serialVersionUID = 8583893898929290526L; /** 银行信息列表 */ @JsonProperty("data") private List<BankInfo> data; /** 总数 */ @JsonProperty("total_count") private Integer totalCount; }
java
Apache-2.0
84b5c4d2d0774f800237634e5d0336f53c004fe3
2026-01-04T14:46:39.499027Z
false
binarywang/WxJava
https://github.com/binarywang/WxJava/blob/84b5c4d2d0774f800237634e5d0336f53c004fe3/weixin-java-channel/src/main/java/me/chanjar/weixin/channel/bean/fund/bank/BankCityResponse.java
weixin-java-channel/src/main/java/me/chanjar/weixin/channel/bean/fund/bank/BankCityResponse.java
package me.chanjar.weixin.channel.bean.fund.bank; import com.fasterxml.jackson.annotation.JsonProperty; import java.util.List; import lombok.Data; import lombok.EqualsAndHashCode; import lombok.NoArgsConstructor; import me.chanjar.weixin.channel.bean.base.WxChannelBaseResponse; /** * 银行城市信息响应 * * @author <a href="https://github.com/lixize">Zeyes</a> */ @Data @NoArgsConstructor @EqualsAndHashCode(callSuper = true) public class BankCityResponse extends WxChannelBaseResponse { private static final long serialVersionUID = -6212360101083304631L; /** 银行城市信息列表 */ @JsonProperty("data") private List<BankCityInfo> data; /** 总数 */ @JsonProperty("total_count") private Integer totalCount; }
java
Apache-2.0
84b5c4d2d0774f800237634e5d0336f53c004fe3
2026-01-04T14:46:39.499027Z
false
binarywang/WxJava
https://github.com/binarywang/WxJava/blob/84b5c4d2d0774f800237634e5d0336f53c004fe3/weixin-java-channel/src/main/java/me/chanjar/weixin/channel/bean/fund/bank/BranchInfo.java
weixin-java-channel/src/main/java/me/chanjar/weixin/channel/bean/fund/bank/BranchInfo.java
package me.chanjar.weixin.channel.bean.fund.bank; import com.fasterxml.jackson.annotation.JsonProperty; import java.io.Serializable; import lombok.Data; import lombok.NoArgsConstructor; /** * 分店信息 * * @author <a href="https://github.com/lixize">Zeyes</a> */ @Data @NoArgsConstructor public class BranchInfo implements Serializable { private static final long serialVersionUID = -2744729367131146892L; /** 支行联号 */ @JsonProperty("branch_id") private Integer branchId; /** 银行全称(含支行) */ @JsonProperty("branch_name") private String branchName; }
java
Apache-2.0
84b5c4d2d0774f800237634e5d0336f53c004fe3
2026-01-04T14:46:39.499027Z
false
binarywang/WxJava
https://github.com/binarywang/WxJava/blob/84b5c4d2d0774f800237634e5d0336f53c004fe3/weixin-java-channel/src/main/java/me/chanjar/weixin/channel/bean/fund/bank/BranchInfoResponse.java
weixin-java-channel/src/main/java/me/chanjar/weixin/channel/bean/fund/bank/BranchInfoResponse.java
package me.chanjar.weixin.channel.bean.fund.bank; import com.fasterxml.jackson.annotation.JsonProperty; import java.util.List; import lombok.Data; import lombok.EqualsAndHashCode; import lombok.NoArgsConstructor; import me.chanjar.weixin.channel.bean.base.WxChannelBaseResponse; /** * 支行信息响应 * * @author <a href="https://github.com/lixize">Zeyes</a> */ @Data @NoArgsConstructor @EqualsAndHashCode(callSuper = true) public class BranchInfoResponse extends WxChannelBaseResponse { private static final long serialVersionUID = -1419832502854175767L; /** 总数 */ @JsonProperty("total_count") private Integer totalCount; /** 当前分页数量 */ @JsonProperty("count") private Integer count; /** 银行名称 */ @JsonProperty("account_bank") private String accountBank; /** 银行编码 */ @JsonProperty("account_bank_code") private String accountBankCode; /** 银行别名 */ @JsonProperty("bank_alias") private String bankAlias; /** 银行别名编码 */ @JsonProperty("bank_alias_code") private String bankAliasCode; /** 支行信息列表 */ @JsonProperty("data") private List<BranchInfo> data; }
java
Apache-2.0
84b5c4d2d0774f800237634e5d0336f53c004fe3
2026-01-04T14:46:39.499027Z
false
binarywang/WxJava
https://github.com/binarywang/WxJava/blob/84b5c4d2d0774f800237634e5d0336f53c004fe3/weixin-java-channel/src/main/java/me/chanjar/weixin/channel/bean/fund/bank/BranchSearchParam.java
weixin-java-channel/src/main/java/me/chanjar/weixin/channel/bean/fund/bank/BranchSearchParam.java
package me.chanjar.weixin.channel.bean.fund.bank; import com.fasterxml.jackson.annotation.JsonProperty; import java.io.Serializable; import lombok.AllArgsConstructor; import lombok.Data; import lombok.NoArgsConstructor; /** * 银行支行信息 * * @author <a href="https://github.com/lixize">Zeyes</a> */ @Data @NoArgsConstructor @AllArgsConstructor public class BranchSearchParam implements Serializable { private static final long serialVersionUID = -8800316690160248833L; /** 银行编码,通过查询银行信息或者搜索银行信息获取 */ @JsonProperty("bank_code") private String bankCode; /** 城市编号,通过查询城市列表获取 */ @JsonProperty("city_code") private String cityCode; /** 偏移量 */ @JsonProperty("offset") private Integer offset; /** 限制个数 */ @JsonProperty("limit") private Integer limit; }
java
Apache-2.0
84b5c4d2d0774f800237634e5d0336f53c004fe3
2026-01-04T14:46:39.499027Z
false
binarywang/WxJava
https://github.com/binarywang/WxJava/blob/84b5c4d2d0774f800237634e5d0336f53c004fe3/weixin-java-channel/src/main/java/me/chanjar/weixin/channel/bean/fund/bank/BankProvinceInfo.java
weixin-java-channel/src/main/java/me/chanjar/weixin/channel/bean/fund/bank/BankProvinceInfo.java
package me.chanjar.weixin.channel.bean.fund.bank; import com.fasterxml.jackson.annotation.JsonProperty; import java.io.Serializable; import lombok.Data; import lombok.NoArgsConstructor; /** * 银行省份信息 * * @author <a href="https://github.com/lixize">Zeyes</a> */ @Data @NoArgsConstructor public class BankProvinceInfo implements Serializable { private static final long serialVersionUID = -3409931656361300144L; /** 省份名称 */ @JsonProperty("province_name") private String provinceName; /** 省份编码 */ @JsonProperty("province_code") private Integer provinceCode; }
java
Apache-2.0
84b5c4d2d0774f800237634e5d0336f53c004fe3
2026-01-04T14:46:39.499027Z
false
binarywang/WxJava
https://github.com/binarywang/WxJava/blob/84b5c4d2d0774f800237634e5d0336f53c004fe3/weixin-java-channel/src/main/java/me/chanjar/weixin/channel/bean/fund/bank/BankCityInfo.java
weixin-java-channel/src/main/java/me/chanjar/weixin/channel/bean/fund/bank/BankCityInfo.java
package me.chanjar.weixin.channel.bean.fund.bank; import com.fasterxml.jackson.annotation.JsonProperty; import java.io.Serializable; import lombok.Data; import lombok.NoArgsConstructor; /** * 银行城市信息 * * @author <a href="https://github.com/lixize">Zeyes</a> */ @Data @NoArgsConstructor public class BankCityInfo implements Serializable { private static final long serialVersionUID = 374087891799491196L; /** 城市名称 */ @JsonProperty("city_name") private String cityName; /** 城市编号 */ @JsonProperty("city_code") private Integer cityCode; /** 开户银行省市编码 */ @JsonProperty("bank_address_code") private String bankAddressCode; }
java
Apache-2.0
84b5c4d2d0774f800237634e5d0336f53c004fe3
2026-01-04T14:46:39.499027Z
false
binarywang/WxJava
https://github.com/binarywang/WxJava/blob/84b5c4d2d0774f800237634e5d0336f53c004fe3/weixin-java-channel/src/main/java/me/chanjar/weixin/channel/bean/fund/bank/BankProvinceResponse.java
weixin-java-channel/src/main/java/me/chanjar/weixin/channel/bean/fund/bank/BankProvinceResponse.java
package me.chanjar.weixin.channel.bean.fund.bank; import com.fasterxml.jackson.annotation.JsonProperty; import java.util.List; import lombok.Data; import lombok.NoArgsConstructor; import me.chanjar.weixin.channel.bean.base.WxChannelBaseResponse; /** * 银行省份信息响应 * * @author <a href="https://github.com/lixize">Zeyes</a> */ @Data @NoArgsConstructor public class BankProvinceResponse extends WxChannelBaseResponse { private static final long serialVersionUID = -6187805847136359892L; /** 银行省份信息列表 */ @JsonProperty("data") private List<BankProvinceInfo> data; /** 总数 */ @JsonProperty("total_count") private Integer totalCount; }
java
Apache-2.0
84b5c4d2d0774f800237634e5d0336f53c004fe3
2026-01-04T14:46:39.499027Z
false
binarywang/WxJava
https://github.com/binarywang/WxJava/blob/84b5c4d2d0774f800237634e5d0336f53c004fe3/weixin-java-channel/src/main/java/me/chanjar/weixin/channel/bean/fund/bank/BankInfo.java
weixin-java-channel/src/main/java/me/chanjar/weixin/channel/bean/fund/bank/BankInfo.java
package me.chanjar.weixin.channel.bean.fund.bank; import com.fasterxml.jackson.annotation.JsonProperty; import java.io.Serializable; import lombok.Data; import lombok.NoArgsConstructor; /** * 银行信息 * * @author <a href="https://github.com/lixize">Zeyes</a> */ @Data @NoArgsConstructor public class BankInfo implements Serializable { private static final long serialVersionUID = -4837989875996346711L; /** 开户银行 */ @JsonProperty("account_bank") private String accountBank; /** 银行编码 */ @JsonProperty("bank_code") private String bankCode; /** 银行联号 */ @JsonProperty("bank_id") private String bankId; /** 银行名称(不包括支行) */ @JsonProperty("bank_name") private String bankName; /** 银行类型(1.对公,2.对私) */ @JsonProperty("bank_type") private Integer bankType; /** 是否需要填写支行信息 */ @JsonProperty("need_branch") private Boolean needBranch; /** 支行联号 */ @JsonProperty("branch_id") private String branchId; }
java
Apache-2.0
84b5c4d2d0774f800237634e5d0336f53c004fe3
2026-01-04T14:46:39.499027Z
false
binarywang/WxJava
https://github.com/binarywang/WxJava/blob/84b5c4d2d0774f800237634e5d0336f53c004fe3/weixin-java-channel/src/main/java/me/chanjar/weixin/channel/bean/fund/bank/BankSearchParam.java
weixin-java-channel/src/main/java/me/chanjar/weixin/channel/bean/fund/bank/BankSearchParam.java
package me.chanjar.weixin.channel.bean.fund.bank; import com.fasterxml.jackson.annotation.JsonInclude; import com.fasterxml.jackson.annotation.JsonProperty; import java.io.Serializable; import lombok.AllArgsConstructor; import lombok.Data; import lombok.NoArgsConstructor; /** * 银行查询参数 * * @author <a href="https://github.com/lixize">Zeyes</a> */ @Data @NoArgsConstructor @AllArgsConstructor @JsonInclude(JsonInclude.Include.NON_NULL) public class BankSearchParam implements Serializable { private static final long serialVersionUID = 6070269209439188188L; /** 偏移量 */ @JsonProperty("offset") private Integer offset; /** 每页数据大小 */ @JsonProperty("limit") private Integer limit; /** 银行关键字 */ @JsonProperty("key_words") private String keyWords; /** 银行类型(1:对私银行,2:对公银行; 默认对公) */ @JsonProperty("bank_type") private Integer bankType; }
java
Apache-2.0
84b5c4d2d0774f800237634e5d0336f53c004fe3
2026-01-04T14:46:39.499027Z
false
binarywang/WxJava
https://github.com/binarywang/WxJava/blob/84b5c4d2d0774f800237634e5d0336f53c004fe3/weixin-java-channel/src/main/java/me/chanjar/weixin/channel/bean/fund/bank/BankListResponse.java
weixin-java-channel/src/main/java/me/chanjar/weixin/channel/bean/fund/bank/BankListResponse.java
package me.chanjar.weixin.channel.bean.fund.bank; import com.fasterxml.jackson.annotation.JsonProperty; import java.util.List; import lombok.Data; import lombok.EqualsAndHashCode; import lombok.NoArgsConstructor; import me.chanjar.weixin.channel.bean.base.WxChannelBaseResponse; /** * 银行信息响应 * * @author <a href="https://github.com/lixize">Zeyes</a> */ @Data @NoArgsConstructor @EqualsAndHashCode(callSuper = true) public class BankListResponse extends WxChannelBaseResponse { private static final long serialVersionUID = 7912035853286944260L; /** 银行信息列表 */ @JsonProperty("data") private List<BankInfo> data; }
java
Apache-2.0
84b5c4d2d0774f800237634e5d0336f53c004fe3
2026-01-04T14:46:39.499027Z
false
binarywang/WxJava
https://github.com/binarywang/WxJava/blob/84b5c4d2d0774f800237634e5d0336f53c004fe3/weixin-java-channel/src/main/java/me/chanjar/weixin/channel/bean/fund/qrcode/QrCodeResponse.java
weixin-java-channel/src/main/java/me/chanjar/weixin/channel/bean/fund/qrcode/QrCodeResponse.java
package me.chanjar.weixin.channel.bean.fund.qrcode; import com.fasterxml.jackson.annotation.JsonProperty; import lombok.Data; import lombok.EqualsAndHashCode; import lombok.NoArgsConstructor; import me.chanjar.weixin.channel.bean.base.WxChannelBaseResponse; /** * 二维码响应 * * @author <a href="https://github.com/lixize">Zeyes</a> */ @Data @NoArgsConstructor @EqualsAndHashCode(callSuper = true) public class QrCodeResponse extends WxChannelBaseResponse { private static final long serialVersionUID = 4521008628337929496L; /** 二维码(base64编码二进制,需要base64解码) */ @JsonProperty("qrcode_buf") private String qrcodeBuf; }
java
Apache-2.0
84b5c4d2d0774f800237634e5d0336f53c004fe3
2026-01-04T14:46:39.499027Z
false
binarywang/WxJava
https://github.com/binarywang/WxJava/blob/84b5c4d2d0774f800237634e5d0336f53c004fe3/weixin-java-channel/src/main/java/me/chanjar/weixin/channel/bean/fund/qrcode/QrCheckResponse.java
weixin-java-channel/src/main/java/me/chanjar/weixin/channel/bean/fund/qrcode/QrCheckResponse.java
package me.chanjar.weixin.channel.bean.fund.qrcode; import com.fasterxml.jackson.annotation.JsonProperty; import lombok.Data; import lombok.EqualsAndHashCode; import lombok.NoArgsConstructor; import me.chanjar.weixin.channel.bean.base.WxChannelBaseResponse; /** * 二维码校验响应 * * @author <a href="https://github.com/lixize">Zeyes</a> */ @Data @NoArgsConstructor @EqualsAndHashCode(callSuper = true) public class QrCheckResponse extends WxChannelBaseResponse { private static final long serialVersionUID = -3860756719827268969L; /** 扫码状态 {@link me.chanjar.weixin.channel.enums.QrCheckStatus} */ @JsonProperty("status") private Integer status; /** 业务返回错误码 */ @JsonProperty("self_check_err_code") private Integer selfCheckErrCode; /** 业务返回错误信息 */ @JsonProperty("self_check_err_msg") private String selfCheckErrMsg; /** 扫码者身份 0非管理员 1管理员 2次管理员 */ @JsonProperty("scan_user_type") private Integer scanUserType; }
java
Apache-2.0
84b5c4d2d0774f800237634e5d0336f53c004fe3
2026-01-04T14:46:39.499027Z
false
binarywang/WxJava
https://github.com/binarywang/WxJava/blob/84b5c4d2d0774f800237634e5d0336f53c004fe3/weixin-java-channel/src/main/java/me/chanjar/weixin/channel/bean/address/AddressListResponse.java
weixin-java-channel/src/main/java/me/chanjar/weixin/channel/bean/address/AddressListResponse.java
package me.chanjar.weixin.channel.bean.address; import com.fasterxml.jackson.annotation.JsonProperty; import java.util.List; import lombok.Data; import lombok.EqualsAndHashCode; import lombok.NoArgsConstructor; import me.chanjar.weixin.channel.bean.base.WxChannelBaseResponse; /** * 地址列表 响应 * * @author <a href="https://github.com/lixize">Zeyes</a> */ @Data @NoArgsConstructor @EqualsAndHashCode(callSuper = true) public class AddressListResponse extends WxChannelBaseResponse { private static final long serialVersionUID = -3997164605170764105L; /** 地址详情 */ @JsonProperty("address_id_list") private List<String> ids; }
java
Apache-2.0
84b5c4d2d0774f800237634e5d0336f53c004fe3
2026-01-04T14:46:39.499027Z
false
binarywang/WxJava
https://github.com/binarywang/WxJava/blob/84b5c4d2d0774f800237634e5d0336f53c004fe3/weixin-java-channel/src/main/java/me/chanjar/weixin/channel/bean/address/OfflineAddressType.java
weixin-java-channel/src/main/java/me/chanjar/weixin/channel/bean/address/OfflineAddressType.java
package me.chanjar.weixin.channel.bean.address; import com.fasterxml.jackson.annotation.JsonProperty; import java.io.Serializable; import lombok.AllArgsConstructor; import lombok.Data; import lombok.NoArgsConstructor; /** * 线下配送地址类型 * * @author <a href="https://github.com/lixize">Zeyes</a> */ @Data @NoArgsConstructor @AllArgsConstructor public class OfflineAddressType implements Serializable { private static final long serialVersionUID = 636850757572901377L; /** 1表示同城配送 */ @JsonProperty("same_city") private Integer sameCity; /** 1表示用户自提 */ @JsonProperty("pickup") private Integer pickup; }
java
Apache-2.0
84b5c4d2d0774f800237634e5d0336f53c004fe3
2026-01-04T14:46:39.499027Z
false
binarywang/WxJava
https://github.com/binarywang/WxJava/blob/84b5c4d2d0774f800237634e5d0336f53c004fe3/weixin-java-channel/src/main/java/me/chanjar/weixin/channel/bean/address/AddressDetail.java
weixin-java-channel/src/main/java/me/chanjar/weixin/channel/bean/address/AddressDetail.java
package me.chanjar.weixin.channel.bean.address; import com.fasterxml.jackson.annotation.JsonInclude; import com.fasterxml.jackson.annotation.JsonProperty; import java.io.Serializable; import lombok.Data; import lombok.NoArgsConstructor; import me.chanjar.weixin.channel.bean.base.AddressInfo; /** * 用户地址 * * @author <a href="https://github.com/lixize">Zeyes</a> */ @Data @NoArgsConstructor @JsonInclude(JsonInclude.Include.NON_NULL) public class AddressDetail implements Serializable { private static final long serialVersionUID = -7839578838482198641L; /** 地址id */ @JsonProperty("address_id") private String addressId; /** 联系人姓名 */ @JsonProperty("name") private String name; /** 地区信息 */ @JsonProperty("address_info") private AddressInfo addressInfo; /** 座机 */ @JsonProperty("landline") private String landline; /** 是否为发货地址 */ @JsonProperty("send_addr") private Boolean sendAddr; /** 是否为收货地址 */ @JsonProperty("recv_addr") private Boolean recvAddr; /** 是否为默认发货地址 */ @JsonProperty("default_send") private Boolean defaultSend; /** 是否为默认收货地址 */ @JsonProperty("default_recv") private Boolean defaultRecv; /** 创建时间戳(秒) */ @JsonProperty("create_time") private Long createTime; /** 更新时间戳(秒) */ @JsonProperty("update_time") private Long updateTime; /** 线下配送地址类型 */ @JsonProperty("address_type") private OfflineAddressType addressType; }
java
Apache-2.0
84b5c4d2d0774f800237634e5d0336f53c004fe3
2026-01-04T14:46:39.499027Z
false
binarywang/WxJava
https://github.com/binarywang/WxJava/blob/84b5c4d2d0774f800237634e5d0336f53c004fe3/weixin-java-channel/src/main/java/me/chanjar/weixin/channel/bean/address/AddressListParam.java
weixin-java-channel/src/main/java/me/chanjar/weixin/channel/bean/address/AddressListParam.java
package me.chanjar.weixin.channel.bean.address; import com.fasterxml.jackson.annotation.JsonInclude; import com.fasterxml.jackson.annotation.JsonInclude.Include; import lombok.Data; import lombok.EqualsAndHashCode; import lombok.NoArgsConstructor; import me.chanjar.weixin.channel.bean.base.OffsetParam; /** * 用户地址 列表 请求参数 * * @author <a href="https://github.com/lixize">Zeyes</a> */ @Data @NoArgsConstructor @EqualsAndHashCode(callSuper = true) @JsonInclude(Include.NON_NULL) public class AddressListParam extends OffsetParam { private static final long serialVersionUID = -4434287264623932176L; public AddressListParam(Integer offset, Integer limit) { super(offset, limit); } }
java
Apache-2.0
84b5c4d2d0774f800237634e5d0336f53c004fe3
2026-01-04T14:46:39.499027Z
false
binarywang/WxJava
https://github.com/binarywang/WxJava/blob/84b5c4d2d0774f800237634e5d0336f53c004fe3/weixin-java-channel/src/main/java/me/chanjar/weixin/channel/bean/address/AddressAddParam.java
weixin-java-channel/src/main/java/me/chanjar/weixin/channel/bean/address/AddressAddParam.java
package me.chanjar.weixin.channel.bean.address; import com.fasterxml.jackson.annotation.JsonInclude; import com.fasterxml.jackson.annotation.JsonInclude.Include; import com.fasterxml.jackson.annotation.JsonProperty; import java.io.Serializable; import lombok.AllArgsConstructor; import lombok.Data; import lombok.NoArgsConstructor; /** * 地址 请求参数 * * @author <a href="https://github.com/lixize">Zeyes</a> */ @Data @NoArgsConstructor @AllArgsConstructor @JsonInclude(Include.NON_NULL) public class AddressAddParam implements Serializable { private static final long serialVersionUID = 6778585213498438738L; /** 地址id */ @JsonProperty("address_detail") private AddressDetail addressDetail; }
java
Apache-2.0
84b5c4d2d0774f800237634e5d0336f53c004fe3
2026-01-04T14:46:39.499027Z
false
binarywang/WxJava
https://github.com/binarywang/WxJava/blob/84b5c4d2d0774f800237634e5d0336f53c004fe3/weixin-java-channel/src/main/java/me/chanjar/weixin/channel/bean/address/AddressInfoResponse.java
weixin-java-channel/src/main/java/me/chanjar/weixin/channel/bean/address/AddressInfoResponse.java
package me.chanjar.weixin.channel.bean.address; import com.fasterxml.jackson.annotation.JsonProperty; import lombok.Data; import lombok.EqualsAndHashCode; import lombok.NoArgsConstructor; import me.chanjar.weixin.channel.bean.base.WxChannelBaseResponse; /** * 地址id 响应 * * @author <a href="https://github.com/lixize">Zeyes</a> */ @Data @NoArgsConstructor @EqualsAndHashCode(callSuper = true) public class AddressInfoResponse extends WxChannelBaseResponse { private static final long serialVersionUID = 8203853673226715673L; /** 地址详情 */ @JsonProperty("address_detail") private AddressDetail addressDetail; }
java
Apache-2.0
84b5c4d2d0774f800237634e5d0336f53c004fe3
2026-01-04T14:46:39.499027Z
false
binarywang/WxJava
https://github.com/binarywang/WxJava/blob/84b5c4d2d0774f800237634e5d0336f53c004fe3/weixin-java-channel/src/main/java/me/chanjar/weixin/channel/bean/address/AddressCodeResponse.java
weixin-java-channel/src/main/java/me/chanjar/weixin/channel/bean/address/AddressCodeResponse.java
package me.chanjar.weixin.channel.bean.address; import com.fasterxml.jackson.annotation.JsonProperty; import java.util.List; import lombok.Data; import lombok.EqualsAndHashCode; import lombok.NoArgsConstructor; import me.chanjar.weixin.channel.bean.base.WxChannelBaseResponse; /** * 地址编码 响应 * * @author <a href="https://github.com/lixize">Zeyes</a> */ @Data @NoArgsConstructor @EqualsAndHashCode(callSuper = true) public class AddressCodeResponse extends WxChannelBaseResponse { private static final long serialVersionUID = -8994407971295563982L; /** 本行政编码地址信息 */ @JsonProperty("addrs_msg") private AddressCode current; /** 下一级所有地址信息 */ @JsonProperty("next_level_addrs") private List<AddressCode> list; }
java
Apache-2.0
84b5c4d2d0774f800237634e5d0336f53c004fe3
2026-01-04T14:46:39.499027Z
false
binarywang/WxJava
https://github.com/binarywang/WxJava/blob/84b5c4d2d0774f800237634e5d0336f53c004fe3/weixin-java-channel/src/main/java/me/chanjar/weixin/channel/bean/address/AddressCode.java
weixin-java-channel/src/main/java/me/chanjar/weixin/channel/bean/address/AddressCode.java
package me.chanjar.weixin.channel.bean.address; import com.fasterxml.jackson.annotation.JsonProperty; import java.io.Serializable; import lombok.Data; import lombok.NoArgsConstructor; /** * 地址编码 * * @author <a href="https://github.com/lixize">Zeyes</a> */ @Data @NoArgsConstructor public class AddressCode implements Serializable { private static final long serialVersionUID = -6782328785056142627L; /** 地址名称 */ @JsonProperty("name") private String name; /** 地址行政编码 */ @JsonProperty("code") private Integer code; /** 地址级别 1-省级 2-市级 3-区县级 4-街道 */ @JsonProperty("level") private Integer level; }
java
Apache-2.0
84b5c4d2d0774f800237634e5d0336f53c004fe3
2026-01-04T14:46:39.499027Z
false
binarywang/WxJava
https://github.com/binarywang/WxJava/blob/84b5c4d2d0774f800237634e5d0336f53c004fe3/weixin-java-channel/src/main/java/me/chanjar/weixin/channel/bean/address/AddressIdResponse.java
weixin-java-channel/src/main/java/me/chanjar/weixin/channel/bean/address/AddressIdResponse.java
package me.chanjar.weixin.channel.bean.address; import com.fasterxml.jackson.annotation.JsonProperty; import lombok.AllArgsConstructor; import lombok.Data; import lombok.EqualsAndHashCode; import lombok.NoArgsConstructor; import me.chanjar.weixin.channel.bean.base.WxChannelBaseResponse; /** * 地址id 响应 * * @author <a href="https://github.com/lixize">Zeyes</a> */ @Data @NoArgsConstructor @AllArgsConstructor @EqualsAndHashCode(callSuper = true) public class AddressIdResponse extends WxChannelBaseResponse { private static final long serialVersionUID = -9218327846685744008L; /** 地址id */ @JsonProperty("address_id") private String addressId; }
java
Apache-2.0
84b5c4d2d0774f800237634e5d0336f53c004fe3
2026-01-04T14:46:39.499027Z
false
binarywang/WxJava
https://github.com/binarywang/WxJava/blob/84b5c4d2d0774f800237634e5d0336f53c004fe3/weixin-java-channel/src/main/java/me/chanjar/weixin/channel/bean/address/AddressIdParam.java
weixin-java-channel/src/main/java/me/chanjar/weixin/channel/bean/address/AddressIdParam.java
package me.chanjar.weixin.channel.bean.address; import com.fasterxml.jackson.annotation.JsonInclude; import com.fasterxml.jackson.annotation.JsonInclude.Include; import com.fasterxml.jackson.annotation.JsonProperty; import java.io.Serializable; import lombok.AllArgsConstructor; import lombok.Data; import lombok.NoArgsConstructor; /** * 地址id 请求参数 * * @author <a href="https://github.com/lixize">Zeyes</a> */ @Data @NoArgsConstructor @AllArgsConstructor @JsonInclude(Include.NON_NULL) public class AddressIdParam implements Serializable { private static final long serialVersionUID = -7001183932180608746L; /** 地址id */ @JsonProperty("address_id") private String addressId; }
java
Apache-2.0
84b5c4d2d0774f800237634e5d0336f53c004fe3
2026-01-04T14:46:39.499027Z
false
binarywang/WxJava
https://github.com/binarywang/WxJava/blob/84b5c4d2d0774f800237634e5d0336f53c004fe3/weixin-java-channel/src/main/java/me/chanjar/weixin/channel/bean/image/QualificationFileResponse.java
weixin-java-channel/src/main/java/me/chanjar/weixin/channel/bean/image/QualificationFileResponse.java
package me.chanjar.weixin.channel.bean.image; import com.fasterxml.jackson.annotation.JsonProperty; import lombok.Data; import lombok.EqualsAndHashCode; import lombok.NoArgsConstructor; import me.chanjar.weixin.channel.bean.base.WxChannelBaseResponse; /** * 资质文件id响应 * * @author <a href="https://github.com/lixize">Zeyes</a> */ @Data @NoArgsConstructor @EqualsAndHashCode(callSuper = true) public class QualificationFileResponse extends WxChannelBaseResponse { private static final long serialVersionUID = 5172377567441096813L; /** 文件数据 */ @JsonProperty("data") private QualificationFileId data; }
java
Apache-2.0
84b5c4d2d0774f800237634e5d0336f53c004fe3
2026-01-04T14:46:39.499027Z
false
binarywang/WxJava
https://github.com/binarywang/WxJava/blob/84b5c4d2d0774f800237634e5d0336f53c004fe3/weixin-java-channel/src/main/java/me/chanjar/weixin/channel/bean/image/ChannelImageResponse.java
weixin-java-channel/src/main/java/me/chanjar/weixin/channel/bean/image/ChannelImageResponse.java
package me.chanjar.weixin.channel.bean.image; import com.fasterxml.jackson.annotation.JsonIgnore; import java.io.File; import lombok.Data; import lombok.EqualsAndHashCode; import me.chanjar.weixin.channel.bean.base.WxChannelBaseResponse; /** * @author <a href="https://github.com/lixize">Zeyes</a> */ @Data @EqualsAndHashCode(callSuper = true) public class ChannelImageResponse extends WxChannelBaseResponse { private static final long serialVersionUID = -4163511427507976489L; @JsonIgnore private File file; private String contentType; public ChannelImageResponse() { } public ChannelImageResponse(File file, String contentType) { this.errCode = SUCCESS_CODE; this.errMsg = "ok"; this.file = file; this.contentType = contentType; } }
java
Apache-2.0
84b5c4d2d0774f800237634e5d0336f53c004fe3
2026-01-04T14:46:39.499027Z
false
binarywang/WxJava
https://github.com/binarywang/WxJava/blob/84b5c4d2d0774f800237634e5d0336f53c004fe3/weixin-java-channel/src/main/java/me/chanjar/weixin/channel/bean/image/UploadImageResponse.java
weixin-java-channel/src/main/java/me/chanjar/weixin/channel/bean/image/UploadImageResponse.java
package me.chanjar.weixin.channel.bean.image; import com.fasterxml.jackson.annotation.JsonProperty; import lombok.Data; import lombok.EqualsAndHashCode; import lombok.NoArgsConstructor; import me.chanjar.weixin.channel.bean.base.WxChannelBaseResponse; /** * 微信图片信息响应 * * @author <a href="https://github.com/lixize">Zeyes</a> */ @Data @NoArgsConstructor @EqualsAndHashCode(callSuper = true) public class UploadImageResponse extends WxChannelBaseResponse { private static final long serialVersionUID = -609315696774437877L; /** 图片信息 */ @JsonProperty("pic_file") private ChannelImageInfo imgInfo; }
java
Apache-2.0
84b5c4d2d0774f800237634e5d0336f53c004fe3
2026-01-04T14:46:39.499027Z
false
binarywang/WxJava
https://github.com/binarywang/WxJava/blob/84b5c4d2d0774f800237634e5d0336f53c004fe3/weixin-java-channel/src/main/java/me/chanjar/weixin/channel/bean/image/ChannelImageInfo.java
weixin-java-channel/src/main/java/me/chanjar/weixin/channel/bean/image/ChannelImageInfo.java
package me.chanjar.weixin.channel.bean.image; import com.fasterxml.jackson.annotation.JsonProperty; import java.io.Serializable; import lombok.Data; import lombok.NoArgsConstructor; /** * 微信图片信息 * * @author <a href="https://github.com/lixize">Zeyes</a> */ @Data @NoArgsConstructor public class ChannelImageInfo implements Serializable { private static final long serialVersionUID = 8883519290965944530L; /** 开放平台media_id */ @JsonProperty("media_id") private String mediaId; /** 图片链接,有访问频率限制 */ @JsonProperty("img_url") private String url; /** 微信支付media_id */ @JsonProperty("pay_media_id") private String payMediaId; }
java
Apache-2.0
84b5c4d2d0774f800237634e5d0336f53c004fe3
2026-01-04T14:46:39.499027Z
false
binarywang/WxJava
https://github.com/binarywang/WxJava/blob/84b5c4d2d0774f800237634e5d0336f53c004fe3/weixin-java-channel/src/main/java/me/chanjar/weixin/channel/bean/image/QualificationFileId.java
weixin-java-channel/src/main/java/me/chanjar/weixin/channel/bean/image/QualificationFileId.java
package me.chanjar.weixin.channel.bean.image; import com.fasterxml.jackson.annotation.JsonProperty; import java.io.Serializable; import lombok.AllArgsConstructor; import lombok.Data; import lombok.NoArgsConstructor; /** * 资质文件id * * @author <a href="https://github.com/lixize">Zeyes</a> */ @Data @NoArgsConstructor @AllArgsConstructor public class QualificationFileId implements Serializable { private static final long serialVersionUID = -546135264746778249L; /** 文件id */ @JsonProperty("file_id") private String id; }
java
Apache-2.0
84b5c4d2d0774f800237634e5d0336f53c004fe3
2026-01-04T14:46:39.499027Z
false
binarywang/WxJava
https://github.com/binarywang/WxJava/blob/84b5c4d2d0774f800237634e5d0336f53c004fe3/weixin-java-channel/src/main/java/me/chanjar/weixin/channel/bean/category/PassCategoryResponse.java
weixin-java-channel/src/main/java/me/chanjar/weixin/channel/bean/category/PassCategoryResponse.java
package me.chanjar.weixin.channel.bean.category; import com.fasterxml.jackson.annotation.JsonProperty; import java.util.List; import lombok.Data; import lombok.EqualsAndHashCode; import lombok.NoArgsConstructor; import me.chanjar.weixin.channel.bean.base.WxChannelBaseResponse; /** * 审核通过的分类和资质信息 * * @author <a href="https://github.com/lixize">Zeyes</a> */ @Data @NoArgsConstructor @EqualsAndHashCode(callSuper = true) public class PassCategoryResponse extends WxChannelBaseResponse { private static final long serialVersionUID = -3674591447273025743L; /** 类目和资质信息列表 */ @JsonProperty("list") private List<PassCategoryInfo> list; }
java
Apache-2.0
84b5c4d2d0774f800237634e5d0336f53c004fe3
2026-01-04T14:46:39.499027Z
false
binarywang/WxJava
https://github.com/binarywang/WxJava/blob/84b5c4d2d0774f800237634e5d0336f53c004fe3/weixin-java-channel/src/main/java/me/chanjar/weixin/channel/bean/category/CategoryQualificationResponse.java
weixin-java-channel/src/main/java/me/chanjar/weixin/channel/bean/category/CategoryQualificationResponse.java
package me.chanjar.weixin.channel.bean.category; import com.fasterxml.jackson.annotation.JsonProperty; import java.util.List; import lombok.Data; import lombok.EqualsAndHashCode; import lombok.NoArgsConstructor; import me.chanjar.weixin.channel.bean.base.WxChannelBaseResponse; /** * 分类资质响应 * * @author <a href="https://github.com/lixize">Zeyes</a> */ @Data @NoArgsConstructor @EqualsAndHashCode(callSuper = true) public class CategoryQualificationResponse extends WxChannelBaseResponse { private static final long serialVersionUID = -7869091908852685830L; @JsonProperty("cats") private List<CategoryAndQualificationList> list; @JsonProperty("cats_v2") private List<CategoryAndQualificationList> catsV2; }
java
Apache-2.0
84b5c4d2d0774f800237634e5d0336f53c004fe3
2026-01-04T14:46:39.499027Z
false
binarywang/WxJava
https://github.com/binarywang/WxJava/blob/84b5c4d2d0774f800237634e5d0336f53c004fe3/weixin-java-channel/src/main/java/me/chanjar/weixin/channel/bean/category/AccountCategoryResponse.java
weixin-java-channel/src/main/java/me/chanjar/weixin/channel/bean/category/AccountCategoryResponse.java
package me.chanjar.weixin.channel.bean.category; import com.fasterxml.jackson.annotation.JsonProperty; import java.util.List; import lombok.Data; import lombok.EqualsAndHashCode; import lombok.NoArgsConstructor; import me.chanjar.weixin.channel.bean.base.WxChannelBaseResponse; /** * 分类响应 * * @author <a href="https://github.com/lixize">Zeyes</a> */ @Data @NoArgsConstructor @EqualsAndHashCode(callSuper = true) public class AccountCategoryResponse extends WxChannelBaseResponse { private static final long serialVersionUID = 3486089711447908477L; /** 类目列表 */ @JsonProperty("data") private List<ShopCategory> categories; }
java
Apache-2.0
84b5c4d2d0774f800237634e5d0336f53c004fe3
2026-01-04T14:46:39.499027Z
false
binarywang/WxJava
https://github.com/binarywang/WxJava/blob/84b5c4d2d0774f800237634e5d0336f53c004fe3/weixin-java-channel/src/main/java/me/chanjar/weixin/channel/bean/category/ShopCategory.java
weixin-java-channel/src/main/java/me/chanjar/weixin/channel/bean/category/ShopCategory.java
package me.chanjar.weixin.channel.bean.category; import com.fasterxml.jackson.annotation.JsonProperty; import java.io.Serializable; import lombok.Data; import lombok.NoArgsConstructor; /** * 商品类目 * * @author <a href="https://github.com/lixize">Zeyes</a> */ @Data @NoArgsConstructor public class ShopCategory implements Serializable { /** 类目ID */ @JsonProperty("cat_id") private String id; /** 类目父ID */ @JsonProperty("f_cat_id") private String parentId; /** 类目名称 */ @JsonProperty("name") private String name; /** 层级 */ @JsonProperty("level") private Integer level; /** 是否为叶子类目(品类) */ @JsonProperty("leaf") private Boolean leaf; }
java
Apache-2.0
84b5c4d2d0774f800237634e5d0336f53c004fe3
2026-01-04T14:46:39.499027Z
false
binarywang/WxJava
https://github.com/binarywang/WxJava/blob/84b5c4d2d0774f800237634e5d0336f53c004fe3/weixin-java-channel/src/main/java/me/chanjar/weixin/channel/bean/category/CategoryDetailResult.java
weixin-java-channel/src/main/java/me/chanjar/weixin/channel/bean/category/CategoryDetailResult.java
package me.chanjar.weixin.channel.bean.category; import com.fasterxml.jackson.annotation.JsonProperty; import java.io.Serializable; import java.util.List; import lombok.Data; import lombok.NoArgsConstructor; import me.chanjar.weixin.channel.bean.base.WxChannelBaseResponse; /** * @author <a href="https://github.com/lixize">Zeyes</a> */ @Data @NoArgsConstructor public class CategoryDetailResult extends WxChannelBaseResponse { private static final long serialVersionUID = 4657778764371047619L; @JsonProperty("info") private Info info; @JsonProperty("attr") private Attr attr; @Data @NoArgsConstructor public static class Info implements Serializable { /** 类目ID */ @JsonProperty("cat_id") private String id; /** 类目名称 */ @JsonProperty("name") private String name; } @Data @NoArgsConstructor public static class Attr implements Serializable { /** 是否支持虚拟发货 */ @JsonProperty("shop_no_shipment") private Boolean shopNoShipment; /** 是否定向准入 */ @JsonProperty("access_permit_required") private Boolean accessPermitRequired; /** 是否支持预售 */ @JsonProperty("pre_sale") private Boolean preSale; /** 是否必须支持7天无理由退货 */ @JsonProperty("seven_day_return") private Boolean sevenDayReturn; /** 定准类目的品牌ID */ @JsonProperty("brand_list") private List<BrandInfo> brands; /** 类目关联的保证金,单位分 */ @JsonProperty("deposit") private Long deposit; /** 产品属性 */ @JsonProperty("product_attr_list") private List<ProductAttr> productAttrs; /** 销售属性 */ @JsonProperty("sale_attr_list") private List<ProductAttr> saleAttrs; /** 佣金信息 */ @JsonProperty("transactionfee_info") private FeeInfo feeInfo; /** 折扣规则 */ @JsonProperty("coupon_rule") private CouponRule couponRule; /** 价格下限,单位分,商品售价不可低于此价格 */ @JsonProperty("floor_price") private Long floorPrice; /** 收货时间选项 */ @JsonProperty("confirm_receipt_days") private List<String> confirmReceiptDays; /** 是否品牌定向准入,即该类目一定要有品牌 */ @JsonProperty("is_limit_brand") private Boolean limitBrand; /** 商品编辑要求 */ @JsonProperty("product_requirement") private ProductRequirement productRequirement; /** 尺码表 */ @JsonProperty("size_chart") private SizeChart sizeChart; /** 放心买必须打开坏损包赔 */ @JsonProperty("is_confidence_require_bad_must_pay") private Boolean confidenceRequireBadMustPay; /** 资质信息 */ @JsonProperty("product_qua_list") private List<QualificationInfo> productQuaList; } @Data @NoArgsConstructor public static class BrandInfo implements Serializable { /** 定准类目的品牌ID */ @JsonProperty("brand_id") private String id; } @Data @NoArgsConstructor public static class ProductAttr implements Serializable { /** 类目必填项名称 */ @JsonProperty("name") private String name; /** 属性类型,string为自定义,select_one为多选一,该参数短期保留,用于兼容。将来废弃,使用type_v2替代 */ @JsonProperty("type") private String type; /** * 属性类型v2,共7种类型 * string:文本 * select_one:单选,选项列表在value中 * select_many:多选,选项列表在value中 * integer:整数,数字必须为整数 * decimal4:小数(4 位精度),小数部分最多 4 位 * integer_unit:整数 + 单位,单位的选项列表在value中 * decimal4_unit:小数(4 位精度) + 单位,单位的选项列表在value中 */ @JsonProperty("type_v2") private String typeV2; /** * 可选项列表,当type为:select_one/select_many时,为选项列表 * 当type为:integer_unit/decimal4_unit时,为单位的列表 */ @JsonProperty("value") private String value; /** 是否类目必填项 */ @JsonProperty("is_required") private Boolean required; /** 输入提示,请填写提示语 */ @JsonProperty("hint") private String hint; /** 允许添加选项,当type为select_one/select_many时,标识是否允许添加新选项(value中不存在的选项) */ @JsonProperty("append_allowed") private Boolean appendAllowed; } @Data @NoArgsConstructor public static class FeeInfo implements Serializable { /** 类目实收的交易佣金比例,单位万分比 */ @JsonProperty("basis_point") private Integer basisPoint; /** 类目原始佣金比例,单位万分比 */ @JsonProperty("original_basis_point") private Integer originalBasisPoint; /** 佣金激励类型,0:无激励措施,1:新店佣金减免 */ @JsonProperty("incentive_type") private Integer incentiveType; } @Data @NoArgsConstructor public static class CouponRule implements Serializable { /** 最高的折扣比例,百分比, 0表示无限制 */ @JsonProperty("discount_ratio_limit") private Integer supportCoupon; /** 最高的折扣金额,单位分,0表示无限制 */ @JsonProperty("discount_limit") private Integer couponType; } @Data @NoArgsConstructor public static class ProductRequirement implements Serializable { /** 商品标题的编辑要求 */ @JsonProperty("product_title_requirement") private String productTitleRequirement; /** 商品主图的编辑要求 */ @JsonProperty("product_img_requirement") private String productImgRequirement; /** 商品描述的编辑要求 */ @JsonProperty("product_desc_requirement") private String productDescRequirement; } @Data @NoArgsConstructor public static class SizeChart implements Serializable { /** 是否支持尺码表 */ @JsonProperty("is_support") private Boolean support; /** 尺码配置要求列表 */ @JsonProperty("item_list") private List<SizeChartItem> itemList; } @Data @NoArgsConstructor public static class SizeChartItem implements Serializable { /** 尺码属性名称 */ @JsonProperty("name") private String name; /** 尺码属性值的单位 */ @JsonProperty("unit") private String unit; /** 尺码属性值的类型,1:字符型,2:整数型,3:小数型 */ @JsonProperty("type") private String type; /** 尺码属性值的填写格式,1:单值填写,2:区间值填写,3:支持单值或区间值 */ @JsonProperty("format") private String format; /** 尺码属性值的限制 */ @JsonProperty("limit") private String limit; /** 是否必填 */ @JsonProperty("is_required") private Boolean required; } }
java
Apache-2.0
84b5c4d2d0774f800237634e5d0336f53c004fe3
2026-01-04T14:46:39.499027Z
false
binarywang/WxJava
https://github.com/binarywang/WxJava/blob/84b5c4d2d0774f800237634e5d0336f53c004fe3/weixin-java-channel/src/main/java/me/chanjar/weixin/channel/bean/category/CategoryQualification.java
weixin-java-channel/src/main/java/me/chanjar/weixin/channel/bean/category/CategoryQualification.java
package me.chanjar.weixin.channel.bean.category; import com.fasterxml.jackson.annotation.JsonProperty; import java.io.Serializable; import java.util.List; import lombok.Data; import lombok.NoArgsConstructor; /** * 分类资质信息 * * @author <a href="https://github.com/lixize">Zeyes</a> */ @Data @NoArgsConstructor public class CategoryQualification implements Serializable { private static final long serialVersionUID = 6495550078851408381L; /** 类目 */ @JsonProperty("cat") private ShopCategory category; /** 资质信息 */ @JsonProperty("qua") private QualificationInfo info; /** 商品资质信息,将废弃,使用product_qua_list代替 */ @JsonProperty("product_qua") @Deprecated private QualificationInfo productInfo; /** 品牌资质信息 */ @JsonProperty("brand_qua") @Deprecated private QualificationInfo brandQua; /** 商品资质列表,替代product_qua */ @JsonProperty("product_qua_list") private List<QualificationInfo> productQuaList; /** 放心买必须打开坏损包赔 */ @JsonProperty("is_confidence_require_bad_must_pay") private Boolean confidenceRequireBadMustPay; }
java
Apache-2.0
84b5c4d2d0774f800237634e5d0336f53c004fe3
2026-01-04T14:46:39.499027Z
false
binarywang/WxJava
https://github.com/binarywang/WxJava/blob/84b5c4d2d0774f800237634e5d0336f53c004fe3/weixin-java-channel/src/main/java/me/chanjar/weixin/channel/bean/category/QualificationInfo.java
weixin-java-channel/src/main/java/me/chanjar/weixin/channel/bean/category/QualificationInfo.java
package me.chanjar.weixin.channel.bean.category; import com.fasterxml.jackson.annotation.JsonProperty; import java.io.Serializable; import lombok.Data; import lombok.NoArgsConstructor; /** * 资质信息 * * @author <a href="https://github.com/lixize">Zeyes</a> */ @Data @NoArgsConstructor public class QualificationInfo implements Serializable { /** 资质ID */ @JsonProperty("qua_id") private String id; /** 是否需要申请 */ @JsonProperty("need_to_apply") private Boolean needToApply; /** 资质信息 */ @JsonProperty("tips") private String tips; /** 该类目申请的时候是否一定要提交资质 */ @JsonProperty("mandatory") private Boolean mandatory; /** 资质名称 */ @JsonProperty("name") private String name; }
java
Apache-2.0
84b5c4d2d0774f800237634e5d0336f53c004fe3
2026-01-04T14:46:39.499027Z
false
binarywang/WxJava
https://github.com/binarywang/WxJava/blob/84b5c4d2d0774f800237634e5d0336f53c004fe3/weixin-java-channel/src/main/java/me/chanjar/weixin/channel/bean/category/PassCategoryInfo.java
weixin-java-channel/src/main/java/me/chanjar/weixin/channel/bean/category/PassCategoryInfo.java
package me.chanjar.weixin.channel.bean.category; import com.fasterxml.jackson.annotation.JsonProperty; import java.io.Serializable; import lombok.Data; import lombok.NoArgsConstructor; /** * 审核通过的分类和资质信息 * * @author <a href="https://github.com/lixize">Zeyes</a> */ @Data @NoArgsConstructor public class PassCategoryInfo implements Serializable { private static final long serialVersionUID = 1152077957498898216L; /** 类目ID */ @JsonProperty("cat_id") private String catId; /** 资质ID */ @JsonProperty("qua_id") private String quaId; }
java
Apache-2.0
84b5c4d2d0774f800237634e5d0336f53c004fe3
2026-01-04T14:46:39.499027Z
false
binarywang/WxJava
https://github.com/binarywang/WxJava/blob/84b5c4d2d0774f800237634e5d0336f53c004fe3/weixin-java-channel/src/main/java/me/chanjar/weixin/channel/bean/category/ShopCategoryResponse.java
weixin-java-channel/src/main/java/me/chanjar/weixin/channel/bean/category/ShopCategoryResponse.java
package me.chanjar.weixin.channel.bean.category; import com.fasterxml.jackson.annotation.JsonProperty; import java.util.List; import lombok.Data; import lombok.EqualsAndHashCode; import lombok.NoArgsConstructor; import me.chanjar.weixin.channel.bean.base.WxChannelBaseResponse; /** * 分类响应 * * @author <a href="https://github.com/lixize">Zeyes</a> */ @Data @NoArgsConstructor @EqualsAndHashCode(callSuper = true) public class ShopCategoryResponse extends WxChannelBaseResponse { private static final long serialVersionUID = 3871098948660947422L; /** 类目列表 */ @JsonProperty("cat_list") private List<ShopCategory> categories; /** 类目列表 */ @JsonProperty("cat_list_v2") private List<ShopCategory> catListV2; }
java
Apache-2.0
84b5c4d2d0774f800237634e5d0336f53c004fe3
2026-01-04T14:46:39.499027Z
false
binarywang/WxJava
https://github.com/binarywang/WxJava/blob/84b5c4d2d0774f800237634e5d0336f53c004fe3/weixin-java-channel/src/main/java/me/chanjar/weixin/channel/bean/category/CategoryAndQualificationList.java
weixin-java-channel/src/main/java/me/chanjar/weixin/channel/bean/category/CategoryAndQualificationList.java
package me.chanjar.weixin.channel.bean.category; import com.fasterxml.jackson.annotation.JsonProperty; import java.io.Serializable; import java.util.List; import lombok.Data; import lombok.NoArgsConstructor; /** * 分类资质响应 * * @author <a href="https://github.com/lixize">Zeyes</a> */ @Data @NoArgsConstructor public class CategoryAndQualificationList implements Serializable { private static final long serialVersionUID = 4245906598437404655L; /** 分类列表 */ @JsonProperty("cat_and_qua") private List<CategoryQualification> list; }
java
Apache-2.0
84b5c4d2d0774f800237634e5d0336f53c004fe3
2026-01-04T14:46:39.499027Z
false
binarywang/WxJava
https://github.com/binarywang/WxJava/blob/84b5c4d2d0774f800237634e5d0336f53c004fe3/weixin-java-channel/src/main/java/me/chanjar/weixin/channel/bean/product/SpuCategory.java
weixin-java-channel/src/main/java/me/chanjar/weixin/channel/bean/product/SpuCategory.java
package me.chanjar.weixin.channel.bean.product; import com.fasterxml.jackson.annotation.JsonProperty; import java.io.Serializable; import lombok.Data; import lombok.NoArgsConstructor; /** * 商品类目id * * @author <a href="https://github.com/lixize">Zeyes</a> */ @Data @NoArgsConstructor public class SpuCategory implements Serializable { private static final long serialVersionUID = -8500610555473351789L; /** 类目id */ @JsonProperty("cat_id") private String id; }
java
Apache-2.0
84b5c4d2d0774f800237634e5d0336f53c004fe3
2026-01-04T14:46:39.499027Z
false
binarywang/WxJava
https://github.com/binarywang/WxJava/blob/84b5c4d2d0774f800237634e5d0336f53c004fe3/weixin-java-channel/src/main/java/me/chanjar/weixin/channel/bean/product/ProductSaleLimitInfo.java
weixin-java-channel/src/main/java/me/chanjar/weixin/channel/bean/product/ProductSaleLimitInfo.java
package me.chanjar.weixin.channel.bean.product; import com.fasterxml.jackson.annotation.JsonProperty; import java.io.Serializable; import lombok.AllArgsConstructor; import lombok.Data; import lombok.NoArgsConstructor; /** * 商品销售库存限制 * * @author <a href="https://github.com/lixize">Zeyes</a> */ @Data @NoArgsConstructor @AllArgsConstructor public class ProductSaleLimitInfo implements Serializable { /** 是否受到管控,商品存在售卖限制时,固定返回1 */ @JsonProperty("is_limited") private Integer limited; /** 售卖限制标题 */ @JsonProperty("title") private String title; /** 售卖限制描述 */ @JsonProperty("sub_title") private String subTitle; }
java
Apache-2.0
84b5c4d2d0774f800237634e5d0336f53c004fe3
2026-01-04T14:46:39.499027Z
false
binarywang/WxJava
https://github.com/binarywang/WxJava/blob/84b5c4d2d0774f800237634e5d0336f53c004fe3/weixin-java-channel/src/main/java/me/chanjar/weixin/channel/bean/product/LimitInfo.java
weixin-java-channel/src/main/java/me/chanjar/weixin/channel/bean/product/LimitInfo.java
package me.chanjar.weixin.channel.bean.product; import com.fasterxml.jackson.annotation.JsonProperty; import java.io.Serializable; import lombok.AllArgsConstructor; import lombok.Data; import lombok.NoArgsConstructor; /** * 限时购信息 * * @author <a href="https://github.com/lixize">Zeyes</a> */ @Data @NoArgsConstructor @AllArgsConstructor public class LimitInfo implements Serializable { private static final long serialVersionUID = -4670198322237114719L; /** 限购周期类型,0无限购(默认),1按自然日限购,2按自然周限购,3按自然月限购 */ @JsonProperty("period_type") private Integer periodType; /** 限购周期类型,0无限购(默认),1按自然日限购,2按自然周限购,3按自然月限购 */ @JsonProperty("limited_buy_num") private Integer num; }
java
Apache-2.0
84b5c4d2d0774f800237634e5d0336f53c004fe3
2026-01-04T14:46:39.499027Z
false
binarywang/WxJava
https://github.com/binarywang/WxJava/blob/84b5c4d2d0774f800237634e5d0336f53c004fe3/weixin-java-channel/src/main/java/me/chanjar/weixin/channel/bean/product/SpuFastInfo.java
weixin-java-channel/src/main/java/me/chanjar/weixin/channel/bean/product/SpuFastInfo.java
package me.chanjar.weixin.channel.bean.product; import com.fasterxml.jackson.annotation.JsonInclude; import com.fasterxml.jackson.annotation.JsonProperty; import java.io.Serializable; import java.util.List; import lombok.Data; import lombok.NoArgsConstructor; /** * 商品免审更新参数 * * @author <a href="https://github.com/lixize">Zeyes</a> */ @Data @NoArgsConstructor @JsonInclude(JsonInclude.Include.NON_NULL) public class SpuFastInfo implements Serializable { /** 商品ID */ @JsonProperty("product_id") protected String productId; /** SKU列表 */ @JsonProperty("skus") protected List<SkuFastInfo> skus; }
java
Apache-2.0
84b5c4d2d0774f800237634e5d0336f53c004fe3
2026-01-04T14:46:39.499027Z
false
binarywang/WxJava
https://github.com/binarywang/WxJava/blob/84b5c4d2d0774f800237634e5d0336f53c004fe3/weixin-java-channel/src/main/java/me/chanjar/weixin/channel/bean/product/SpuSizeChartItem.java
weixin-java-channel/src/main/java/me/chanjar/weixin/channel/bean/product/SpuSizeChartItem.java
package me.chanjar.weixin.channel.bean.product; import com.fasterxml.jackson.annotation.JsonProperty; import java.io.Serializable; import java.util.List; import lombok.Data; import lombok.NoArgsConstructor; /** * 尺码表 * * @author <a href="https://github.com/lixize">Zeyes</a> */ @Data @NoArgsConstructor public class SpuSizeChartItem implements Serializable { private static final long serialVersionUID = -3757716378584654974L; /** 尺码属性名称 */ @JsonProperty("name") private String name; /** 尺码属性值的单位 */ @JsonProperty("unit") private String unit; /** 尺码属性值是否为区间 */ @JsonProperty("is_range") private Boolean range; /** 尺码值与尺码属性值的映射列表 */ @JsonProperty("value_list") private List<ValueRange> valueList; @Data @NoArgsConstructor public static class ValueRange implements Serializable { /** 尺码值 */ @JsonProperty("key") private String key; /** 尺码属性值;尺码属性值为非区间时返回 */ @JsonProperty("value") private String value; /** 尺码属性值的左边界;尺码属性值为区间时返回 */ @JsonProperty("left") private String left; /** 尺码属性值的右边界;尺码属性值为区间时返回 */ @JsonProperty("right") private String right; } }
java
Apache-2.0
84b5c4d2d0774f800237634e5d0336f53c004fe3
2026-01-04T14:46:39.499027Z
false
binarywang/WxJava
https://github.com/binarywang/WxJava/blob/84b5c4d2d0774f800237634e5d0336f53c004fe3/weixin-java-channel/src/main/java/me/chanjar/weixin/channel/bean/product/SpuGetResponse.java
weixin-java-channel/src/main/java/me/chanjar/weixin/channel/bean/product/SpuGetResponse.java
package me.chanjar.weixin.channel.bean.product; import com.fasterxml.jackson.annotation.JsonProperty; import lombok.Data; import lombok.EqualsAndHashCode; import lombok.NoArgsConstructor; import me.chanjar.weixin.channel.bean.base.WxChannelBaseResponse; /** * 商品信息 响应 * * @author <a href="https://github.com/lixize">Zeyes</a> */ @Data @NoArgsConstructor @EqualsAndHashCode(callSuper = true) public class SpuGetResponse extends WxChannelBaseResponse { private static final long serialVersionUID = -8955745006296226140L; /** 商品线上数据,入参data_type==2时不返回该字段;入参data_type==3且商品未处于上架状态,不返回该字段 */ @JsonProperty("product") private SpuInfo product; /** 商品草稿数据,入参data_type==1时不返回该字段 */ @JsonProperty("edit_product") private SpuInfo editProduct; /** 当日售卖上限提醒,当店铺受到售卖管控时返回,没有返回本字段表示没有无额外限制 */ @JsonProperty("sale_limit_info") private ProductSaleLimitInfo saleLimitInfo; }
java
Apache-2.0
84b5c4d2d0774f800237634e5d0336f53c004fe3
2026-01-04T14:46:39.499027Z
false
binarywang/WxJava
https://github.com/binarywang/WxJava/blob/84b5c4d2d0774f800237634e5d0336f53c004fe3/weixin-java-channel/src/main/java/me/chanjar/weixin/channel/bean/product/AfterSaleInfo.java
weixin-java-channel/src/main/java/me/chanjar/weixin/channel/bean/product/AfterSaleInfo.java
package me.chanjar.weixin.channel.bean.product; import com.fasterxml.jackson.annotation.JsonProperty; import java.io.Serializable; import lombok.Data; import lombok.NoArgsConstructor; /** * 商品售后信息 */ @Data @NoArgsConstructor public class AfterSaleInfo implements Serializable { /** * 商品的售后地址id,可使用获取地址详情 */ @JsonProperty("after_sale_address_id") private Long afterSaleAddressId; }
java
Apache-2.0
84b5c4d2d0774f800237634e5d0336f53c004fe3
2026-01-04T14:46:39.499027Z
false
binarywang/WxJava
https://github.com/binarywang/WxJava/blob/84b5c4d2d0774f800237634e5d0336f53c004fe3/weixin-java-channel/src/main/java/me/chanjar/weixin/channel/bean/product/SkuStockBatchParam.java
weixin-java-channel/src/main/java/me/chanjar/weixin/channel/bean/product/SkuStockBatchParam.java
package me.chanjar.weixin.channel.bean.product; import com.fasterxml.jackson.annotation.JsonProperty; import java.io.Serializable; import java.util.List; import lombok.AllArgsConstructor; import lombok.Data; import lombok.NoArgsConstructor; /** * * @author <a href="https://github.com/lixize">Zeyes</a> */ @Data @NoArgsConstructor @AllArgsConstructor public class SkuStockBatchParam implements Serializable { private static final long serialVersionUID = 3706326762056220559L; /** 商品ID列表 注意这里是 productId ,序列化参数没有写错 */ @JsonProperty("product_id") private List<String> productIds; }
java
Apache-2.0
84b5c4d2d0774f800237634e5d0336f53c004fe3
2026-01-04T14:46:39.499027Z
false
binarywang/WxJava
https://github.com/binarywang/WxJava/blob/84b5c4d2d0774f800237634e5d0336f53c004fe3/weixin-java-channel/src/main/java/me/chanjar/weixin/channel/bean/product/WarehouseStockInfo.java
weixin-java-channel/src/main/java/me/chanjar/weixin/channel/bean/product/WarehouseStockInfo.java
package me.chanjar.weixin.channel.bean.product; import com.fasterxml.jackson.annotation.JsonProperty; import java.io.Serializable; import lombok.Data; import lombok.NoArgsConstructor; /** * 区域库存 * * @author <a href="https://github.com/lixize">Zeyes</a> */ @Data @NoArgsConstructor public class WarehouseStockInfo implements Serializable { private static final long serialVersionUID = 3184902895765107425L; /** 区域库存外部id */ @JsonProperty("out_warehouse_id") private String outWarehouseId; /** 区域库存数量 */ @JsonProperty("num") private Integer num; /** 区域库存的锁定库存(已下单未支付的库存)数量 */ @JsonProperty("lock_stock") private Integer lockStock; }
java
Apache-2.0
84b5c4d2d0774f800237634e5d0336f53c004fe3
2026-01-04T14:46:39.499027Z
false
binarywang/WxJava
https://github.com/binarywang/WxJava/blob/84b5c4d2d0774f800237634e5d0336f53c004fe3/weixin-java-channel/src/main/java/me/chanjar/weixin/channel/bean/product/ExtraServiceInfo.java
weixin-java-channel/src/main/java/me/chanjar/weixin/channel/bean/product/ExtraServiceInfo.java
package me.chanjar.weixin.channel.bean.product; import com.fasterxml.jackson.annotation.JsonProperty; import java.io.Serializable; import lombok.Data; import lombok.NoArgsConstructor; /** * @author <a href="https://github.com/lixize">Zeyes</a> */ @Data @NoArgsConstructor public class ExtraServiceInfo implements Serializable { private static final long serialVersionUID = -5517806977282063174L; /** * 是否支持七天无理由退货,0-不支持七天无理由, 1-支持七天无理由, 2-支持七天无理由(定制商品除外)。 管理规则请参见七天无理由退货管理规则。类目是否必须支持七天无理由退货, * 可参考文档获取类目信息中的字段attr.seven_day_return */ @JsonProperty("seven_day_return") private Integer sevenDayReturn; /** 先用后付,0-不支持先用后付,1-支持先用后付。若店铺已开通先用后付,支持先用后付的类目商品将在上架后自动打开先用后付。 */ @JsonProperty("pay_after_use") private Integer payAfterUse; /** 是否支持运费险,0-不支持运费险,1-支持运费险。需要商户开通运费险服务,且当前类目支持运费险才会生效。 */ @JsonProperty("freight_insurance") private Integer freightInsurance; /** 是否支持假一赔三,0-不支持假一赔三,1-支持假一赔三。 */ @JsonProperty("fake_one_pay_three") private Integer fakeOnePayThree; /** 是否支持坏损包退,0-不支持坏损包退,1-支持坏损包退。 */ @JsonProperty("damage_guarantee") private Integer damageGuarantee; }
java
Apache-2.0
84b5c4d2d0774f800237634e5d0336f53c004fe3
2026-01-04T14:46:39.499027Z
false
binarywang/WxJava
https://github.com/binarywang/WxJava/blob/84b5c4d2d0774f800237634e5d0336f53c004fe3/weixin-java-channel/src/main/java/me/chanjar/weixin/channel/bean/product/SpuInfo.java
weixin-java-channel/src/main/java/me/chanjar/weixin/channel/bean/product/SpuInfo.java
package me.chanjar.weixin.channel.bean.product; import com.fasterxml.jackson.annotation.JsonInclude; import com.fasterxml.jackson.annotation.JsonInclude.Include; import com.fasterxml.jackson.annotation.JsonProperty; import java.util.List; import lombok.Data; import lombok.EqualsAndHashCode; import lombok.NoArgsConstructor; import me.chanjar.weixin.channel.bean.base.AttrInfo; /** * Spu信息 * * @author <a href="https://github.com/lixize">Zeyes</a> */ @Data @NoArgsConstructor @EqualsAndHashCode(callSuper = true) public class SpuInfo extends SpuSimpleInfo { private static final long serialVersionUID = -1183209029245287297L; /** 标题,字符类型,最少不低于3,最长不超过60。商品标题不得仅为数字、字母、字符或上述三种的组合 */ @JsonProperty("title") private String title; /** 副标题,最多18字符 */ @JsonProperty("sub_title") private String subTitle; /** 主图,多张,列表,图片类型,最多不超过9张 */ @JsonProperty("head_imgs") private List<String> headImgs; /** 发货方式:0-快递发货;1-无需快递,手机号发货;3-无需快递,可选发货账号类型,默认为0,若为无需快递,则无需填写运费模版id */ @JsonProperty("deliver_method") private Integer deliverMethod; /** * 发货账号:1-微信openid;2-QQ号;3-手机号;4-邮箱。 * 可多选,只有deliver_method=3时,本参数有意义。 * 且当发货账号为微信、QQ和邮箱时,需要更新订单接口读取详情字段,详情参考订单接口的说明 */ @JsonProperty("deliver_acct_type") private List<Integer> deliverAcctType; /** 商品详情 */ @JsonProperty("desc_info") private DescriptionInfo descInfo; /** 商品类目,大小恒等于3(一二三级类目) */ @JsonProperty("cats") private List<SpuCategory> cats; /** 新类目树,商家需要先申请可使用类目 */ @JsonProperty("cats_v2") private List<SpuCategory> catsV2; /** 商品参数 */ @JsonProperty("attrs") private List<AttrInfo> attrs; /** 商品编码 */ @JsonProperty("spu_code") private String spuCode; /** 品牌id,无品牌为2100000000 */ @JsonProperty("brand_id") private String brandId; /** 商品资质图片(最多5张) */ @JsonProperty("qualifications") private List<String> qualifications; /** 运费信息 */ @JsonProperty("express_info") private ExpressInfo expressInfo; /** 售后说明 */ @JsonProperty("aftersale_desc") private String afterSaleDesc; /** 限购信息 */ @JsonProperty("limited_info") @JsonInclude(Include.NON_EMPTY) private LimitInfo limitInfo; /** 附加服务 */ @JsonProperty("extra_service") private ExtraServiceInfo extraService; /** 商品线上状态 {@link me.chanjar.weixin.channel.enums.SpuStatus } */ @JsonProperty("status") private Integer status; /** 商品草稿状态 */ @JsonProperty("edit_status") private Integer editStatus; /** 最低价格 */ @JsonProperty("min_price") private Integer minPrice; /** 创建时间 yyyy-MM-dd HH:mm:ss */ @JsonProperty("create_time") private String createTime; /** * 商品草稿最近一次修改时间 */ @JsonProperty("edit_time") private Long editTime; /** * 商品类型。1: 小店普通自营商品;2: 福袋抽奖商品;3: 直播间闪电购商品。 * 注意: 福袋抽奖、直播间闪电购类型的商品为只读数据,不支持编辑、上架操作,不支持用data_type=2的参数获取。 */ @JsonProperty("product_type") private Integer productType; /** * 商品的售后信息 */ @JsonProperty("after_sale_info") private AfterSaleInfo afterSaleInfo; /** * 当商品类型位福袋抽奖商品(即product_type==2)且该抽奖商品由橱窗的自营商品导入生成时有值, * 表示导入的来源商品id,其他场景下该字段无值或者值为0 */ @JsonProperty("src_product_id") private String srcProductId; /** 商品资质列表 */ @JsonProperty("product_qua_infos") private List<ProductQuaInfo> productQuaInfos; /** 尺码表信息 */ @JsonProperty("size_chart") private SpuSizeChart sizeChart; /** 短标题 */ @JsonProperty("short_title") private String shortTitle; /** 销量 */ @JsonProperty("total_sold_num") private Integer totalSoldNum; /** 发布模式,0: 普通模式;1: 极简模式 */ @JsonProperty("release_mode") private Integer releaseMode; }
java
Apache-2.0
84b5c4d2d0774f800237634e5d0336f53c004fe3
2026-01-04T14:46:39.499027Z
false
binarywang/WxJava
https://github.com/binarywang/WxJava/blob/84b5c4d2d0774f800237634e5d0336f53c004fe3/weixin-java-channel/src/main/java/me/chanjar/weixin/channel/bean/product/SpuUpdateInfo.java
weixin-java-channel/src/main/java/me/chanjar/weixin/channel/bean/product/SpuUpdateInfo.java
package me.chanjar.weixin.channel.bean.product; import com.fasterxml.jackson.annotation.JsonInclude; import com.fasterxml.jackson.annotation.JsonProperty; import lombok.Data; import lombok.EqualsAndHashCode; import lombok.NoArgsConstructor; /** * 商品更新数据 * * @author <a href="https://github.com/lixize">Zeyes</a> */ @Data @NoArgsConstructor @EqualsAndHashCode(callSuper = true) @JsonInclude(JsonInclude.Include.NON_NULL) public class SpuUpdateInfo extends SpuInfo { /** 添加完成后是否立即上架。1:是;0:否;默认0 */ @JsonProperty("listing") private Integer listing; }
java
Apache-2.0
84b5c4d2d0774f800237634e5d0336f53c004fe3
2026-01-04T14:46:39.499027Z
false
binarywang/WxJava
https://github.com/binarywang/WxJava/blob/84b5c4d2d0774f800237634e5d0336f53c004fe3/weixin-java-channel/src/main/java/me/chanjar/weixin/channel/bean/product/SkuStockResponse.java
weixin-java-channel/src/main/java/me/chanjar/weixin/channel/bean/product/SkuStockResponse.java
package me.chanjar.weixin.channel.bean.product; import com.fasterxml.jackson.annotation.JsonProperty; import lombok.Data; import lombok.EqualsAndHashCode; import lombok.NoArgsConstructor; import me.chanjar.weixin.channel.bean.base.WxChannelBaseResponse; /** * 库存信息响应 * * @author <a href="https://github.com/lixize">Zeyes</a> */ @Data @NoArgsConstructor @EqualsAndHashCode(callSuper = true) public class SkuStockResponse extends WxChannelBaseResponse { private static final long serialVersionUID = -2156342792354605826L; /** 库存信息 */ @JsonProperty("data") private SkuStockInfo data; }
java
Apache-2.0
84b5c4d2d0774f800237634e5d0336f53c004fe3
2026-01-04T14:46:39.499027Z
false
binarywang/WxJava
https://github.com/binarywang/WxJava/blob/84b5c4d2d0774f800237634e5d0336f53c004fe3/weixin-java-channel/src/main/java/me/chanjar/weixin/channel/bean/product/SpuStockInfo.java
weixin-java-channel/src/main/java/me/chanjar/weixin/channel/bean/product/SpuStockInfo.java
package me.chanjar.weixin.channel.bean.product; import com.fasterxml.jackson.annotation.JsonProperty; import java.io.Serializable; import java.util.List; import lombok.Data; import lombok.NoArgsConstructor; /** * SPU库存信息 * * @author <a href="https://github.com/lixize">Zeyes</a> */ @Data @NoArgsConstructor public class SpuStockInfo implements Serializable { /** 商品ID */ @JsonProperty("product_id") protected String productId; /** sku库存 */ @JsonProperty("sku_stock") private List<SkuStockInfo> skuStock; }
java
Apache-2.0
84b5c4d2d0774f800237634e5d0336f53c004fe3
2026-01-04T14:46:39.499027Z
false
binarywang/WxJava
https://github.com/binarywang/WxJava/blob/84b5c4d2d0774f800237634e5d0336f53c004fe3/weixin-java-channel/src/main/java/me/chanjar/weixin/channel/bean/product/SkuStockParam.java
weixin-java-channel/src/main/java/me/chanjar/weixin/channel/bean/product/SkuStockParam.java
package me.chanjar.weixin.channel.bean.product; import com.fasterxml.jackson.annotation.JsonProperty; import java.io.Serializable; import lombok.AllArgsConstructor; import lombok.Data; import lombok.NoArgsConstructor; /** * @author <a href="https://github.com/lixize">Zeyes</a> */ @Data @NoArgsConstructor @AllArgsConstructor public class SkuStockParam implements Serializable { private static final long serialVersionUID = -5542939078361208816L; /** 内部商品ID */ @JsonProperty("product_id") protected String productId; /** 内部sku_id */ @JsonProperty("sku_id") protected String skuId; /** 修改类型。1: 增加;2:减少;3:设置 */ @JsonProperty("diff_type") protected Integer diffType; /** 增加、减少或者设置的库存值 */ @JsonProperty("num") protected Integer num; }
java
Apache-2.0
84b5c4d2d0774f800237634e5d0336f53c004fe3
2026-01-04T14:46:39.499027Z
false
binarywang/WxJava
https://github.com/binarywang/WxJava/blob/84b5c4d2d0774f800237634e5d0336f53c004fe3/weixin-java-channel/src/main/java/me/chanjar/weixin/channel/bean/product/SkuStockInfo.java
weixin-java-channel/src/main/java/me/chanjar/weixin/channel/bean/product/SkuStockInfo.java
package me.chanjar.weixin.channel.bean.product; import com.fasterxml.jackson.annotation.JsonProperty; import java.io.Serializable; import java.util.List; import lombok.Data; import lombok.NoArgsConstructor; /** * 商品库存 * * @author <a href="https://github.com/lixize">Zeyes</a> */ @Data @NoArgsConstructor public class SkuStockInfo implements Serializable { private static final long serialVersionUID = 4719729125885685958L; /** 通用库存数量 */ @JsonProperty("normal_stock_num") private Integer normalStockNum; /** 限时抢购库存数量 */ @JsonProperty("limited_discount_stock_num") private Integer limitedDiscountStockNum; /** 区域库存 */ @JsonProperty("warehouse_stocks") private List<WarehouseStockInfo> warehouseStocks; /** * 普通查询:库存总量:通用库存数量 + 限时抢购库存数量 + 区域库存总量 * 批量查询:库存总量:通用库存数量 + 限时抢购库存数量 + 区域库存数量 + 达人专属计划营销库存数量 */ @JsonProperty("total_stock_num") private Integer totalStockNum; /** 达人专属计划营销库存数量 */ @JsonProperty("finder_stock_num") private Integer finderTotalNum; }
java
Apache-2.0
84b5c4d2d0774f800237634e5d0336f53c004fe3
2026-01-04T14:46:39.499027Z
false
binarywang/WxJava
https://github.com/binarywang/WxJava/blob/84b5c4d2d0774f800237634e5d0336f53c004fe3/weixin-java-channel/src/main/java/me/chanjar/weixin/channel/bean/product/SkuInfo.java
weixin-java-channel/src/main/java/me/chanjar/weixin/channel/bean/product/SkuInfo.java
package me.chanjar.weixin.channel.bean.product; import com.fasterxml.jackson.annotation.JsonProperty; import java.io.Serializable; import java.util.List; import lombok.Data; import me.chanjar.weixin.channel.bean.base.AttrInfo; /** * SKU信息 * * @author <a href="https://github.com/lixize">Zeyes</a> */ @Data public class SkuInfo implements Serializable { private static final long serialVersionUID = -8734396136299597845L; /** 商家自定义商品ID */ @JsonProperty("out_product_id") private String outProductId; /** 商家自定义skuID */ @JsonProperty("out_sku_id") private String outSkuId; /** sku小图 */ @JsonProperty("thumb_img") private String thumbImg; /** 售卖价格,以分为单位,数字类型,最大不超过10000000(1000万元) */ @JsonProperty("sale_price") private Integer salePrice; /** 市场价格,以分为单位,数字类型,最大不超过10000000(1000万元),且必须比sale_price大 */ @JsonProperty("market_price") private Integer marketPrice; /** 库存,数字类型,最大不超过10000000(1000万) */ @JsonProperty("stock_num") private Integer stockNum; /** 商品编码,字符类型,最长不超过20 */ @JsonProperty("sku_code") private String skuCode; /** SKU属性 */ @JsonProperty("sku_attrs") private List<AttrInfo> attrs; /** sku发货信息 */ @JsonProperty("sku_deliver_info") private SkuDeliverInfo skuDeliverInfo; /** skuID */ @JsonProperty("sku_id") private String skuId; public SkuInfo() { } public SkuInfo(String outProductId, String outSkuId) { this.outProductId = outProductId; this.outSkuId = outSkuId; } }
java
Apache-2.0
84b5c4d2d0774f800237634e5d0336f53c004fe3
2026-01-04T14:46:39.499027Z
false
binarywang/WxJava
https://github.com/binarywang/WxJava/blob/84b5c4d2d0774f800237634e5d0336f53c004fe3/weixin-java-channel/src/main/java/me/chanjar/weixin/channel/bean/product/ProductQuaInfo.java
weixin-java-channel/src/main/java/me/chanjar/weixin/channel/bean/product/ProductQuaInfo.java
package me.chanjar.weixin.channel.bean.product; import com.fasterxml.jackson.annotation.JsonProperty; import java.io.Serializable; import java.util.List; import lombok.AllArgsConstructor; import lombok.Data; import lombok.NoArgsConstructor; /** * 商品资质信息 * * @author <a href="https://github.com/lixize">Zeyes</a> */ @Data @NoArgsConstructor @AllArgsConstructor public class ProductQuaInfo implements Serializable { private static final long serialVersionUID = -71766140204505768L; /** 商品资质id,对应获取类目信息中的字段product_qua_list[].qua_id */ @JsonProperty("qua_id") private String quaId; /** 商品资质图片列表 */ @JsonProperty("qua_url") private List<String> quaUrl; }
java
Apache-2.0
84b5c4d2d0774f800237634e5d0336f53c004fe3
2026-01-04T14:46:39.499027Z
false