package com.repair.model.pojo;

import com.baomidou.mybatisplus.annotation.*;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.experimental.Accessors;

import javax.validation.constraints.NotBlank;
import javax.validation.constraints.NotNull;
import java.io.Serializable;
import java.util.Date;

/**
 * <p>
 *
 * </p>
 *
 * @author ceshi
 * @since 2023-07-20
 */
@Data
@EqualsAndHashCode(callSuper = false)
@Accessors(chain = true)
@ApiModel(value="RepairCollaborateRecord对象", description="")
public class RepairCollaborateRecord implements Serializable {

    private static final long serialVersionUID = 1L;

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

    @ApiModelProperty(value = "报修记录ID")
    @NotNull(message = "报修记录ID不能为空")
    private Integer recordId;

    @ApiModelProperty(value = "协作人ID（多个人用逗号隔开）")
    @NotBlank(message = "协作人ID不能为空")
    private String collaborator;

    @ApiModelProperty(value = "申请人ID")
    @NotNull(message = "申请人不能为空")
    private Integer userId;

    @ApiModelProperty(value = "审批操作人ID")
    @NotNull(message = "审批操作人不能为空")
    private Integer approverId;

    @ApiModelProperty(value = "语音 可能做成语音文件上传的方式 然后这个字段记录语音文件名")
    @NotBlank(message = "语音不能为空")
    private String voice;

    @ApiModelProperty(value = "语音时长 可能做成语音文件上传的方式 然后这个字段记录语音文件名")
    @NotNull(message = "语音时长不能为空")
    private Integer voiceLength;

    @ApiModelProperty(value = "备注")
    @NotBlank(message = "备注不能为空")
    private String remark;

    @ApiModelProperty(value = "审批状态 0拒绝 1同意 2待审批")
    @NotNull(message = "审批状态不能为空")
    private Integer approvalStatu;

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

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

    @ApiModelProperty(value = "创建人员")
    @TableField(fill = FieldFill.INSERT)
    private String createUser;

    @ApiModelProperty(value = "更新人员")
    @TableField(fill = FieldFill.INSERT_UPDATE)
    private String updateUser;

    @ApiModelProperty(value = "逻辑删除 未删除：0；删除：1")
    @TableField(fill = FieldFill.INSERT)
    @TableLogic
    private Integer deleted;


}
