Commit c9cf1c8e authored by duanjinfei's avatar duanjinfei

upadte model info struct

parent 4b9cdbf1
...@@ -43,9 +43,9 @@ type ModelResponse struct { ...@@ -43,9 +43,9 @@ type ModelResponse struct {
} }
type HardwareRequire struct { type HardwareRequire struct {
DiskSize string `json:"disk_size"` DiskSize int64 `json:"disk_size"`
Gpus []*GpuInfo `json:"gpus"` Gpus []*GpuInfo `json:"gpus"`
MemorySize string `json:"memory_size"` MemorySize int64 `json:"memory_size"`
} }
type GpuInfo struct { type GpuInfo struct {
...@@ -54,9 +54,9 @@ type GpuInfo struct { ...@@ -54,9 +54,9 @@ type GpuInfo struct {
type ModelInfo struct { type ModelInfo struct {
Time time.Time `json:"time"` Time time.Time `json:"time"`
Count int `json:"count"` Count int64 `json:"count"`
HardwareRequire *HardwareRequire `json:"hardware_require"` HardwareRequire *HardwareRequire `json:"hardware_require"`
Kind int `json:"kind"` Kind int64 `json:"kind"`
TaskId uint64 `json:"task_id"` TaskId uint64 `json:"task_id"`
User string `json:"user"` User string `json:"user"`
Pwd string `json:"pwd"` Pwd string `json:"pwd"`
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment