Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
C
cache
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
cache
Commits
8abdbf41
Commit
8abdbf41
authored
Mar 08, 2024
by
luxq
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
add new field in tasktype
parent
f1486e03
Changes
2
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
27 additions
and
26 deletions
+27
-26
db_test.go
model/db_test.go
+4
-4
taskType.go
model/taskType.go
+23
-22
No files found.
model/db_test.go
View file @
8abdbf41
...
...
@@ -4,11 +4,11 @@ import "testing"
func
init
()
{
DbInit
(
DbConfig
{
Host
:
"
192.168.1.211
"
,
Host
:
"
43.198.252.255
"
,
Port
:
3306
,
User
:
"
root
"
,
Passwd
:
"
12345678
"
,
DbName
:
"
liuxuzhong
"
,
User
:
"
ai
"
,
Passwd
:
"
RFnnKHRar5xk7TEF
"
,
DbName
:
"
ai
"
,
})
}
...
...
model/taskType.go
View file @
8abdbf41
...
...
@@ -25,6 +25,7 @@ type TaskType struct {
Kind
int
`orm:"column(kind)" db:"kind" json:"kind" form:"kind"`
// 任务类型 0=系统任务,1=计算任务,2=自定义任务,3=标准任务
BaseModel
string
`orm:"column(base_model)" json:"base_model" db:"base_model" form:"base_model"`
Model
string
`orm:"column(model)" json:"model" db:"model" form:"model"`
ResultFileExpires
int
`orm:"column(result_file_expires)" json:"result_file_expires" db:"result_file_expires" form:"result_file_expires"`
CreatedTime
time
.
Time
`orm:"column(created_time)" db:"created_time" json:"created_time" form:"created_time"`
// 创建时间
UpdatedTime
time
.
Time
`orm:"column(updated_time)" db:"updated_time" json:"updated_time" form:"updated_time"`
// 更新时间
Deleted
int64
`orm:"column(deleted)" db:"deleted" json:"deleted" form:"deleted"`
// 逻辑删除
...
...
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