package com.ruoyi.frequency.workstep.entity;

import com.baomidou.mybatisplus.annotation.TableName;
import com.ruoyi.common.annotation.Excel;
import com.ruoyi.common.core.domain.BaseEntity;
import com.ruoyi.controller.req.WorksStepReq;
import com.ruoyi.utils.SnowIdUtils;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.experimental.Accessors;

/**
 * 作品踩对象 t_work_step
 * 
 * @author liwenlong
 * @date 2023-10-12
 */
@Data
@Accessors(chain = true)
@TableName("t_work_step")
public class WorkStep extends BaseEntity
{
    private static final long serialVersionUID = 1L;


    @ApiModelProperty("主键id")
    private Long id;

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

    @ApiModelProperty("用户类型 1 用户 2 商家")
    @Excel(name = "用户类型 1 用户 2 商家")
    private Integer userType;

    @ApiModelProperty("用户id")
    @Excel(name = "用户id")
    private Long userId;

    @ApiModelProperty("作品ID")
    @Excel(name = "作品ID")
    private Long workId;


    public WorkStep() {
    }

    public WorkStep(WorksStepReq req) {
        this.id = SnowIdUtils.uniqueLong();
        this.workId = req.getWorkId();
    }
}
