Browse Source

:art: 【企业微信】微信客服消息增加视频号商品和订单消息类型

大林哥 2 years ago
parent
commit
abae2cfce9

+ 4 - 0
weixin-java-cp/src/main/java/me/chanjar/weixin/cp/bean/kf/WxCpKfMsgListResp.java

@@ -63,6 +63,10 @@ public class WxCpKfMsgListResp extends WxCpBaseResp {
     @SerializedName("msgmenu")
     private WxCpKfMenuMsg msgMenu;
     private WxCpKfEventMsg event;
+    @SerializedName("channels_shop_product")
+    private WxCpKfChannelsShopProductMsg channelsShopProduct;
+    @SerializedName("channels_shop_order")
+    private WxCpKfChannelsShopOrderMsg channelsShopOrder;
   }
 
   /**

+ 53 - 0
weixin-java-cp/src/main/java/me/chanjar/weixin/cp/bean/kf/msg/WxCpKfChannelsShopOrderMsg.java

@@ -0,0 +1,53 @@
+package me.chanjar.weixin.cp.bean.kf.msg;
+
+import com.google.gson.annotations.SerializedName;
+import lombok.Data;
+import lombok.NoArgsConstructor;
+
+/**
+ * The type Wx cp kf channels shop order msg.
+ *
+ * @author dalin created on 2023/1/10 17:28
+ *
+ */
+@NoArgsConstructor
+@Data
+public class WxCpKfChannelsShopOrderMsg {
+
+  /**
+   * 订单号
+   */
+  @SerializedName("order_id")
+  private String orderId;
+
+  /**
+   * 商品标题
+   */
+  @SerializedName("product_titles")
+  private String productTitles;
+
+  /**
+   * 订单价格描述
+   */
+  @SerializedName("price_wording")
+  private String priceWording;
+
+  /**
+   * 订单状态
+   */
+  @SerializedName("state")
+  private String state;
+
+  /**
+   * 订单缩略图
+   */
+  @SerializedName("image_url")
+  private String imageUrl;
+
+  /**
+   * 店铺名称
+   */
+  @SerializedName("shop_nickname")
+  private String shopNickname;
+
+}

+ 53 - 0
weixin-java-cp/src/main/java/me/chanjar/weixin/cp/bean/kf/msg/WxCpKfChannelsShopProductMsg.java

@@ -0,0 +1,53 @@
+package me.chanjar.weixin.cp.bean.kf.msg;
+
+import com.google.gson.annotations.SerializedName;
+import lombok.Data;
+import lombok.NoArgsConstructor;
+
+/**
+ * The type Wx cp kf channels shop product msg.
+ *
+ * @author dalin created on 2023/1/10 17:26
+ *
+ */
+@NoArgsConstructor
+@Data
+public class WxCpKfChannelsShopProductMsg {
+
+  /**
+   * 商品ID
+   */
+  @SerializedName("product_id")
+  private String productId;
+
+  /**
+   * 商品图片
+   */
+  @SerializedName("head_img")
+  private String headImg;
+
+  /**
+   * 商品标题
+   */
+  @SerializedName("title")
+  private String title;
+
+  /**
+   * 商品价格,以分为单位
+   */
+  @SerializedName("sales_price")
+  private String salesPrice;
+
+  /**
+   * 店铺名称
+   */
+  @SerializedName("shop_nickname")
+  private String shopNickname;
+
+  /**
+   * 店铺头像
+   */
+  @SerializedName("shop_head_img")
+  private String shopHeadImg;
+
+}