Commit 9a2dc5ee authored by brent's avatar brent

add start_up_time

parent d6274045
No preview for this file type
......@@ -2575,6 +2575,7 @@ func (server *TaskController) ModelById() {
"task_type.form",
"task_type.access_status",
"task_type.publish_status",
"task_type.start_up_time",
"favorite.id AS is_favorite").
From("task_type").
LeftJoin("favorite").On(cond)
......@@ -2599,6 +2600,7 @@ func (server *TaskController) ModelById() {
"task_type.category",
"task_type.form",
"task_type.access_status",
"task_type.start_up_time",
"task_type.publish_status").
From("task_type")
}
......@@ -2632,6 +2634,7 @@ func (server *TaskController) ModelById() {
Unit string `json:"unit"`
Sort int `json:"sort"`
EstimatExeTime int `json:"estimat_exe_time"`
StartUpTime int `json:"start_up_time"`
IsFavorite int `json:"is_favorite"`
}
......@@ -2683,6 +2686,7 @@ func (server *TaskController) ModelById() {
Unit: data.Unit,
Sort: data.Sort,
EstimatExeTime: data.EstimatExeTime,
StartUpTime: data.StartUpTime,
IsFavorite: data.IsFavorite,
}
......
......@@ -192,6 +192,7 @@ func GenerateKongToken(jwtCredential *models.JWTResponse, custom_id string) (tok
if err != nil {
return "", errors.New("error: failed to generate token")
}
tokenStr = tokenStr + "="
return tokenStr, nil
}
......@@ -177,6 +177,7 @@ type Model struct {
Unit string `json:"unit";orm:"column(unit)"`
Sort int `json:"sort";orm:"column(sort)"`
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"`
}
......
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