package com.cyksj.model.views;

import com.ejlchina.searcher.bean.DbField;
import com.ejlchina.searcher.bean.DbIgnore;
import com.ejlchina.searcher.bean.SearchBean;
import lombok.Getter;
import lombok.Setter;

import java.util.Date;
import java.util.List;

/**
 * @author zwhui
 * @date 2023/10/13 13:38
 */
@Getter
@Setter
@SearchBean(tables = "information i")
public class InformationDetailView {
    @DbField("i.id")
    private Long id;

    /**
     * 文章标题
     */
    @DbField("i.title")
    private String title;

    /**
     * 副标题
     */
    @DbField("i.sub_title")
    private String subTitle;

    /**
     * 副标题
     */
    @DbField("i.logo")
    private String logo;

    @DbField("i.is_black_font")
    private Boolean isBlackFont;

    /**
     * 缩略图
     */
    @DbField("i.thumbnail")
    private String thumbnail;

    /**
     * 文章类型
     */
    @DbField("i.category_ids")
    private String categoryIds;


    /**
     * 内容
     */
    @DbField("i.content")
    private String content;

    /**
     * true 上架 || false 下架
     */
    @DbField("i.status")
    private Boolean status;

    /**
     * true 推荐 || false
     */
    @DbField("i.recommend")
    private Boolean recommend;

    /**
     * true 置顶 || false
     */
    @DbField("i.top")
    private Boolean top;

    /**
     * 推荐商品id
     */
    @DbField("i.goods_ids")
    private String goodsIds;

    /**
     * 推荐商品名
     */
    @DbIgnore
    private List<GoodsFrontListView> goods;

    @DbField("i.update_time")
    private Date releaseTime;
}
