All Downloads are FREE. Search and download functionalities are using the official Maven repository.

cn.binarywang.wx.miniapp.bean.delivery.WaybillGoodsInfo Maven / Gradle / Ivy

The newest version!
package cn.binarywang.wx.miniapp.bean.delivery;

import cn.binarywang.wx.miniapp.json.WxMaGsonBuilder;
import com.google.gson.annotations.SerializedName;
import java.io.Serializable;
import java.util.List;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;

/**
 * 运单商品信息
 *
 * @author boris
 * @since 2022-04-01
 */
@Data
@NoArgsConstructor
@AllArgsConstructor
public class WaybillGoodsInfo implements Serializable {

  private static final long serialVersionUID = 5643624677715536605L;



  /**
   * 商品信息
   */
  @SerializedName("detail_list")
  private List goodsItemList;

  public static WaybillGoodsInfo fromJson(String json) {
    return WxMaGsonBuilder.create().fromJson(json, WaybillGoodsInfo.class);
  }

  @Data
  public static class GoodsItem {

    /**
     * 商品名称
     * 
     * 是否必填: 是
     * 
*/ @SerializedName("goods_name") private String goodsName; /** * 商品图片URL *
     * 是否必填: 是
     * 
*/ @SerializedName("goods_img_url") private String goodsImgUrl; /** * 商品详情描述,不传默认取“商品名称”值,最多40汉字 *
     * 是否必填: 否
     * 
*/ @SerializedName("goods_desc") private String goodsDesc; } }




© 2015 - 2025 Weber Informatics LLC | Privacy Policy