1proto更新
This commit is contained in:
parent
62ea8480d7
commit
d280f36c74
|
@ -64,13 +64,13 @@ func (l *ListJobLogic) ListJob(in *modelarts.ListImportTasks) (*modelarts.Return
|
|||
for index := range rows {
|
||||
task := taskList.GetIndex(index)
|
||||
var job modelarts.ImportTasks
|
||||
println(task)
|
||||
job.Status = task.Get("status").MustString()
|
||||
//startTime, err := time.Parse(l.svcCtx.Config.ShuguangConf.Layout, jobShuguang.Get("jobStartTime").MustString())
|
||||
//if err == nil {
|
||||
// job.JobStartTime = startTime.String()
|
||||
//}
|
||||
|
||||
job.TaskId = task.Get("task_id").MustString()
|
||||
job.DatasetId = task.Get("dataset_id").MustString()
|
||||
job.ImportPath = task.Get("import_path").MustString()
|
||||
job.ImportType = int32(task.Get("import_type").MustInt())
|
||||
job.TotalSampleCount = uint32(task.Get("total_sample_count").MustInt())
|
||||
job.ImportedSampleCount = uint32(task.Get("imported_sample_count").MustInt())
|
||||
Jobs = append(Jobs, &job)
|
||||
}
|
||||
resp.TotalCount = uint32(jsonResult.Get("total_count").MustInt())
|
||||
|
|
Loading…
Reference in New Issue