spus;
17 | }
18 |
--------------------------------------------------------------------------------
/weixin-java-miniapp/src/main/java/cn/binarywang/wx/miniapp/bean/product/WxMinishopUpdateGoodsSkuData.java:
--------------------------------------------------------------------------------
1 | package cn.binarywang.wx.miniapp.bean.product;
2 |
3 | import com.google.gson.annotations.SerializedName;
4 | import java.io.Serializable;
5 | import lombok.Data;
6 |
7 | @Data
8 | public class WxMinishopUpdateGoodsSkuData implements Serializable {
9 | private static final long serialVersionUID = -2596988603027040989L;
10 | @SerializedName("sku_id")
11 | private Long skuId;
12 | @SerializedName("out_sku_id")
13 | private String outSkuId;
14 | @SerializedName("update_time")
15 | private String updateTime;
16 | }
17 |
--------------------------------------------------------------------------------
/weixin-java-miniapp/src/main/java/cn/binarywang/wx/miniapp/bean/promoter/response/WxMaPromotionUpdatePromoterResponse.java:
--------------------------------------------------------------------------------
1 | package cn.binarywang.wx.miniapp.bean.promoter.response;
2 |
3 | import cn.binarywang.wx.miniapp.bean.WxMaBaseResponse;
4 | import lombok.Data;
5 | import lombok.EqualsAndHashCode;
6 |
7 | import java.io.Serializable;
8 |
9 | /**
10 | * @author zhuangzibin
11 | */
12 |
13 | @Data
14 | @EqualsAndHashCode(callSuper = true)
15 | public class WxMaPromotionUpdatePromoterResponse extends WxMaBaseResponse implements Serializable {
16 |
17 | private static final long serialVersionUID = 4181066183104514177L;
18 | }
19 |
--------------------------------------------------------------------------------
/weixin-java-miniapp/src/main/java/cn/binarywang/wx/miniapp/bean/promoter/response/WxMaPromotionUpdateRoleResponse.java:
--------------------------------------------------------------------------------
1 | package cn.binarywang.wx.miniapp.bean.promoter.response;
2 |
3 | import cn.binarywang.wx.miniapp.bean.WxMaBaseResponse;
4 | import lombok.Data;
5 | import lombok.EqualsAndHashCode;
6 |
7 | import java.io.Serializable;
8 |
9 | /**
10 | * @author zhuangzibin
11 | */
12 |
13 | @Data
14 | @EqualsAndHashCode(callSuper = true)
15 | public class WxMaPromotionUpdateRoleResponse extends WxMaBaseResponse implements Serializable {
16 |
17 | private static final long serialVersionUID = -7820893467305453782L;
18 |
19 | }
20 |
--------------------------------------------------------------------------------
/weixin-java-miniapp/src/main/java/cn/binarywang/wx/miniapp/bean/shop/WxMaShopAccountGetInfo.java:
--------------------------------------------------------------------------------
1 | package cn.binarywang.wx.miniapp.bean.shop;
2 |
3 | import com.google.gson.annotations.SerializedName;
4 | import lombok.Data;
5 |
6 | import java.io.Serializable;
7 |
8 | /**
9 | * @author liming1019
10 | * created on 2021/8/9
11 | */
12 | @Data
13 | public class WxMaShopAccountGetInfo implements Serializable {
14 | /**
15 | * 品牌ID
16 | */
17 | @SerializedName("brand_id")
18 | private Long brandId;
19 |
20 | /**
21 | * 品牌名称
22 | */
23 | @SerializedName("brand_wording")
24 | private String brandWording;
25 | }
26 |
27 |
--------------------------------------------------------------------------------
/weixin-java-miniapp/src/main/java/cn/binarywang/wx/miniapp/bean/shop/request/WxMaShopRegisterApplySceneRequest.java:
--------------------------------------------------------------------------------
1 | package cn.binarywang.wx.miniapp.bean.shop.request;
2 |
3 | import com.google.gson.annotations.SerializedName;
4 | import lombok.Data;
5 |
6 | import java.io.Serializable;
7 |
8 | /**
9 | * @author liming1019
10 | * created on 2021/8/6
11 | */
12 | @Data
13 | public class WxMaShopRegisterApplySceneRequest implements Serializable {
14 |
15 | private static final long serialVersionUID = -3008686013597621522L;
16 | /**
17 | * 1:视频号、公众号场景
18 | */
19 | @SerializedName("scene_group_id")
20 | private Long sceneGroupId;
21 | }
22 |
23 |
--------------------------------------------------------------------------------
/weixin-java-miniapp/src/main/java/cn/binarywang/wx/miniapp/bean/shop/response/WxMaOrderShippingInfoGetResponse.java:
--------------------------------------------------------------------------------
1 | package cn.binarywang.wx.miniapp.bean.shop.response;
2 |
3 | import com.google.gson.annotations.SerializedName;
4 | import lombok.Data;
5 |
6 | import java.io.Serializable;
7 |
8 | /**
9 | * @author xzh
10 | * created on 2023/5/17 17:01
11 | */
12 | @Data
13 | public class WxMaOrderShippingInfoGetResponse extends WxMaOrderShippingInfoBaseResponse implements Serializable {
14 | private static final long serialVersionUID = -5414031943436195493L;
15 |
16 | /**
17 | * 支付单信息
18 | */
19 | @SerializedName("order")
20 | private Order order;
21 |
22 | }
23 |
--------------------------------------------------------------------------------
/weixin-java-miniapp/src/main/java/cn/binarywang/wx/miniapp/bean/shop/response/WxMaShopAfterSaleAddResponse.java:
--------------------------------------------------------------------------------
1 | package cn.binarywang.wx.miniapp.bean.shop.response;
2 |
3 | import com.google.gson.annotations.SerializedName;
4 | import java.io.Serializable;
5 | import lombok.Data;
6 |
7 | /**
8 | * @author leiin
9 | * created on 2022/6/28 11:29 上午
10 | */
11 | @Data
12 | public class WxMaShopAfterSaleAddResponse extends WxMaShopBaseResponse implements Serializable {
13 | @SerializedName("aftersale_id")
14 | private String aftersaleId;
15 | }
16 |
--------------------------------------------------------------------------------
/weixin-java-miniapp/src/main/java/cn/binarywang/wx/miniapp/bean/shop/response/WxMaShopAuditBrandResponse.java:
--------------------------------------------------------------------------------
1 | package cn.binarywang.wx.miniapp.bean.shop.response;
2 |
3 | import com.google.gson.annotations.SerializedName;
4 | import lombok.Data;
5 | import lombok.EqualsAndHashCode;
6 |
7 | import java.io.Serializable;
8 |
9 | /**
10 | * @author liming1019
11 | * created on 2021/8/12
12 | */
13 | @Data
14 | @EqualsAndHashCode(callSuper = true)
15 | public class WxMaShopAuditBrandResponse extends WxMaShopBaseResponse implements Serializable {
16 | private static final long serialVersionUID = -4643316662725276237L;
17 |
18 | @SerializedName("audit_id")
19 | private String auditId;
20 | }
21 |
--------------------------------------------------------------------------------
/weixin-java-miniapp/src/main/java/cn/binarywang/wx/miniapp/bean/shop/response/WxMaShopAuditCategoryResponse.java:
--------------------------------------------------------------------------------
1 | package cn.binarywang.wx.miniapp.bean.shop.response;
2 |
3 | import com.google.gson.annotations.SerializedName;
4 | import lombok.Data;
5 | import lombok.EqualsAndHashCode;
6 |
7 | import java.io.Serializable;
8 |
9 | /**
10 | * @author liming1019
11 | * created on 2021/8/12
12 | */
13 | @Data
14 | @EqualsAndHashCode(callSuper = true)
15 | public class WxMaShopAuditCategoryResponse extends WxMaShopBaseResponse implements Serializable {
16 | private static final long serialVersionUID = -1822188134865177738L;
17 |
18 | @SerializedName("audit_id")
19 | private String auditId;
20 | }
21 |
--------------------------------------------------------------------------------
/weixin-java-miniapp/src/main/java/cn/binarywang/wx/miniapp/bean/shop/response/WxMaShopCouponResponse.java:
--------------------------------------------------------------------------------
1 | package cn.binarywang.wx.miniapp.bean.shop.response;
2 |
3 | import cn.binarywang.wx.miniapp.bean.shop.WxMaShopCouponInfo;
4 | import lombok.Data;
5 |
6 | /**
7 | * @author leiin
8 | * created on 2022/7/1 3:34 下午
9 | */
10 | @Data
11 | public class WxMaShopCouponResponse extends WxMaShopBaseResponse {
12 | private ResponseCouponResult result;
13 |
14 | @Data
15 | public static class ResponseCouponResult {
16 | private WxMaShopCouponInfo coupon;
17 | }
18 | }
19 |
--------------------------------------------------------------------------------
/weixin-java-miniapp/src/main/java/cn/binarywang/wx/miniapp/config/impl/WxMaRedisConnectionConfigImpl.java:
--------------------------------------------------------------------------------
1 | package cn.binarywang.wx.miniapp.config.impl;
2 |
3 | import lombok.RequiredArgsConstructor;
4 | import redis.clients.jedis.Jedis;
5 |
6 | /**
7 | * 基于Redis的微信配置provider. 使用自己管理的 Jedis 实例进行 Redis 操作。
8 | *
9 | *
10 | * 需要引入依赖jedis-lock,才能使用该类。
11 | *
12 | */
13 | @RequiredArgsConstructor
14 | public class WxMaRedisConnectionConfigImpl extends AbstractWxMaRedisConfig {
15 | private final Jedis jedis;
16 |
17 | @Override
18 | protected Jedis getJedis() {
19 | return jedis;
20 | }
21 | }
22 |
--------------------------------------------------------------------------------
/weixin-java-miniapp/src/main/java/cn/binarywang/wx/miniapp/message/WxMaMessageMatcher.java:
--------------------------------------------------------------------------------
1 | package cn.binarywang.wx.miniapp.message;
2 |
3 | import cn.binarywang.wx.miniapp.bean.WxMaMessage;
4 |
5 | /**
6 | * 消息匹配器,用在消息路由的时候.
7 | *
8 | * @author Binary Wang
9 | */
10 | public interface WxMaMessageMatcher {
11 |
12 | /**
13 | * 消息是否匹配某种模式.
14 | *
15 | * @param message 消息
16 | * @return 是否匹配
17 | */
18 | boolean match(WxMaMessage message);
19 |
20 | }
21 |
--------------------------------------------------------------------------------
/weixin-java-miniapp/src/test/java/cn/binarywang/wx/miniapp/test/AddOrderJsonTest.java:
--------------------------------------------------------------------------------
1 | package cn.binarywang.wx.miniapp.test;
2 |
3 | import cn.binarywang.wx.miniapp.bean.delivery.AddOrderRequest;
4 | import me.chanjar.weixin.common.util.json.WxGsonBuilder;
5 | import org.testng.annotations.Test;
6 |
7 | public class AddOrderJsonTest {
8 |
9 | /**
10 | * 验证转化Json时是否有deliverySign
11 | */
12 | @Test
13 | public void test(){
14 | AddOrderRequest request = new AddOrderRequest();
15 | request.setShopId("1");
16 | request.setAppSecret("2");
17 | request.getDeliverySign();
18 | System.out.printf(WxGsonBuilder.create().toJson(request));
19 | }
20 | }
21 |
--------------------------------------------------------------------------------
/weixin-java-miniapp/src/test/java/cn/binarywang/wx/miniapp/test/TestConstants.java:
--------------------------------------------------------------------------------
1 | package cn.binarywang.wx.miniapp.test;
2 |
3 | /**
4 | *
5 | * 仅供测试使用的一些常量
6 | * Created by Binary Wang on 2017-3-9.
7 | *
8 | */
9 | public class TestConstants {
10 | ///////////////////////
11 | // 文件类型
12 | ///////////////////////
13 | public static final String FILE_JPG = "jpeg";
14 | public static final String FILE_MP3 = "mp3";
15 | public static final String FILE_AMR = "amr";
16 | public static final String FILE_MP4 = "mp4";
17 | }
18 |
--------------------------------------------------------------------------------
/weixin-java-miniapp/src/test/resources/logback-test.xml:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 | %d{HH:mm:ss.SSS} [%thread] %-5level %replace(%caller{1}){'Caller', ''} - %msg%n
6 |
7 |
8 |
9 |
10 |
11 |
12 |
13 |
14 |
--------------------------------------------------------------------------------
/weixin-java-miniapp/src/test/resources/tmp.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/binarywang/WxJava/84c69d4900ff94bb919c71d27c5ff8e2c73bd8ac/weixin-java-miniapp/src/test/resources/tmp.png
--------------------------------------------------------------------------------
/weixin-java-miniapp/src/test/resources/wx-ma-jssecacerts:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/binarywang/WxJava/84c69d4900ff94bb919c71d27c5ff8e2c73bd8ac/weixin-java-miniapp/src/test/resources/wx-ma-jssecacerts
--------------------------------------------------------------------------------
/weixin-java-miniapp/src/test/resources/wx-mp-jssecacerts:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/binarywang/WxJava/84c69d4900ff94bb919c71d27c5ff8e2c73bd8ac/weixin-java-miniapp/src/test/resources/wx-mp-jssecacerts
--------------------------------------------------------------------------------
/weixin-java-mp/src/main/java/me/chanjar/weixin/mp/api/WxMpMessageMatcher.java:
--------------------------------------------------------------------------------
1 | package me.chanjar.weixin.mp.api;
2 |
3 | import me.chanjar.weixin.mp.bean.message.WxMpXmlMessage;
4 |
5 | /**
6 | * 消息匹配器,用在消息路由的时候
7 | */
8 | public interface WxMpMessageMatcher {
9 |
10 | /**
11 | * 消息是否匹配某种模式
12 | *
13 | * @param message the message
14 | * @return the boolean
15 | */
16 | boolean match(WxMpXmlMessage message);
17 |
18 | }
19 |
--------------------------------------------------------------------------------
/weixin-java-mp/src/main/java/me/chanjar/weixin/mp/api/impl/WxMpServiceImpl.java:
--------------------------------------------------------------------------------
1 | package me.chanjar.weixin.mp.api.impl;
2 |
3 | /**
4 | *
5 | * 默认接口实现类,使用apache httpclient实现
6 | * Created by Binary Wang on 2017-5-27.
7 | *
8 | *
9 | * @author Binary Wang
10 | */
11 | public class WxMpServiceImpl extends WxMpServiceHttpClientImpl {
12 | }
13 |
--------------------------------------------------------------------------------
/weixin-java-mp/src/main/java/me/chanjar/weixin/mp/bean/WxMpMassVideo.java:
--------------------------------------------------------------------------------
1 | package me.chanjar.weixin.mp.bean;
2 |
3 | import lombok.Data;
4 | import me.chanjar.weixin.mp.util.json.WxMpGsonBuilder;
5 |
6 | import java.io.Serializable;
7 |
8 | /**
9 | * 群发时用到的视频素材
10 | *
11 | * @author chanjarster
12 | */
13 | @Data
14 | public class WxMpMassVideo implements Serializable {
15 | private static final long serialVersionUID = 9153925016061915637L;
16 |
17 | private String mediaId;
18 | private String title;
19 | private String description;
20 |
21 | public String toJson() {
22 | return WxMpGsonBuilder.create().toJson(this);
23 | }
24 | }
25 |
--------------------------------------------------------------------------------
/weixin-java-mp/src/main/java/me/chanjar/weixin/mp/bean/card/AbstractCardCreateRequest.java:
--------------------------------------------------------------------------------
1 | package me.chanjar.weixin.mp.bean.card;
2 |
3 | import lombok.Data;
4 |
5 | import java.io.Serializable;
6 |
7 | /**
8 | * .
9 | *
10 | * @author leeis
11 | * created on 2018/12/29
12 | */
13 | @Data
14 | public abstract class AbstractCardCreateRequest implements Serializable {
15 | private static final long serialVersionUID = -260291223712818801L;
16 |
17 | }
18 |
--------------------------------------------------------------------------------
/weixin-java-mp/src/main/java/me/chanjar/weixin/mp/bean/card/BaseWxMpCardResult.java:
--------------------------------------------------------------------------------
1 | package me.chanjar.weixin.mp.bean.card;
2 |
3 | import java.io.Serializable;
4 |
5 | /**
6 | * 卡券返回结果基础类.
7 | *
8 | * @author fanxl
9 | * created on 2019/1/22 0022 10:08
10 | */
11 | public class BaseWxMpCardResult implements Serializable {
12 | private static final long serialVersionUID = -3502867243738689870L;
13 |
14 | /**
15 | * 错误码
16 | */
17 | private Integer errcode;
18 |
19 | /**
20 | * 错误信息
21 | */
22 | private String errmsg;
23 |
24 | public boolean isSuccess() {
25 | return 0 == errcode;
26 | }
27 | }
28 |
--------------------------------------------------------------------------------
/weixin-java-mp/src/main/java/me/chanjar/weixin/mp/bean/card/Card.java:
--------------------------------------------------------------------------------
1 | package me.chanjar.weixin.mp.bean.card;
2 |
3 | import com.google.gson.annotations.SerializedName;
4 | import lombok.Data;
5 |
6 | import java.io.Serializable;
7 |
8 | /**
9 | * .
10 | * @author leeis
11 | * created on 2018/12/29
12 | */
13 | @Data
14 | public class Card implements Serializable {
15 | private static final long serialVersionUID = -3697110761983756780L;
16 |
17 | /**
18 | * 基本信息.
19 | */
20 | @SerializedName("base_info")
21 | private BaseInfo baseInfo;
22 |
23 | /**
24 | * 创建优惠券特有的高级字段.
25 | */
26 | @SerializedName("advanced_info")
27 | private AdvancedInfo advancedInfo;
28 |
29 | }
30 |
--------------------------------------------------------------------------------
/weixin-java-mp/src/main/java/me/chanjar/weixin/mp/bean/card/PayInfo.java:
--------------------------------------------------------------------------------
1 | package me.chanjar.weixin.mp.bean.card;
2 |
3 | import java.io.Serializable;
4 |
5 | import com.google.gson.annotations.SerializedName;
6 | import lombok.Data;
7 | import me.chanjar.weixin.mp.util.json.WxMpGsonBuilder;
8 |
9 | /**
10 | * 支付功能.
11 | * @author yuanqixun
12 | * date:2018-08-25 00:33
13 | */
14 | @Data
15 | public class PayInfo implements Serializable {
16 |
17 | /**
18 | * 刷卡功能
19 | */
20 | @SerializedName("swipe_card")
21 | private SwipeCard swipeCard;
22 |
23 | @Override
24 | public String toString() {
25 | return WxMpGsonBuilder.create().toJson(this);
26 | }
27 | }
28 |
--------------------------------------------------------------------------------
/weixin-java-mp/src/main/java/me/chanjar/weixin/mp/bean/card/enums/BusinessServiceType.java:
--------------------------------------------------------------------------------
1 | package me.chanjar.weixin.mp.bean.card.enums;
2 |
3 | /**
4 | * 商户提供服务类型
5 | */
6 | public enum BusinessServiceType {
7 | BIZ_SERVICE_DELIVER("外卖服务"),
8 | BIZ_SERVICE_FREE_PARK("停车位"),
9 | BIZ_SERVICE_WITH_PET("可带宠物"),
10 | BIZ_SERVICE_FREE_WIFI("可带宠物");
11 |
12 | private final String description;
13 |
14 | BusinessServiceType(String description) {
15 | this.description = description;
16 | }
17 |
18 | public String getDescription() {
19 | return description;
20 | }
21 | }
22 |
--------------------------------------------------------------------------------
/weixin-java-mp/src/main/java/me/chanjar/weixin/mp/bean/card/enums/CardCodeType.java:
--------------------------------------------------------------------------------
1 | package me.chanjar.weixin.mp.bean.card.enums;
2 |
3 | public enum CardCodeType {
4 |
5 | CODE_TYPE_TEXT("文本"),
6 | CODE_TYPE_NONE("不显示任何码型"),
7 | CODE_TYPE_ONLY_BARCODE("仅显示一维码"),
8 | CODE_TYPE_ONLY_QRCODE("仅显示二维码"),
9 | CODE_TYPE_BARCODE("一维码"),
10 | CODE_TYPE_QRCODE("二维码");
11 |
12 | private final String description;
13 |
14 | CardCodeType(String description) {
15 | this.description = description;
16 | }
17 |
18 | public String getDescription() {
19 | return description;
20 | }
21 | }
22 |
--------------------------------------------------------------------------------
/weixin-java-mp/src/main/java/me/chanjar/weixin/mp/bean/card/enums/CardFieldType.java:
--------------------------------------------------------------------------------
1 | package me.chanjar.weixin.mp.bean.card.enums;
2 |
3 | /**
4 | * 微信卡券激活字段类型
5 | *
6 | * @author yuanqixun
7 | * created on 2018-08-30
8 | */
9 | public enum CardFieldType {
10 | COMMON_FIELD("微信选项"),
11 | CUSTOM_FIELD("自定义选项"),
12 | RICH_FIELD("自定义富文本类型");
13 |
14 | private final String description;
15 |
16 | CardFieldType(String description) {
17 | this.description = description;
18 | }
19 |
20 | public String getDescription() {
21 | return description;
22 | }
23 | }
24 |
--------------------------------------------------------------------------------
/weixin-java-mp/src/main/java/me/chanjar/weixin/mp/bean/card/enums/CardRichFieldType.java:
--------------------------------------------------------------------------------
1 | package me.chanjar.weixin.mp.bean.card.enums;
2 |
3 | /**
4 | * 会员卡富文本字段类型
5 | *
6 | * @author yuanqixun
7 | * created on 2018-08-30
8 | */
9 | public enum CardRichFieldType {
10 | FORM_FIELD_RADIO("自定义单选"),
11 | FORM_FIELD_SELECT("自定义选择项"),
12 | FORM_FIELD_CHECK_BOX("自定义多选");
13 |
14 | private final String description;
15 |
16 | CardRichFieldType(String description) {
17 | this.description = description;
18 | }
19 |
20 | public String getDescription() {
21 | return description;
22 | }
23 | }
24 |
--------------------------------------------------------------------------------
/weixin-java-mp/src/main/java/me/chanjar/weixin/mp/bean/card/enums/CardSceneType.java:
--------------------------------------------------------------------------------
1 | package me.chanjar.weixin.mp.bean.card.enums;
2 |
3 | public enum CardSceneType {
4 | SCENE_NEAR_BY("附近"),
5 | SCENE_MENU("自定义菜单"),
6 | SCENE_QRCODE("二维码"),
7 | SCENE_ARTICLE("公众号文章"),
8 | SCENE_H5("H5"),
9 | SCENE_IVR("自动回复"),
10 | SCENE_CARD_CUSTOM_CELL("卡券自定义cell");
11 |
12 | private final String description;
13 |
14 | CardSceneType(String description) {
15 | this.description = description;
16 | }
17 |
18 | public String getDescription() {
19 | return description;
20 | }
21 | }
22 |
--------------------------------------------------------------------------------
/weixin-java-mp/src/main/java/me/chanjar/weixin/mp/bean/card/enums/CardStatusType.java:
--------------------------------------------------------------------------------
1 | package me.chanjar.weixin.mp.bean.card.enums;
2 |
3 | public enum CardStatusType {
4 | CARD_STATUS_NOT_VERIFY("待审核"),
5 | CARD_STATUS_VERIFY_FAIL("审核失败"),
6 | CARD_STATUS_VERIFY_OK("通过审核"),
7 | CARD_STATUS_DELETE("卡券被商户删除"),
8 | CARD_STATUS_DISPATCH("在公众平台投放过的卡券");
9 |
10 | private final String description;
11 |
12 | CardStatusType(String description) {
13 | this.description = description;
14 | }
15 |
16 | public String getDescription() {
17 | return description;
18 | }
19 | }
20 |
--------------------------------------------------------------------------------
/weixin-java-mp/src/main/java/me/chanjar/weixin/mp/bean/card/enums/DateInfoType.java:
--------------------------------------------------------------------------------
1 | package me.chanjar.weixin.mp.bean.card.enums;
2 |
3 | public enum DateInfoType {
4 | DATE_TYPE_PERMANENT("永久有效类型"),
5 | DATE_TYPE_FIX_TIME_RANGE("固定日期"),
6 | DATE_TYPE_FIX_TERM("固定时长");
7 |
8 | private final String description;
9 |
10 | DateInfoType(String description) {
11 | this.description = description;
12 | }
13 |
14 | public String getDescription() {
15 | return description;
16 | }
17 | }
18 |
--------------------------------------------------------------------------------
/weixin-java-mp/src/main/java/me/chanjar/weixin/mp/bean/card/membercard/ActivatePluginParam.java:
--------------------------------------------------------------------------------
1 | package me.chanjar.weixin.mp.bean.card.membercard;
2 |
3 | import com.google.gson.annotations.SerializedName;
4 | import lombok.Data;
5 |
6 | /**
7 | * @author yqx
8 | * created on 2018/9/19
9 | */
10 | @Data
11 | public class ActivatePluginParam {
12 |
13 | @SerializedName("encrypt_card_id")
14 | String encryptCardId;
15 |
16 | @SerializedName("outer_str")
17 | String outerStr;
18 |
19 | @SerializedName("biz")
20 | String biz;
21 |
22 | }
23 |
--------------------------------------------------------------------------------
/weixin-java-mp/src/main/java/me/chanjar/weixin/mp/bean/card/membercard/ActivatePluginParamResult.java:
--------------------------------------------------------------------------------
1 | package me.chanjar.weixin.mp.bean.card.membercard;
2 |
3 | import lombok.Data;
4 |
5 | /**
6 | * @author yqx
7 | * created on 2018/9/19
8 | */
9 | @Data
10 | public class ActivatePluginParamResult {
11 |
12 | private int errcode;
13 |
14 | private String errmsg;
15 |
16 | private String url;
17 |
18 | }
19 |
--------------------------------------------------------------------------------
/weixin-java-mp/src/main/java/me/chanjar/weixin/mp/bean/card/membercard/MemberCardUserInfo.java:
--------------------------------------------------------------------------------
1 | package me.chanjar.weixin.mp.bean.card.membercard;
2 |
3 | import lombok.Data;
4 |
5 | import java.io.Serializable;
6 |
7 | /**
8 | * @author YuJian
9 | * created on 2017/7/11
10 | */
11 | @Data
12 | public class MemberCardUserInfo implements Serializable {
13 | private static final long serialVersionUID = -4259196162619282129L;
14 |
15 | private NameValues[] commonFieldList;
16 |
17 | private NameValues[] customFieldList;
18 |
19 | }
20 |
--------------------------------------------------------------------------------
/weixin-java-mp/src/main/java/me/chanjar/weixin/mp/bean/card/membercard/NameValues.java:
--------------------------------------------------------------------------------
1 | package me.chanjar.weixin.mp.bean.card.membercard;
2 |
3 | import lombok.Data;
4 |
5 | import java.io.Serializable;
6 |
7 | /**
8 | *
9 | * @author YuJian
10 | * created on 2017/7/11
11 | */
12 | @Data
13 | public class NameValues implements Serializable{
14 | private static final long serialVersionUID = -8529369702944594330L;
15 |
16 | private String name;
17 |
18 | private String value;
19 |
20 | private String[] valueList;
21 |
22 | }
23 |
--------------------------------------------------------------------------------
/weixin-java-mp/src/main/java/me/chanjar/weixin/mp/bean/device/AbstractDeviceBean.java:
--------------------------------------------------------------------------------
1 | package me.chanjar.weixin.mp.bean.device;
2 |
3 | import me.chanjar.weixin.common.util.json.WxGsonBuilder;
4 |
5 | import java.io.Serializable;
6 |
7 | /**
8 | * 设备抽象类.
9 | *
10 | * @author keungtung
11 | * created on 14/12/2016
12 | */
13 | public abstract class AbstractDeviceBean implements Serializable {
14 | private static final long serialVersionUID = 4359729626772515385L;
15 |
16 | public String toJson() {
17 | return WxGsonBuilder.create().toJson(this);
18 | }
19 | }
20 |
--------------------------------------------------------------------------------
/weixin-java-mp/src/main/java/me/chanjar/weixin/mp/bean/device/RespMsg.java:
--------------------------------------------------------------------------------
1 | package me.chanjar.weixin.mp.bean.device;
2 |
3 | import com.google.gson.annotations.SerializedName;
4 | import lombok.Data;
5 | import lombok.EqualsAndHashCode;
6 |
7 | /**
8 | *
9 | * @author keungtung.
10 | * created on 10/12/2016
11 | */
12 | @Data
13 | @EqualsAndHashCode(callSuper = false)
14 | public class RespMsg extends AbstractDeviceBean {
15 | private static final long serialVersionUID = -4241272701707684136L;
16 |
17 | @SerializedName("ret_code")
18 | private Integer retCode;
19 | @SerializedName("error_info")
20 | private String errorInfo;
21 | }
22 |
--------------------------------------------------------------------------------
/weixin-java-mp/src/main/java/me/chanjar/weixin/mp/bean/device/WxDeviceBind.java:
--------------------------------------------------------------------------------
1 | package me.chanjar.weixin.mp.bean.device;
2 |
3 | import com.google.gson.annotations.SerializedName;
4 | import lombok.Data;
5 | import lombok.EqualsAndHashCode;
6 |
7 | /**
8 | * @author keungtung.
9 | * created on 10/12/2016
10 | */
11 | @Data
12 | @EqualsAndHashCode(callSuper = false)
13 | public class WxDeviceBind extends AbstractDeviceBean {
14 | private static final long serialVersionUID = 467559769037590880L;
15 |
16 | private String ticket;
17 | @SerializedName("device_id")
18 | private String deviceId;
19 | @SerializedName("openid")
20 | private String openId;
21 |
22 | }
23 |
--------------------------------------------------------------------------------
/weixin-java-mp/src/main/java/me/chanjar/weixin/mp/bean/invoice/merchant/InvoiceAuthPageResult.java:
--------------------------------------------------------------------------------
1 | package me.chanjar.weixin.mp.bean.invoice.merchant;
2 |
3 | import lombok.Data;
4 |
5 | import java.io.Serializable;
6 |
7 | /**
8 | * 获取授权链接返回结果DTO
9 | *
10 | * @author Mario Luo
11 | */
12 | @Data
13 | public class InvoiceAuthPageResult implements Serializable {
14 | private static final long serialVersionUID = 2922797121045894425L;
15 |
16 | /**
17 | * 授权页地址
18 | */
19 | private String authUrl;
20 |
21 | /**
22 | * 当发起端为小程序时, 返回
23 | */
24 | private String appid;
25 | }
26 |
--------------------------------------------------------------------------------
/weixin-java-mp/src/main/java/me/chanjar/weixin/mp/bean/invoice/merchant/MerchantContactInfo.java:
--------------------------------------------------------------------------------
1 | package me.chanjar.weixin.mp.bean.invoice.merchant;
2 |
3 | import com.google.gson.annotations.SerializedName;
4 | import lombok.Data;
5 |
6 | import java.io.Serializable;
7 |
8 | /**
9 | * 商户联系信息
10 | *
11 | * @author Mario Luo
12 | */
13 | @Data
14 | public class MerchantContactInfo implements Serializable {
15 | private static final long serialVersionUID = -2008465944249686100L;
16 |
17 | /**
18 | * 联系电话
19 | */
20 | private String phone;
21 |
22 | /**
23 | * 开票超时时间
24 | */
25 | @SerializedName("time_out")
26 | private Integer timeout;
27 |
28 | }
29 |
--------------------------------------------------------------------------------
/weixin-java-mp/src/main/java/me/chanjar/weixin/mp/bean/invoice/merchant/MerchantContactInfoWrapper.java:
--------------------------------------------------------------------------------
1 | package me.chanjar.weixin.mp.bean.invoice.merchant;
2 |
3 | import lombok.AllArgsConstructor;
4 | import lombok.Data;
5 |
6 | import java.io.Serializable;
7 |
8 | /**
9 | * 设置商户联系信息和发票过时时间参数
10 | *
11 | * @author Mario Luo
12 | */
13 | @Data
14 | @AllArgsConstructor
15 | public class MerchantContactInfoWrapper implements Serializable {
16 | private static final long serialVersionUID = -5377979396495452212L;
17 |
18 | private MerchantContactInfo contact;
19 | }
20 |
--------------------------------------------------------------------------------
/weixin-java-mp/src/main/java/me/chanjar/weixin/mp/bean/invoice/merchant/MerchantInvoicePlatformInfoWrapper.java:
--------------------------------------------------------------------------------
1 | package me.chanjar.weixin.mp.bean.invoice.merchant;
2 |
3 | import lombok.Data;
4 |
5 | import java.io.Serializable;
6 |
7 | /**
8 | * 设置商户联系信息和发票过时时间参数
9 | *
10 | * @author Mario Luo
11 | */
12 | @Data
13 | public class MerchantInvoicePlatformInfoWrapper implements Serializable {
14 | private static final long serialVersionUID = 7994013978048258576L;
15 |
16 | private MerchantInvoicePlatformInfo paymchInfo;
17 |
18 | }
19 |
--------------------------------------------------------------------------------
/weixin-java-mp/src/main/java/me/chanjar/weixin/mp/bean/marketing/WxMpAdLeadInfo.java:
--------------------------------------------------------------------------------
1 | package me.chanjar.weixin.mp.bean.marketing;
2 |
3 | import com.google.gson.annotations.SerializedName;
4 | import lombok.Data;
5 |
6 | import java.io.Serializable;
7 |
8 | /**
9 | * @author 007
10 | */
11 | @Data
12 | public class WxMpAdLeadInfo implements Serializable {
13 | private static final long serialVersionUID = -6462312242780350479L;
14 | @SerializedName("key")
15 | private String key;
16 | @SerializedName("value")
17 | private String value;
18 | }
19 |
--------------------------------------------------------------------------------
/weixin-java-mp/src/main/java/me/chanjar/weixin/mp/bean/material/WxMediaImgUploadResult.java:
--------------------------------------------------------------------------------
1 | package me.chanjar.weixin.mp.bean.material;
2 |
3 | import lombok.Data;
4 | import me.chanjar.weixin.mp.util.json.WxMpGsonBuilder;
5 |
6 | import java.io.Serializable;
7 |
8 | /**
9 | * @author miller
10 | */
11 | @Data
12 | public class WxMediaImgUploadResult implements Serializable {
13 | private static final long serialVersionUID = 1996392453428768829L;
14 | private String url;
15 |
16 | public static WxMediaImgUploadResult fromJson(String json) {
17 | return WxMpGsonBuilder.create().fromJson(json, WxMediaImgUploadResult.class);
18 | }
19 |
20 | }
21 |
--------------------------------------------------------------------------------
/weixin-java-mp/src/main/java/me/chanjar/weixin/mp/bean/material/WxMpMaterialArticleUpdate.java:
--------------------------------------------------------------------------------
1 | package me.chanjar.weixin.mp.bean.material;
2 |
3 | import lombok.Data;
4 | import me.chanjar.weixin.mp.util.json.WxMpGsonBuilder;
5 |
6 | import java.io.Serializable;
7 |
8 | @Data
9 | public class WxMpMaterialArticleUpdate implements Serializable {
10 | private static final long serialVersionUID = -7611963949517780270L;
11 |
12 | private String mediaId;
13 | private int index;
14 | private WxMpNewsArticle articles;
15 |
16 | public String toJson() {
17 | return WxMpGsonBuilder.create().toJson(this);
18 | }
19 | }
20 |
--------------------------------------------------------------------------------
/weixin-java-mp/src/main/java/me/chanjar/weixin/mp/builder/kefu/BaseBuilder.java:
--------------------------------------------------------------------------------
1 | package me.chanjar.weixin.mp.builder.kefu;
2 |
3 | import me.chanjar.weixin.mp.bean.kefu.WxMpKefuMessage;
4 |
5 | public class BaseBuilder {
6 | protected String msgType;
7 | protected String toUser;
8 |
9 | @SuppressWarnings("unchecked")
10 | public T toUser(String toUser) {
11 | this.toUser = toUser;
12 | return (T) this;
13 | }
14 |
15 | public WxMpKefuMessage build() {
16 | WxMpKefuMessage m = new WxMpKefuMessage();
17 | m.setMsgType(this.msgType);
18 | m.setToUser(this.toUser);
19 | return m;
20 | }
21 | }
22 |
--------------------------------------------------------------------------------
/weixin-java-mp/src/main/java/me/chanjar/weixin/mp/enums/AiLangType.java:
--------------------------------------------------------------------------------
1 | package me.chanjar.weixin.mp.enums;
2 |
3 | import lombok.Getter;
4 |
5 | /**
6 | *
7 | * AI开放接口里的语言类型,目前只支持两种:中文和英文
8 | * Created by BinaryWang on 2018/6/10.
9 | *
10 | *
11 | * @author Binary Wang
12 | */
13 | @Getter
14 | public enum AiLangType {
15 | /**
16 | * 中文 汉语.
17 | */
18 | zh_CN("zh_CN"),
19 | /**
20 | * 英文 英语.
21 | */
22 | en_US("en_US");
23 |
24 | private final String code;
25 |
26 | AiLangType(String code) {
27 | this.code = code;
28 | }
29 | }
30 |
--------------------------------------------------------------------------------
/weixin-java-mp/src/main/java/me/chanjar/weixin/mp/enums/WxCardType.java:
--------------------------------------------------------------------------------
1 | package me.chanjar.weixin.mp.enums;
2 |
3 | /**
4 | * 微信卡券类型.
5 | *
6 | * @author chenyixin
7 | * created on 2019-09-07 23:33
8 | **/
9 | public enum WxCardType {
10 | MEMBER_CARD("MEMBER_CARD"),
11 | GROUPON("GROUPON"),
12 | CASH("CASH"),
13 | DISCOUNT("DISCOUNT"),
14 | GIFT("GIFT"),
15 | GENERAL_COUPON("GENERAL_COUPON");
16 |
17 | private final String code;
18 |
19 | WxCardType(String code) {
20 | this.code = code;
21 | }
22 |
23 | public String getCode() {
24 | return code;
25 | }
26 | }
27 |
--------------------------------------------------------------------------------
/weixin-java-mp/src/main/java/me/chanjar/weixin/mp/util/WxMpConfigStorageHolder.java:
--------------------------------------------------------------------------------
1 | package me.chanjar.weixin.mp.util;
2 |
3 | /**
4 | * @author yd
5 | * created on 2019-03-20 22:06
6 | */
7 | public class WxMpConfigStorageHolder {
8 | private static final ThreadLocal THREAD_LOCAL = ThreadLocal.withInitial(() -> "default");
9 |
10 | public static String get() {
11 | return THREAD_LOCAL.get();
12 | }
13 |
14 | public static void set(String label) {
15 | THREAD_LOCAL.set(label);
16 | }
17 |
18 | /**
19 | * 此方法需要用户根据自己程序代码,在适当位置手动触发调用,本SDK里无法判断调用时机
20 | */
21 | public static void remove() {
22 | THREAD_LOCAL.remove();
23 | }
24 | }
25 |
--------------------------------------------------------------------------------
/weixin-java-mp/src/test/java/me/chanjar/weixin/mp/api/test/TestConstants.java:
--------------------------------------------------------------------------------
1 | package me.chanjar.weixin.mp.api.test;
2 |
3 | /**
4 | *
5 | * 仅供测试使用的一些常量
6 | * Created by Binary Wang on 2017-3-9.
7 | *
8 | */
9 | public class TestConstants {
10 | ///////////////////////
11 | // 文件类型
12 | ///////////////////////
13 | public static final String FILE_JPG = "jpeg";
14 | public static final String FILE_MP3 = "mp3";
15 | public static final String FILE_AMR = "amr";
16 | public static final String FILE_MP4 = "mp4";
17 | }
18 |
--------------------------------------------------------------------------------
/weixin-java-mp/src/test/resources/0.jpeg:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/binarywang/WxJava/84c69d4900ff94bb919c71d27c5ff8e2c73bd8ac/weixin-java-mp/src/test/resources/0.jpeg
--------------------------------------------------------------------------------
/weixin-java-mp/src/test/resources/1.jpeg:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/binarywang/WxJava/84c69d4900ff94bb919c71d27c5ff8e2c73bd8ac/weixin-java-mp/src/test/resources/1.jpeg
--------------------------------------------------------------------------------
/weixin-java-mp/src/test/resources/logback-test.xml:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 | %d{HH:mm:ss.SSS} [%thread] %-5level %replace(%caller{1}){'Caller', ''} - %msg%n
6 |
7 |
8 |
9 |
10 |
11 |
12 |
13 |
14 |
--------------------------------------------------------------------------------
/weixin-java-mp/src/test/resources/mm.jpeg:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/binarywang/WxJava/84c69d4900ff94bb919c71d27c5ff8e2c73bd8ac/weixin-java-mp/src/test/resources/mm.jpeg
--------------------------------------------------------------------------------
/weixin-java-mp/src/test/resources/mm.mp3:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/binarywang/WxJava/84c69d4900ff94bb919c71d27c5ff8e2c73bd8ac/weixin-java-mp/src/test/resources/mm.mp3
--------------------------------------------------------------------------------
/weixin-java-mp/src/test/resources/mm.mp4:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/binarywang/WxJava/84c69d4900ff94bb919c71d27c5ff8e2c73bd8ac/weixin-java-mp/src/test/resources/mm.mp4
--------------------------------------------------------------------------------
/weixin-java-mp/src/test/resources/test-config.sample.xml:
--------------------------------------------------------------------------------
1 |
2 | 公众号appID
3 | 公众号appsecret
4 | 公众号Token
5 | 公众号EncodingAESKey
6 | 可以不填写
7 | 可以不填写
8 | 某个加你公众号的用户的openId
9 | 微信商户平台ID
10 | 商户平台设置的API密钥
11 | 商户平台的证书文件地址
12 | 模版消息的模版ID
13 | 网页授权获取用户信息回调地址
14 | 网页应用授权登陆回调地址
15 | 完整客服账号,格式为:账号前缀@公众号微信号
16 |
17 |
--------------------------------------------------------------------------------
/weixin-java-open/src/main/java/me/chanjar/weixin/open/api/impl/WxOpenServiceImpl.java:
--------------------------------------------------------------------------------
1 | package me.chanjar.weixin.open.api.impl;
2 |
3 | /**
4 | * @author 007
5 | */
6 | public class WxOpenServiceImpl extends WxOpenServiceApacheHttpClientImpl {
7 |
8 | }
9 |
--------------------------------------------------------------------------------
/weixin-java-open/src/main/java/me/chanjar/weixin/open/bean/auth/MaAuthQueryIdentityTreeResultIdentityLeaf.java:
--------------------------------------------------------------------------------
1 | package me.chanjar.weixin.open.bean.auth;
2 |
3 | import lombok.Data;
4 | import lombok.NoArgsConstructor;
5 |
6 | /**
7 | * 职业身份叶子信息
8 | *
9 | * @author 广州跨界
10 | * created on 2024/01/11
11 | */
12 | @Data
13 | @NoArgsConstructor
14 | public class MaAuthQueryIdentityTreeResultIdentityLeaf {
15 |
16 | /**
17 | * 要求说明
18 | */
19 | private String requirement;
20 | }
21 |
--------------------------------------------------------------------------------
/weixin-java-open/src/main/java/me/chanjar/weixin/open/bean/auth/MaAuthResubmitParamAuthData.java:
--------------------------------------------------------------------------------
1 | package me.chanjar.weixin.open.bean.auth;
2 |
3 | import com.google.gson.annotations.SerializedName;
4 | import lombok.Getter;
5 | import lombok.Setter;
6 | import org.jetbrains.annotations.NotNull;
7 |
8 | /**
9 | * 小程序认证 重新提交操作 认证参数
10 | *
11 | * @author 广州跨界
12 | * created on 2024/01/11
13 | */
14 | @Getter
15 | @Setter
16 | public class MaAuthResubmitParamAuthData extends MaAuthSubmitParamAuthData {
17 |
18 | /**
19 | * 认证任务id
20 | */
21 | @NotNull
22 | @SerializedName("taskid")
23 | private String taskId;
24 | }
25 |
--------------------------------------------------------------------------------
/weixin-java-open/src/main/java/me/chanjar/weixin/open/bean/auth/MaAuthSubmitParamContactInfo.java:
--------------------------------------------------------------------------------
1 | package me.chanjar.weixin.open.bean.auth;
2 |
3 | import lombok.Data;
4 | import lombok.NoArgsConstructor;
5 | import org.jetbrains.annotations.NotNull;
6 |
7 | /**
8 | * 联系人信息
9 | *
10 | * @author 广州跨界
11 | * created on 2024/01/11
12 | */
13 | @Data
14 | @NoArgsConstructor
15 | public class MaAuthSubmitParamContactInfo {
16 |
17 | /**
18 | * 姓名
19 | */
20 | @NotNull
21 | private String name;
22 |
23 | /**
24 | * 邮箱
25 | */
26 | @NotNull
27 | private String email;
28 | }
29 |
--------------------------------------------------------------------------------
/weixin-java-open/src/main/java/me/chanjar/weixin/open/bean/auth/WxOpenAuthorizationInfo.java:
--------------------------------------------------------------------------------
1 | package me.chanjar.weixin.open.bean.auth;
2 |
3 | import lombok.Data;
4 |
5 | import java.io.Serializable;
6 | import java.util.List;
7 |
8 | /**
9 | * @author 007
10 | */
11 | @Data
12 | public class WxOpenAuthorizationInfo implements Serializable {
13 | private static final long serialVersionUID = -8713680081354754208L;
14 |
15 | private String authorizerAppid;
16 | private String authorizerAccessToken;
17 | private int expiresIn;
18 | private String authorizerRefreshToken;
19 | private List funcInfo;
20 | }
21 |
--------------------------------------------------------------------------------
/weixin-java-open/src/main/java/me/chanjar/weixin/open/bean/auth/WxOpenMiniProgramInfo.java:
--------------------------------------------------------------------------------
1 | package me.chanjar.weixin.open.bean.auth;
2 |
3 | import lombok.Data;
4 | import org.apache.commons.lang3.tuple.Pair;
5 |
6 | import java.util.List;
7 | import java.util.Map;
8 |
9 | @Data
10 | public class WxOpenMiniProgramInfo {
11 | private Map> network;
12 | private List> categories;
13 | private Integer visitStatus;
14 | }
15 |
--------------------------------------------------------------------------------
/weixin-java-open/src/main/java/me/chanjar/weixin/open/bean/ma/WxMaOpenNetworkTimeout.java:
--------------------------------------------------------------------------------
1 | package me.chanjar.weixin.open.bean.ma;
2 |
3 | import lombok.Data;
4 |
5 | import java.io.Serializable;
6 |
7 | /**
8 | * @author yqx
9 | * created on 2018/9/13
10 | */
11 | @Data
12 | public class WxMaOpenNetworkTimeout implements Serializable {
13 |
14 | private Integer request;
15 |
16 | private Integer connectSocket;
17 |
18 | private Integer uploadFile;
19 |
20 | private Integer downloadFile;
21 | }
22 |
--------------------------------------------------------------------------------
/weixin-java-open/src/main/java/me/chanjar/weixin/open/bean/ma/WxMaOpenPage.java:
--------------------------------------------------------------------------------
1 | package me.chanjar.weixin.open.bean.ma;
2 |
3 | import lombok.Data;
4 |
5 | import java.io.Serializable;
6 |
7 | /**
8 | * @author yqx
9 | * created on 2018/9/13
10 | */
11 | @Data
12 | public class WxMaOpenPage implements Serializable {
13 | private String navigationBarBackgroundColor;
14 | private String navigationBarTextStyle;
15 | private String navigationBarTitleText;
16 | private String backgroundColor;
17 | private String backgroundTextStyle;
18 | private Boolean enablePullDownRefresh;
19 | private Integer onReachBottomDistance;
20 | private Boolean disableScroll;
21 |
22 | }
23 |
--------------------------------------------------------------------------------
/weixin-java-open/src/main/java/me/chanjar/weixin/open/bean/ma/WxMaOpenSubpackage.java:
--------------------------------------------------------------------------------
1 | package me.chanjar.weixin.open.bean.ma;
2 |
3 | import lombok.Builder;
4 | import lombok.Data;
5 |
6 | /**
7 | * @author momorans
8 | * @since 2019-03-12
9 | **/
10 | @Data
11 | @Builder
12 | public class WxMaOpenSubpackage {
13 | /**
14 | * 分包根目录
15 | */
16 | private String root;
17 |
18 | /**
19 | * 分包别名,分包预下载时可以使用
20 | */
21 | private String name;
22 |
23 |
24 | /**
25 | * 分包页面路径,相对与分包根目录
26 | */
27 | private String pages;
28 |
29 | /**
30 | * 分包是否是独立分包
31 | */
32 | private Boolean independent;
33 |
34 |
35 | }
36 |
--------------------------------------------------------------------------------
/weixin-java-open/src/main/java/me/chanjar/weixin/open/bean/ma/WxMaPrefetchDomain.java:
--------------------------------------------------------------------------------
1 | package me.chanjar.weixin.open.bean.ma;
2 |
3 | import com.google.gson.annotations.SerializedName;
4 | import lombok.Data;
5 |
6 | import java.io.Serializable;
7 | import java.util.List;
8 |
9 | /**
10 | * @author 清心
11 | * create on 2022-10-01 18:07
12 | */
13 | @Data
14 | public class WxMaPrefetchDomain implements Serializable {
15 | private static final long serialVersionUID = 1593947263587362155L;
16 |
17 | @SerializedName("prefetch_dns_domain")
18 | private List prefetchDnsDomain;
19 |
20 | @Data
21 | public static class DnsDomain {
22 | private String url;
23 | }
24 | }
25 |
--------------------------------------------------------------------------------
/weixin-java-open/src/main/java/me/chanjar/weixin/open/bean/ma/WxMaScheme.java:
--------------------------------------------------------------------------------
1 | package me.chanjar.weixin.open.bean.ma;
2 |
3 | import lombok.Data;
4 | import lombok.EqualsAndHashCode;
5 | import me.chanjar.weixin.open.bean.result.WxOpenResult;
6 |
7 | @Data
8 | @EqualsAndHashCode(callSuper = true)
9 | public class WxMaScheme extends WxOpenResult {
10 | private static final long serialVersionUID = 6099475183322341647L;
11 |
12 | private String openlink;
13 | }
14 |
--------------------------------------------------------------------------------
/weixin-java-open/src/main/java/me/chanjar/weixin/open/bean/ma/WxOpenMaMember.java:
--------------------------------------------------------------------------------
1 | package me.chanjar.weixin.open.bean.ma;
2 |
3 | import lombok.Data;
4 |
5 | import java.io.Serializable;
6 |
7 | /**
8 | * 微信开放平台小程序成员对象
9 | *
10 | * @author yqx
11 | * created on 2018/9/12
12 | */
13 | @Data
14 | public class WxOpenMaMember implements Serializable {
15 | /**
16 | * 人员对应的唯一字符串
17 | */
18 | private String userstr;
19 | }
20 |
--------------------------------------------------------------------------------
/weixin-java-open/src/main/java/me/chanjar/weixin/open/bean/ma/privacy/ApplyPrivacyInterfaceResult.java:
--------------------------------------------------------------------------------
1 | package me.chanjar.weixin.open.bean.ma.privacy;
2 |
3 | import com.google.gson.annotations.SerializedName;
4 | import lombok.Getter;
5 | import lombok.Setter;
6 | import me.chanjar.weixin.open.bean.result.WxOpenResult;
7 |
8 | /**
9 | * 获取接口列表 响应
10 | *
11 | * @author 广州跨界
12 | */
13 | @Getter
14 | @Setter
15 | public class ApplyPrivacyInterfaceResult extends WxOpenResult {
16 |
17 | /**
18 | * 审核ID
19 | */
20 | @SerializedName("audit_id")
21 | private Long auditId;
22 |
23 | }
24 |
--------------------------------------------------------------------------------
/weixin-java-open/src/main/java/me/chanjar/weixin/open/bean/ma/privacy/UploadPrivacyFileResult.java:
--------------------------------------------------------------------------------
1 | package me.chanjar.weixin.open.bean.ma.privacy;
2 |
3 | import com.google.gson.annotations.SerializedName;
4 | import lombok.Getter;
5 | import lombok.Setter;
6 | import me.chanjar.weixin.open.bean.result.WxOpenResult;
7 |
8 | /**
9 | * 上传小程序用户隐私保护指引文件 响应
10 | *
11 | * @author 广州跨界
12 | */
13 | @Getter
14 | @Setter
15 | public class UploadPrivacyFileResult extends WxOpenResult {
16 |
17 | /**
18 | * 文件的media_id
19 | */
20 | @SerializedName("ext_file_media_id")
21 | private String extFileMediaId;
22 | }
23 |
--------------------------------------------------------------------------------
/weixin-java-open/src/main/java/me/chanjar/weixin/open/bean/minishop/MinishopBrandList.java:
--------------------------------------------------------------------------------
1 | package me.chanjar.weixin.open.bean.minishop;
2 |
3 | import lombok.Data;
4 |
5 | import java.io.Serializable;
6 | import java.util.List;
7 |
8 | @Data
9 | public class MinishopBrandList implements Serializable {
10 | private static final long serialVersionUID = -8508031421949817741L;
11 |
12 | private Integer errcode;
13 |
14 | private String errmsg;
15 |
16 | private List brands;
17 | }
18 |
--------------------------------------------------------------------------------
/weixin-java-open/src/main/java/me/chanjar/weixin/open/bean/minishop/MinishopCategories.java:
--------------------------------------------------------------------------------
1 | package me.chanjar.weixin.open.bean.minishop;
2 |
3 | import lombok.Data;
4 |
5 | import java.io.Serializable;
6 | import java.util.List;
7 |
8 | @Data
9 | public class MinishopCategories implements Serializable {
10 | private static final long serialVersionUID = 7273326128218540329L;
11 |
12 | private Integer errcode;
13 |
14 | private String errmsg;
15 |
16 | private List catList;
17 | }
18 |
--------------------------------------------------------------------------------
/weixin-java-open/src/main/java/me/chanjar/weixin/open/bean/minishop/MinishopCategory.java:
--------------------------------------------------------------------------------
1 | package me.chanjar.weixin.open.bean.minishop;
2 |
3 | import lombok.Data;
4 |
5 | import java.io.Serializable;
6 |
7 | @Data
8 | public class MinishopCategory implements Serializable {
9 | private static final long serialVersionUID = -4843799448671123177L;
10 |
11 | private Integer catId;
12 |
13 | private Integer fCatId;
14 |
15 | private String name;
16 | }
17 |
--------------------------------------------------------------------------------
/weixin-java-open/src/main/java/me/chanjar/weixin/open/bean/minishop/MinishopDeliveryTemplate.java:
--------------------------------------------------------------------------------
1 | package me.chanjar.weixin.open.bean.minishop;
2 |
3 | import lombok.Data;
4 |
5 | import java.io.Serializable;
6 |
7 | @Data
8 | public class MinishopDeliveryTemplate implements Serializable {
9 | private static final long serialVersionUID = 6408833494371482534L;
10 |
11 | public enum ValuationType {
12 | PACKAGE,
13 | WEIGHT
14 | }
15 |
16 | private Integer templateId;
17 |
18 | private String name;
19 |
20 | private ValuationType valuationType;
21 | }
22 |
--------------------------------------------------------------------------------
/weixin-java-open/src/main/java/me/chanjar/weixin/open/bean/minishop/MinishopShopCat.java:
--------------------------------------------------------------------------------
1 | package me.chanjar.weixin.open.bean.minishop;
2 |
3 | import lombok.Data;
4 |
5 | import java.io.Serializable;
6 |
7 | /**
8 | * 店铺的商品分类
9 | */
10 | @Data
11 | public class MinishopShopCat implements Serializable {
12 | private static final long serialVersionUID = 4179473856929659641L;
13 |
14 | private Integer shopCatId;
15 |
16 | private String shopCatName;
17 |
18 | private Integer fShopCatId;
19 |
20 | private Integer catLevel;
21 | }
22 |
--------------------------------------------------------------------------------
/weixin-java-open/src/main/java/me/chanjar/weixin/open/bean/minishop/MinishopShopCatList.java:
--------------------------------------------------------------------------------
1 | package me.chanjar.weixin.open.bean.minishop;
2 |
3 | import lombok.Data;
4 |
5 | import java.io.Serializable;
6 | import java.util.List;
7 |
8 | @Data
9 | public class MinishopShopCatList implements Serializable {
10 | private static final long serialVersionUID = 8718853679902050471L;
11 |
12 | private Integer errcode;
13 |
14 | private String errmsg;
15 |
16 | private List shopCatList;
17 | }
18 |
--------------------------------------------------------------------------------
/weixin-java-open/src/main/java/me/chanjar/weixin/open/bean/minishop/coupon/WxMinishopCouponResponse.java:
--------------------------------------------------------------------------------
1 | package me.chanjar.weixin.open.bean.minishop.coupon;
2 |
3 | import lombok.Data;
4 |
5 | import java.io.Serializable;
6 | import java.util.List;
7 |
8 | /**
9 | * 小商店优惠券请求回复数据信息
10 | */
11 | @Data
12 | public class WxMinishopCouponResponse implements Serializable {
13 | private static final long serialVersionUID = 1579611003616556089L;
14 |
15 | /**
16 | * 错误码
17 | */
18 | private Integer errcode;
19 |
20 | /**
21 | * 错误信息
22 | */
23 | private String errmsg;
24 |
25 | /**
26 | * 优惠券信息
27 | */
28 | private List coupons;
29 |
30 |
31 | }
32 |
--------------------------------------------------------------------------------
/weixin-java-open/src/main/java/me/chanjar/weixin/open/bean/minishop/coupon/WxMinishopCouponStockInfo.java:
--------------------------------------------------------------------------------
1 | package me.chanjar.weixin.open.bean.minishop.coupon;
2 |
3 | import lombok.Data;
4 |
5 | import java.io.Serializable;
6 |
7 | /**
8 | * 小商店优惠券消耗信息
9 | */
10 | @Data
11 | public class WxMinishopCouponStockInfo implements Serializable {
12 | private static final long serialVersionUID = 7690057714224606954L;
13 |
14 | /**
15 | * 优惠券发放量
16 | */
17 | private Integer issuedNum;
18 |
19 | /**
20 | * 优惠券领用量
21 | */
22 | private Integer receiveNum;
23 |
24 | /**
25 | * 优惠券已用量
26 | */
27 | private Integer usedNum;
28 | }
29 |
--------------------------------------------------------------------------------
/weixin-java-open/src/main/java/me/chanjar/weixin/open/bean/minishop/goods/WxMinishopAddGoodsSkuData.java:
--------------------------------------------------------------------------------
1 | package me.chanjar.weixin.open.bean.minishop.goods;
2 |
3 | import lombok.Data;
4 |
5 | import java.io.Serializable;
6 |
7 | @Data
8 | public class WxMinishopAddGoodsSkuData implements Serializable {
9 | private static final long serialVersionUID = -2596988603027040989L;
10 | private Long skuId;
11 |
12 | private String createTime;
13 | }
14 |
--------------------------------------------------------------------------------
/weixin-java-open/src/main/java/me/chanjar/weixin/open/bean/minishop/goods/WxMinishopAddGoodsSpuData.java:
--------------------------------------------------------------------------------
1 | package me.chanjar.weixin.open.bean.minishop.goods;
2 |
3 | import lombok.Data;
4 |
5 | import java.io.Serializable;
6 |
7 | @Data
8 | public class WxMinishopAddGoodsSpuData implements Serializable {
9 | private static final long serialVersionUID = 2023708625713948192L;
10 | private Long productId;
11 |
12 | private String outProductId;
13 |
14 | private String createTime;
15 | }
16 |
--------------------------------------------------------------------------------
/weixin-java-open/src/main/java/me/chanjar/weixin/open/bean/minishop/goods/WxMinishopAddGoodsSpuResult.java:
--------------------------------------------------------------------------------
1 | package me.chanjar.weixin.open.bean.minishop.goods;
2 |
3 | import lombok.Data;
4 |
5 | import java.io.Serializable;
6 |
7 | @Data
8 | public class WxMinishopAddGoodsSpuResult implements Serializable {
9 | private static final long serialVersionUID = 4323118714581265968L;
10 | private Integer errcode;
11 |
12 | private String errmsg;
13 |
14 | private T data;
15 | }
16 |
--------------------------------------------------------------------------------
/weixin-java-open/src/main/java/me/chanjar/weixin/open/bean/minishop/goods/WxMinishopDeliveryCompany.java:
--------------------------------------------------------------------------------
1 | package me.chanjar.weixin.open.bean.minishop.goods;
2 |
3 | import lombok.Data;
4 |
5 | import java.io.Serializable;
6 |
7 | @Data
8 | public class WxMinishopDeliveryCompany implements Serializable {
9 | private static final long serialVersionUID = 3736970376549639779L;
10 | private String deliveryId;
11 |
12 | private String deliveryName;
13 | }
14 |
--------------------------------------------------------------------------------
/weixin-java-open/src/main/java/me/chanjar/weixin/open/bean/minishopgoods/ExpressInfo.java:
--------------------------------------------------------------------------------
1 | package me.chanjar.weixin.open.bean.minishopgoods;
2 |
3 | import com.google.gson.JsonObject;
4 | import lombok.Data;
5 | import lombok.experimental.Accessors;
6 |
7 | @Data
8 | @Accessors(chain = true)
9 | public class ExpressInfo {
10 | /**
11 | * 运费模板ID(先通过获取运费模板接口delivery/get_freight_template拿到)
12 | */
13 | private Integer templateId;
14 |
15 |
16 | public JsonObject toJsonObject() {
17 | JsonObject jsonObject = new JsonObject();
18 | jsonObject.addProperty("template_id", templateId);
19 | return jsonObject;
20 | }
21 |
22 |
23 | }
24 |
--------------------------------------------------------------------------------
/weixin-java-open/src/main/java/me/chanjar/weixin/open/bean/minishopgoods/ParentCatId.java:
--------------------------------------------------------------------------------
1 | package me.chanjar.weixin.open.bean.minishopgoods;
2 |
3 | import com.google.gson.JsonObject;
4 | import lombok.Data;
5 |
6 | @Data
7 | public class ParentCatId {
8 | private Integer fCatId;
9 |
10 | public JsonObject toJsonObject() {
11 | JsonObject jsonObject = new JsonObject();
12 | jsonObject.addProperty("f_cat_id", fCatId);
13 | return jsonObject;
14 | }
15 | }
16 |
--------------------------------------------------------------------------------
/weixin-java-open/src/main/java/me/chanjar/weixin/open/bean/result/WxOpenAuthorizerListResult.java:
--------------------------------------------------------------------------------
1 | package me.chanjar.weixin.open.bean.result;
2 |
3 | import lombok.Data;
4 |
5 | import java.util.List;
6 | import java.util.Map;
7 |
8 | /**
9 | * @author robgao
10 | */
11 | @Data
12 | public class WxOpenAuthorizerListResult {
13 | private int totalCount;
14 | private List