Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
A
aon-app-server
Project
Project
Details
Activity
Releases
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
Odysseus
aon-app-server
Commits
3cf4394e
Commit
3cf4394e
authored
Aug 10, 2024
by
brent
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
modify response
parent
308db6ac
Changes
3
Expand all
Show whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
345 additions
and
22 deletions
+345
-22
task.go
controllers/task.go
+324
-7
lastupdate.tmp
lastupdate.tmp
+1
-1
task.go
models/task.go
+20
-14
No files found.
controllers/task.go
View file @
3cf4394e
This diff is collapsed.
Click to expand it.
lastupdate.tmp
View file @
3cf4394e
{"/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
models/task.go
View file @
3cf4394e
...
...
@@ -20,7 +20,8 @@ type Task struct {
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"`
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"`
...
...
@@ -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
{
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment