package com.cyksj.model.views;

import com.cyksj.model.entity.MiniPopularizeConfig;
import com.ejlchina.searcher.bean.DbField;
import com.ejlchina.searcher.bean.SearchBean;
import lombok.Getter;
import lombok.Setter;

import java.util.Date;

/**
 * 项目名: yhlxj2
 * 文件名: MiniPopularizeConfigFrontView
 * 创建者: JavaZou
 * 创建时间:2025/4/7 17:46
 */
@Getter
@Setter
@SearchBean(tables = "mini_popularize_config mpc left join mini_popularize_config_category mc on mc.id = mpc.cid",
		where = "mpc.status is true",
		orderBy = "mc.sorted,mpc.sorted")
public class MiniPopularizeConfigFrontView {
	@DbField("mpc.id")
	private Long id;

	@DbField("mpc.cid")
	private Long cid;

	/**
	 * 分类
	 */
	@DbField("mc.name")
	private String category;

	/**
	 * 类型
	 */
	@DbField("mpc.type")
	private MiniPopularizeConfig.Type type;

	@DbField("mpc.img")
	private String img;

	@DbField("mpc.tips")
	private String tips;

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

	@DbField("mpc.update_time")
	private Date updateTime;
}
