RecommendPromotionAggVO.java 1.19 KB
package com.yoho.search.models;

import com.alibaba.fastjson.JSON;
import com.alibaba.fastjson.annotation.JSONField;

public class RecommendPromotionAggVO {

    @JSONField(name = "promotion_info_id")
    private int promotionInfoId;

    @JSONField(name = "coverimg_url")
    private String coverImgUrl;

    private String title;

    public int getPromotionInfoId() {
        return promotionInfoId;
    }

    public void setPromotionInfoId(int promotionInfoId) {
        this.promotionInfoId = promotionInfoId;
    }

    public String getCoverImgUrl() {
        return coverImgUrl;
    }

    public void setCoverImgUrl(String coverImgUrl) {
        this.coverImgUrl = coverImgUrl;
    }

    public String getTitle() {
        return title;
    }

    public void setTitle(String title) {
        this.title = title;
    }

    public static void main(String[] args) {
        RecommendPromotionAggVO recommendPromotionAggVO = new RecommendPromotionAggVO();
        recommendPromotionAggVO.setPromotionInfoId(1);
        recommendPromotionAggVO.setCoverImgUrl("sdf");
        recommendPromotionAggVO.setTitle("dfas");

        System.out.println(JSON.toJSONString(recommendPromotionAggVO));
        ;
    }
}