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;

/**
 * 项目名: yhlxj
 * 文件名: UserActivityView
 * 创建者: JavaZou
 * 创建时间:2024/4/16 15:43
 */
@Getter
@Setter
@SearchBean(tables = "user_activity ua",
		where = "ua.deleted is true :time:")
public class UserActivityView {

	@DbField("ua.id")
	private Long id;

	/**
	 * 活动名称
	 */
	@DbField("ua.name")
	private String name;

	@DbField("ua.start_time")
	private Date startTime;

	@DbField("ua.end_time")
	private Date endTime;

	/**
	 * 0.大学生认证
	 * 1.个人分销排行
	 * 3.平台发券
	 */
	@DbField("ua.type")
	private Integer type;

	/**
	 * 优惠券ids
	 */
	@DbField("ua.coupon_ids")
	private String couponIds;

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

	@DbField("ua.rules")
	private String rules;

	/**
	 * 是否领取过活动
	 * true已领取
	 */
	@DbIgnore
	private Boolean isReceived;

	@DbIgnore
	private List<CouponView> couponViews;
}
