package com.ruoyi.frequency.follow.entity;

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

import java.math.BigDecimal;
import java.util.Date;

/**
 * 关注对象 t_follow
 * 
 * @author liwenlong
 * @date 2023-07-22
 */
@Data
@Accessors(chain = true)
@TableName("t_follow")
public class Follow extends BaseEntity
{
    private static final long serialVersionUID = 1L;

    /** 主键id */
    private Long id;

    /** 删除标志 1正常 删除 3 禁用 */
    private Integer delFlag;

    /** 关注用户id */
    @Excel(name = "关注用户id")
    private Long userId;

    /** 被关注用户id */
    @Excel(name = "被关注用户id")
    private Long followerUserId;

    /** 关注用户类型 1 用户 2 表现师 */
    @Excel(name = "关注用户类型 1 用户 2 表现师")
    private Integer userType;

    /** 被关注用户类型 1 用户 2 表现师 */
    @Excel(name = "被关注用户类型 1 用户 2 表现师")
    private Integer followerUserType;

    @ApiModelProperty(value = "用户信息")
    @TableField(exist = false)
    private UserInfo userInfo;

    @ApiModelProperty("开始时间")
    @TableField(exist = false)
    private Date beginTime;

    @ApiModelProperty("结束时间")
    @TableField(exist = false)
    private Date endTime;


    @ApiModelProperty(value = "累计订单数")
    @TableField(exist = false)
    private Integer orderNum;

    @ApiModelProperty(value = "累计金额")
    @TableField(exist = false)
    private BigDecimal orderAmount;

}
