Skip to content

Commit

Permalink
From and To are always int.
Browse files Browse the repository at this point in the history
  • Loading branch information
zaimy committed Jun 15, 2019
1 parent bd1ee04 commit d4c3b14
Showing 1 changed file with 6 additions and 6 deletions.
12 changes: 6 additions & 6 deletions api_job.go
Original file line number Diff line number Diff line change
Expand Up @@ -50,8 +50,8 @@ type ListJobsResultElements []ListJobsResultElement
type ListJobsResult struct {
ListJobsResultElements ListJobsResultElements
Count int
From float64
To float64
From int
To int
}

var listJobsSchema = map[string]interface{}{
Expand Down Expand Up @@ -82,8 +82,8 @@ var listJobsSchema = map[string]interface{}{
},
},
"count": Optional{0, 0},
"to": Optional{0., 0.},
"from": Optional{0., 0.},
"to": Optional{0, 0},
"from": Optional{0, 0},
}

var jobStatusSchema = map[string]interface{}{
Expand Down Expand Up @@ -254,8 +254,8 @@ func (client *TDClient) ListJobsWithOptions(options *ListJobsOptions) (*ListJobs
}
listJobsResult.ListJobsResultElements = retval
listJobsResult.Count = js["count"].(int)
listJobsResult.From = js["from"].(float64)
listJobsResult.To = js["to"].(float64)
listJobsResult.From = js["from"].(int)
listJobsResult.To = js["to"].(int)
return &listJobsResult, nil
}

Expand Down

0 comments on commit d4c3b14

Please sign in to comment.