mirror of
				https://gitee.com/binary/weixin-java-tools.git
				synced 2025-10-31 18:46:10 +08:00 
			
		
		
		
	🎨【小程序】物流助手生成运单接口的请求参数中商品信息里增加商品详情列表
This commit is contained in:
		| @ -6,6 +6,7 @@ import lombok.Data; | ||||
| import lombok.NoArgsConstructor; | ||||
|  | ||||
| import java.io.Serializable; | ||||
| import java.util.List; | ||||
|  | ||||
| /** | ||||
|  * 商品信息对象 | ||||
| @ -55,4 +56,14 @@ public class WxMaExpressOrderShop implements Serializable { | ||||
|   @SerializedName("goods_count") | ||||
|   private Integer goodsCount; | ||||
|  | ||||
|   /** | ||||
|    * 商品详情列表 | ||||
|    * <pre> | ||||
|    * 是否必填: 否 | ||||
|    * 描述: 适配多商品场景,用以消息落地页展示。(新规范,新接入商家建议用此字段) | ||||
|    * </pre> | ||||
|    */ | ||||
|   @SerializedName("detail_list") | ||||
|   private List<WxMaExpressOrderShopDetail> detailList; | ||||
|  | ||||
| } | ||||
|  | ||||
| @ -0,0 +1,51 @@ | ||||
| package cn.binarywang.wx.miniapp.bean.express.request; | ||||
|  | ||||
|  | ||||
| import com.google.gson.annotations.SerializedName; | ||||
| import lombok.AllArgsConstructor; | ||||
| import lombok.Data; | ||||
| import lombok.NoArgsConstructor; | ||||
|  | ||||
| import java.io.Serializable; | ||||
|  | ||||
|  | ||||
| /** | ||||
|  * 商品详情 | ||||
|  */ | ||||
| @Data | ||||
| @NoArgsConstructor | ||||
| @AllArgsConstructor | ||||
| public class WxMaExpressOrderShopDetail implements Serializable { | ||||
|  | ||||
|   private static final long serialVersionUID = 5988620921216969796L; | ||||
|  | ||||
|   /** | ||||
|    * 商品名称 | ||||
|    * <pre> | ||||
|    * 是否必填: 否 | ||||
|    * 描述: 最多40汉字 | ||||
|    * </pre> | ||||
|    */ | ||||
|   @SerializedName("goods_name") | ||||
|   private String goodsName; | ||||
|  | ||||
|   /** | ||||
|    * 商品图片url | ||||
|    * <pre> | ||||
|    * 是否必填: 否 | ||||
|    * </pre> | ||||
|    */ | ||||
|   @SerializedName("goods_img_url") | ||||
|   private String goodsImgUrl; | ||||
|  | ||||
|   /** | ||||
|    * 商品详情描述 | ||||
|    * <pre> | ||||
|    * 是否必填: 否 | ||||
|    * 描述: 最多40汉字 | ||||
|    * </pre> | ||||
|    */ | ||||
|   @SerializedName("goods_desc") | ||||
|   private String goodsDesc; | ||||
|  | ||||
| } | ||||
		Reference in New Issue
	
	Block a user
	 落花随风
					落花随风