Commit 3cf4394e authored by brent's avatar brent

modify response

parent 308db6ac
This diff is collapsed.
{"/Users/brent/Documents/wubanWork/aon_app_server/controllers":1723107582385421558} {"/Users/brent/Documents/wubanWork/aon_app_server/controllers":1723261526218747361}
\ No newline at end of file \ No newline at end of file
...@@ -20,7 +20,8 @@ type Task struct { ...@@ -20,7 +20,8 @@ type Task struct {
ApiPath string `json:"api_path" bson:"api_path"` ApiPath string `json:"api_path" bson:"api_path"`
UserId string `json:"user_id" bson:"user_id"` UserId string `json:"user_id" bson:"user_id"`
Status int `json:"status" bson:"status"` Status int `json:"status" bson:"status"`
Output []string `json:"output" bson:"output"` Output interface{} `json:"output" bson:"output"`
ReplicateOutput interface{} `json:"replicate_output" bson:"replicate_output"`
Error interface{} `json:"error" bson:"error"` Error interface{} `json:"error" bson:"error"`
ExcuteId string `json:"excute_id" bson:"excute_id"` ExcuteId string `json:"excute_id" bson:"excute_id"`
AppId string `json:"app_id" bson:"app_id"` AppId string `json:"app_id" bson:"app_id"`
...@@ -70,7 +71,12 @@ type TaskReturn struct { ...@@ -70,7 +71,12 @@ type TaskReturn struct {
type TaskResponse struct { type TaskResponse struct {
Task *TaskReturn `json:"task"` Task *TaskReturn `json:"task"`
Output []string `json:"output"` Output interface{} `json:"output"`
}
type TaskResponseNew struct {
Output interface{} `json:"output,omitempty"`
Error interface{} `json:"error,omitempty"`
} }
type TaskResult struct { type TaskResult struct {
......
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