package com.cyksj.model.views;

import com.cyksj.model.entity.GoodsDon;
import com.ejlchina.searcher.bean.DbField;
import com.ejlchina.searcher.bean.DbIgnore;
import com.ejlchina.searcher.bean.SearchBean;
import com.fasterxml.jackson.annotation.JsonInclude;
import lombok.Getter;
import lombok.Setter;

import java.math.BigDecimal;
import java.util.List;

/*
 *项目名: netflix
 *文件名: GoodsFrontListView
 *创建者: JavaZou
 *创建时间:2023/4/6 17:50
 */
@Getter
@Setter
@SearchBean(tables = "goods_don g",
		where = "g.deleted is true and g.status is true and g.is_hide is false :condition:",
		orderBy = "g.sort_by asc, g.id")
@JsonInclude(JsonInclude.Include.NON_NULL)
public class GoodsFrontListView {
	@DbField("g.id")
	private Long id;

	/**
	 * 商品名称
	 */
	@DbField("g.title")
	private String title;

	/**
	 * 标签
	 */
	@DbField("g.tags")
	private String tags;

	/**
	 * 缩略图
	 */
	@DbField("g.logo")
	private String logo;

	/**
	 * 背景图
	 */
	@DbField("g.img")
	private String img;

	/**
	 * 视频封面
	 */
	@DbField("g.video_cover")
	private String videoCover;

	@DbField("g.banner")
	private String banner;

	/**
	 * 商品搭配图
	 */
	@DbField("g.match_img")
	private String matchImg;


	/**
	 * 是否贴片 false
	 */
	@DbField("g.is_patch")
	private Boolean isPatch;

	/**
	 * H5标签
	 */
	@DbField("g.mobile_tags")
	private String mobileTags;

	/**
	 * 分类
	 * 1、AI  2、流媒体
	 */
	@DbField("g.category")
	private Long category;

	/**
	 * 类型
	 */
	@DbField("g.type")
	private Integer type;

	@DbField("g.second_type")
	private Integer secondType;

	@DbField("g.special_type")
	private GoodsDon.SpecialType specialType;

	/**
	 * 最低规格价格
	 */
	@DbField("g.min_price")
	private BigDecimal price;

	/**
	 * 最低规格月份
	 */
	@DbField("g.min_months")
	private Integer months;

	/**
	 * 最低规格天数
	 */
	@DbField("g.min_days")
	private Integer days;

	/**
	 * 已售
	 */
	@DbField("g.virtual_sold")
	private Integer sold;

	@DbIgnore
	private BigDecimal specificPrice;

	@DbIgnore
	private Long specificSkuId;

	@DbField("g.pay_desc")
	private String payDesc;

	@DbField("g.buy_desc")
	private String buyDesc;

	/**
	 * 是否是特定价格平台
	 */
	@DbField("g.is_sp")
	private Boolean isSp;

	@DbField("g.is_owns")
	private Boolean isOwns;

	@DbField("g.detail")
	private String detail;

	@DbField("g.video")
	private String video;

	/**
	 * 是否是第三方平台
	 */
	@DbField("g.is_third_goods")
	private Boolean isThirdGoods;

	/**
	 * 购买通知信息
	 */
	@DbIgnore
	private String notifyMsg;

	@DbIgnore
	private List<GoodsDonSkuFrontView> skuList;

	@DbIgnore
	private GoodsDonSpecFrontView specs;

	@DbIgnore
	private OrderCommentFrontView comments;

	@DbIgnore
	private List<GoodsDonQaFrontView> questions;

	/**
	 * 是否是礼品卡平台
	 */
	@DbIgnore
	private Boolean isGift = false;

	/**
	 * gpt赠送天卡活动标识 默认false
	 */
	@DbIgnore
	private Boolean isGptGift = false;
}
