package com.codvision.workflow.entity;

import com.baomidou.mybatisplus.annotation.*;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.AllArgsConstructor;
import lombok.Builder;
import lombok.Data;
import lombok.NoArgsConstructor;

import java.io.Serializable;
import java.util.Date;

/**
 * @author hxl
 */
@Data
@ApiModel
@Builder
@NoArgsConstructor
@AllArgsConstructor
@TableName("tbl_work_flow_cc_item")
public class WorkFlowCcItem implements Serializable {

    private static final long serialVersionUID = 1L;

    @TableId(value = "id", type = IdType.AUTO)
    private Integer id;

    @ApiModelProperty("流程定义ID")
    private String definitionId;

    @ApiModelProperty("流程实例ID")
    private String instanceId;

    @ApiModelProperty("流程任务ID")
    private String taskId;

    @ApiModelProperty("流程任务名称")
    private String taskName;

    @ApiModelProperty("抄送标题")
    private String ccTitle;

    @ApiModelProperty("抄送人姓名")
    private String ccName;

    @ApiModelProperty("抄送人ID")
    private Integer ccUid;

    @ApiModelProperty("接收人ID")
    private Integer toUid;

    @TableField(fill = FieldFill.INSERT)
    @ApiModelProperty("创建时间")
    private Date createTime;

    @TableField(fill = FieldFill.INSERT_UPDATE)
    @ApiModelProperty("更新时间")
    private Date updateTime;
}