package com.cyksj.model.entity;

import com.baomidou.mybatisplus.annotation.TableField;
import com.ejlchina.searcher.bean.DbField;
import com.ejlchina.searcher.bean.SearchBean;
import lombok.Getter;
import lombok.Setter;

import javax.validation.constraints.NotEmpty;
import javax.validation.constraints.NotNull;

/*
 *项目名: netflix
 *文件名: TicketAdvertiseConfig
 *创建者: JavaZou
 *创建时间:2023/7/12 12:20
 */
@Getter
@Setter
@SearchBean(tables = "ticket_advertise_config tc left join goods_don g on g.id = tc.goods_id"
		, where = "tc.deleted is true")
public class TicketAdvertiseConfig extends BaseEntity {
	@DbField("tc.id")
	@TableField(exist = false)
	private Long configId;

	@NotEmpty(message = "标题不为空")
	@DbField("tc.title")
	private String title;

	@NotNull(message = "请选择对应平台")
	@DbField("tc.goods_id")
	private Long goodsId;

	@DbField("g.title")
	@TableField(exist = false)
	private String goodsTitle;

	@DbField("tc.link")
	private String link;

	@DbField("tc.pic")
	private String pic;

	@DbField("tc.sorted")
	private Integer sorted;

	@DbField("tc.click")
	private Integer click;

	@DbField("tc.status")
	private Boolean status;

	@DbField("tc.deleted")
	private Boolean deleted;
}
