package com.cmvr.test.model.domain;

import com.baomidou.mybatisplus.annotation.FieldFill;
import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.cmvr.common.annotation.Excel;
import com.cmvr.common.core.domain.BaseEntity;
import com.cmvr.test.enums.LoopNodeTypeEnum;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.*;

@Data
@ApiModel("检测项配置")
@Builder
@AllArgsConstructor
@NoArgsConstructor
@EqualsAndHashCode(callSuper = false)
public class TeDetectionItem extends BaseEntity {
    private static final long serialVersionUID = 1L;

    @ApiModelProperty("id")
    @TableId(value = "id", type = IdType.ASSIGN_UUID)
    private String id;

    @Excel(name = "检测项名称")
    @ApiModelProperty("检测项名称")
    private String detectName;

    @Excel(name = "检测项描述")
    @ApiModelProperty("检测项描述")
    private String detectDesc;

    @Excel(name = "检测项流程数据")
    @ApiModelProperty("检测项流程数据")
    private String flowData;

    @Excel(name = "状态")
    @ApiModelProperty(value = "状态 （0正常 1停用）")
    @TableField(fill = FieldFill.INSERT)
    private String status;

    @Excel(name = "是否部署")
    @ApiModelProperty(value = "是否部署 （0已部署 1未部署）")
    private String isDeploy;

    @Excel(name = "版本")
    @ApiModelProperty("版本")
    private String detectVersion;

    @ApiModelProperty("分组ID")
    private Long groupId;

    @ApiModelProperty("检测项参数配置(JSON)")
    private String config;

    /**
     * #{@link LoopNodeTypeEnum}
     */
    @ApiModelProperty("场景标识，默认 NORMAL")
    private String sceneCode;
}
