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
...@@ -14,19 +14,20 @@ const ( ...@@ -14,19 +14,20 @@ const (
) )
type Task struct { type Task struct {
Id interface{} `json:"id" bson:"_id,omitempty"` Id interface{} `json:"id" bson:"_id,omitempty"`
TaskId string `json:"task_id,omitempty" bson:"task_id"` TaskId string `json:"task_id,omitempty" bson:"task_id"`
Input interface{} `json:"input" bson:"input"` Input interface{} `json:"input" bson:"input"`
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"`
Error interface{} `json:"error" bson:"error"` ReplicateOutput interface{} `json:"replicate_output" bson:"replicate_output"`
ExcuteId string `json:"excute_id" bson:"excute_id"` Error interface{} `json:"error" bson:"error"`
AppId string `json:"app_id" bson:"app_id"` ExcuteId string `json:"excute_id" bson:"excute_id"`
CreatedTime time.Time `json:"created_time" bson:"created_time"` AppId string `json:"app_id" bson:"app_id"`
UpdatedTime time.Time `json:"updated_time" bson:"updated_time"` CreatedTime time.Time `json:"created_time" bson:"created_time"`
Deleted int `json:"deleted" bson:"deleted"` UpdatedTime time.Time `json:"updated_time" bson:"updated_time"`
Deleted int `json:"deleted" bson:"deleted"`
} }
type ReplicateRequest struct { type ReplicateRequest struct {
...@@ -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