Commit 2694fbb3 authored by brent's avatar brent

add start_up_time

parent 9a2dc5ee
...@@ -2310,7 +2310,7 @@ func (server *TaskController) Examples() { ...@@ -2310,7 +2310,7 @@ func (server *TaskController) Examples() {
return return
} }
sql = fmt.Sprintf("SELECT id, `name` AS tit,type,`desc` AS content, sort,tags ,estimat_exe_time,price,unit,examples,codes,base_model,model,api_path,version,category,form,access_status,publish_status FROM task_type WHERE deleted = 0 %s order by sort LIMIT %d,%d;", where, offset, size) sql = fmt.Sprintf("SELECT id, `name` AS tit,type,`desc` AS content, sort,tags ,start_up_time, estimat_exe_time,price,unit,examples,codes,base_model,model,api_path,version,category,form,access_status,publish_status FROM task_type WHERE deleted = 0 %s order by sort LIMIT %d,%d;", where, offset, size)
mysql.GetMysqlInstace().Ormer.Raw(sql).QueryRows(&types) mysql.GetMysqlInstace().Ormer.Raw(sql).QueryRows(&types)
var remodels []*models.ResonseModel var remodels []*models.ResonseModel
for _, data := range types { for _, data := range types {
...@@ -2360,6 +2360,7 @@ func (server *TaskController) Examples() { ...@@ -2360,6 +2360,7 @@ func (server *TaskController) Examples() {
Unit: data.Unit, Unit: data.Unit,
Sort: data.Sort, Sort: data.Sort,
EstimatExeTime: data.EstimatExeTime, EstimatExeTime: data.EstimatExeTime,
StartUpTime: data.StartUpTime,
} }
remodels = append(remodels, &remodel) remodels = append(remodels, &remodel)
} }
......
...@@ -204,6 +204,7 @@ type ResonseModel struct { ...@@ -204,6 +204,7 @@ type ResonseModel struct {
Unit string `json:"unit";orm:"column(unit)"` Unit string `json:"unit";orm:"column(unit)"`
Sort int `json:"sort";orm:"column(sort)"` Sort int `json:"sort";orm:"column(sort)"`
EstimatExeTime int `json:"estimat_exe_time";orm:"column(estimat_exe_time)"` EstimatExeTime int `json:"estimat_exe_time";orm:"column(estimat_exe_time)"`
StartUpTime int `json:"start_up_time";orm:"column(start_up_time)"`
IsFavorite int `json:"is_favorite"` IsFavorite int `json:"is_favorite"`
} }
......
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