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}
\ No newline at end of file
{"/Users/brent/Documents/wubanWork/aon_app_server/controllers":1723261526218747361}
\ No newline at end of file
......@@ -14,19 +14,20 @@ const (
)
type Task struct {
Id interface{} `json:"id" bson:"_id,omitempty"`
TaskId string `json:"task_id,omitempty" bson:"task_id"`
Input interface{} `json:"input" bson:"input"`
ApiPath string `json:"api_path" bson:"api_path"`
UserId string `json:"user_id" bson:"user_id"`
Status int `json:"status" bson:"status"`
Output []string `json:"output" bson:"output"`
Error interface{} `json:"error" bson:"error"`
ExcuteId string `json:"excute_id" bson:"excute_id"`
AppId string `json:"app_id" bson:"app_id"`
CreatedTime time.Time `json:"created_time" bson:"created_time"`
UpdatedTime time.Time `json:"updated_time" bson:"updated_time"`
Deleted int `json:"deleted" bson:"deleted"`
Id interface{} `json:"id" bson:"_id,omitempty"`
TaskId string `json:"task_id,omitempty" bson:"task_id"`
Input interface{} `json:"input" bson:"input"`
ApiPath string `json:"api_path" bson:"api_path"`
UserId string `json:"user_id" bson:"user_id"`
Status int `json:"status" bson:"status"`
Output interface{} `json:"output" bson:"output"`
ReplicateOutput interface{} `json:"replicate_output" bson:"replicate_output"`
Error interface{} `json:"error" bson:"error"`
ExcuteId string `json:"excute_id" bson:"excute_id"`
AppId string `json:"app_id" bson:"app_id"`
CreatedTime time.Time `json:"created_time" bson:"created_time"`
UpdatedTime time.Time `json:"updated_time" bson:"updated_time"`
Deleted int `json:"deleted" bson:"deleted"`
}
type ReplicateRequest struct {
......@@ -70,7 +71,12 @@ type TaskReturn struct {
type TaskResponse struct {
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 {
......
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