me.chanjar.weixin.open.bean.minishopgoods.DescInfo Maven / Gradle / Ivy
The newest version!
package me.chanjar.weixin.open.bean.minishopgoods;
import com.google.gson.Gson;
import com.google.gson.JsonObject;
import lombok.Data;
import lombok.experimental.Accessors;
import java.util.List;
@Data
@Accessors(chain = true)
public class DescInfo {
/**
* 商品详情,图文(目前只支持图片) true
*/
private List imgs;
public JsonObject toJsonObject() {
Gson gson = new Gson();
JsonObject jsonObject = new JsonObject();
jsonObject.addProperty("imgs", gson.toJson(imgs));
return jsonObject;
}
}