package com.ruoyi.platform.domain;

import com.fasterxml.jackson.databind.PropertyNamingStrategy;
import com.fasterxml.jackson.databind.annotation.JsonNaming;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

import java.util.Date;

@JsonNaming(PropertyNamingStrategy.SnakeCaseStrategy.class)
@Data
public class ResourceOccupy {
    @ApiModelProperty(value = "编号", notes = "唯一标识符")
    private Integer id;

    @ApiModelProperty("用户")
    private Long userId;

    @ApiModelProperty("计算资源")
    private Integer computingResourceId;

    @ApiModelProperty("描述")
    private String description;

    @ApiModelProperty("积分/小时")
    private Double creditPerHour;

    @ApiModelProperty("扣除的积分")
    private Double deduceCredit;

    @ApiModelProperty("上一次扣分时间")
    private Date deduceLastTime;

    @ApiModelProperty("状态")
    private Integer state;

    @ApiModelProperty("开始时间")
    private Date startTime;

    @ApiModelProperty("任务类型")
    private String taskType;

    @ApiModelProperty("任务id")
    private Long taskId;

    @ApiModelProperty("任务id")
    private Long taskInsId;

    @ApiModelProperty("流水线id")
    private Long workflowId;

    @ApiModelProperty("流水线节点id")
    private String nodeId;

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

    @ApiModelProperty("任务状态")
    private Integer taskState;
}
