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.io.Serializable;
import java.util.Date;

/**
 * (ComputingResource)实体类
 *
 * @author Xidaray
 * @since 2023-11-29 14:23:01
 */
@JsonNaming(PropertyNamingStrategy.SnakeCaseStrategy.class)
@Data
public class ComputingResource implements Serializable {
    private static final long serialVersionUID = -42500298368776666L;
    /**
     * 主键
     */
    @ApiModelProperty(value = "编号", notes = "唯一标识符")
    private Integer id;

    @ApiModelProperty("资源id")
    private Integer resourceId;

    @ApiModelProperty("计算资源的描述")
    private String computingResource;

    @ApiModelProperty("计算资源的规格说明")
    private String standard;

    @ApiModelProperty("资源的详细描述")
    private String description;

    @ApiModelProperty("cpu核数")
    private Integer cpuCores;

    @ApiModelProperty("内存大小GB")
    private Integer memoryGb;

    @ApiModelProperty("显存大小GB")
    private Integer gpuMemoryGb;

    @ApiModelProperty("GPU个数")
    private Integer gpuNums;

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

    @ApiModelProperty("标签")
    private String labels;

    @ApiModelProperty(value = "创建者的用户名", example = "admin")
    private String createBy;

    @ApiModelProperty(value = "资源的创建时间")
    private Date createTime;

    @ApiModelProperty(value = "更新者")
    private String updateBy;

    @ApiModelProperty(value = "更新时间")
    private Date updateTime;

    @ApiModelProperty(value = "状态标识", notes = "0表示失效，1表示生效")
    private Integer state;
}

