Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
A
admin-backend
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
admin-backend
Commits
9a2dc5ee
Commit
9a2dc5ee
authored
Apr 01, 2024
by
brent
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
add start_up_time
parent
d6274045
Changes
4
Show whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
6 additions
and
0 deletions
+6
-0
.DS_Store
.DS_Store
+0
-0
task.go
controllers/task.go
+4
-0
jwt.go
libs/utils/jwt.go
+1
-0
task.go
models/task.go
+1
-0
No files found.
.DS_Store
View file @
9a2dc5ee
No preview for this file type
controllers/task.go
View file @
9a2dc5ee
...
...
@@ -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
,
}
...
...
libs/utils/jwt.go
View file @
9a2dc5ee
...
...
@@ -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
}
models/task.go
View file @
9a2dc5ee
...
...
@@ -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"`
}
...
...
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