package com.ruoyi.cai.domain;

import com.baomidou.mybatisplus.annotation.*;
import com.fasterxml.jackson.annotation.JsonFormat;
import com.ruoyi.common.constant.DateConstant;
import lombok.Data;
import lombok.EqualsAndHashCode;
import java.io.Serializable;
import java.time.LocalDate;
import java.util.Date;
import java.math.BigDecimal;

import com.ruoyi.common.core.domain.BaseEntity;
import org.springframework.format.annotation.DateTimeFormat;

/**
 * 榜单对象 cai_rank
 *
 * @author 77
 * @date 2024-01-20
 */
@Data
@TableName("cai_rank")
public class Rank implements Serializable {

    private static final long serialVersionUID=1L;

    /**
     *
     */
    @TableId(value = "id")
    private Long id;
    /**
     * 类型  1-魅力榜 2-邀请榜
     */
    private Integer type;
    /**
     * 日期类型 1-日榜 2-周榜 3-月榜
     */
    private Integer dataType;
    /**
     * 榜单期数
     */
    private String rankTime;
    @DateTimeFormat(pattern = DateConstant.PATTERN_DATE)
    @JsonFormat(pattern = DateConstant.PATTERN_DATE)
    private LocalDate rankBeginTime;
    private LocalDate rankEndTime;
    private Integer orderRank;
    private Long traceId;
    /**
     * 数值
     */
    private Long num;
    /**
     *
     */
    private Long userId;
    /**
     * 是否领取奖励
     */
    private Boolean draw;
}
