package com.cyksj.model.views;

import com.ejlchina.searcher.bean.DbField;
import com.ejlchina.searcher.bean.SearchBean;
import lombok.Data;

import java.util.Date;

/**
 * 项目名: yhlxj
 * 文件名: UserActivityDistributeDetailView
 * 创建者: JavaZou
 * 创建时间:2024/7/23 17:12
 */
@Data
@SearchBean(tables = "user_activity ua"
		, where = "ua.deleted = true :time:")
public class UserActivityDistributeDetailView {
	@DbField("ua.id")
	private Integer id;

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

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

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

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

	/**
	 * 规则图片
	 */
	@DbField("ua.rules")
	private String rules;

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

	@DbField("ua.coupon_ids")
	private String couponIds;

	/**
	 * 统计类型(周/月)
	 * week,month
	 */
	@DbField("ua.statistics_type")
	private String statisticsType;

	/**
	 * 分销排行榜类型
	 * 0.金额榜，1.打单榜
	 * 2.both
	 */
	@DbField("ua.rank_type")
	private Integer rankType;

	/**
	 * 头奖范围
	 * 5：前五名
	 */
	@DbField("ua.head_rank")
	private Integer headRank;

	/**
	 * 奖励信息json
	 */
	@DbField("ua.reward_info")
	private String rewardInfo;

	@DbField("ua.created_time")
	private Date createdTime;
}
