package com.ruoyi.frequency.activity.entity;

import java.util.Date;
import com.fasterxml.jackson.annotation.JsonFormat;
import lombok.Data;
import com.baomidou.mybatisplus.annotation.TableName;
import lombok.experimental.Accessors;
import com.ruoyi.common.annotation.Excel;
import io.swagger.annotations.ApiModelProperty;
import com.baomidou.mybatisplus.annotation.TableField;
import com.ruoyi.vo.UserInfo;
import com.ruoyi.common.core.domain.BaseEntity;

/**
 * 活动对象 t_activity
 *
 * @author liwenlong
 * @date 2024-03-19
 */
@Data
@Accessors(chain = true)
@TableName("t_activity")
public class Activity extends BaseEntity
{
    private static final long serialVersionUID = 1L;


    @ApiModelProperty("租户号")
    private Long id;

    @ApiModelProperty("删除标志;1 正常 2 删除 3 禁用")
    private Long delFlag;

    @ApiModelProperty("标题")
    @Excel(name = "标题")
    private String title;

    @ApiModelProperty("内容(富文本)")
    private String content;

    @ApiModelProperty("图片")
    @Excel(name = "图片")
    private String image;

    @ApiModelProperty("排序")
    @Excel(name = "排序")
    private Long sort;

    @ApiModelProperty("开始时间")
    @Excel(name = "开始时间", width = 30, dateFormat = "yyyy-MM-dd")
    private Date startTime;

    @ApiModelProperty("结束时间")
    @Excel(name = "结束时间", width = 30, dateFormat = "yyyy-MM-dd")
    private Date endTime;

    @ApiModelProperty("浏览量")
    @Excel(name = "浏览量")
    private Integer browseNum;

    @ApiModelProperty("点赞数")
    @Excel(name = "点赞数")
    private Integer likeNum;

    @ApiModelProperty(value = "是否点赞 1 没有 2 点赞")
    @TableField(exist = false)
    private Integer isLike;

    @ApiModelProperty(value = "是否自己 1 不是 2 是自己")
    @TableField(exist = false)
    private Integer isSelf;

}
