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
3d507956
Commit
3d507956
authored
Feb 26, 2024
by
vicotor
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
update package name
parent
8a4e2544
Pipeline
#728
failed with stages
Changes
9
Pipelines
1
Show whitespace changes
Inline
Side-by-side
Showing
9 changed files
with
13 additions
and
9 deletions
+13
-9
cache.go
cachedata/cache.go
+1
-1
cache_test.go
cachedata/cache_test.go
+1
-1
payment.go
cachedata/payment.go
+1
-1
task.go
cachedata/task.go
+1
-1
userInfo.go
cachedata/userInfo.go
+2
-2
userLevel.go
cachedata/userLevel.go
+1
-1
userLevelAndTaskType.go
cachedata/userLevelAndTaskType.go
+1
-1
go.mod
go.mod
+1
-1
taskType.go
model/taskType.go
+4
-0
No files found.
cachedata/cache.go
View file @
3d507956
...
@@ -3,7 +3,7 @@ package cachedata
...
@@ -3,7 +3,7 @@ package cachedata
import
(
import
(
"context"
"context"
lru
"github.com/hashicorp/golang-lru"
lru
"github.com/hashicorp/golang-lru"
"github.com/odysseus/
payment
/model"
"github.com/odysseus/
cache
/model"
goredislib
"github.com/redis/go-redis/v9"
goredislib
"github.com/redis/go-redis/v9"
)
)
...
...
cachedata/cache_test.go
View file @
3d507956
...
@@ -2,7 +2,7 @@ package cachedata
...
@@ -2,7 +2,7 @@ package cachedata
import
(
import
(
"context"
"context"
"github.com/odysseus/
payment
/model"
"github.com/odysseus/
cache
/model"
"testing"
"testing"
)
)
...
...
cachedata/payment.go
View file @
3d507956
...
@@ -2,7 +2,7 @@ package cachedata
...
@@ -2,7 +2,7 @@ package cachedata
import
(
import
(
"fmt"
"fmt"
"github.com/odysseus/
payment
/model"
"github.com/odysseus/
cache
/model"
goredislib
"github.com/redis/go-redis/v9"
goredislib
"github.com/redis/go-redis/v9"
log
"github.com/sirupsen/logrus"
log
"github.com/sirupsen/logrus"
"strconv"
"strconv"
...
...
cachedata/task.go
View file @
3d507956
...
@@ -3,7 +3,7 @@ package cachedata
...
@@ -3,7 +3,7 @@ package cachedata
import
(
import
(
"context"
"context"
"encoding/json"
"encoding/json"
"github.com/odysseus/
payment
/model"
"github.com/odysseus/
cache
/model"
"strconv"
"strconv"
)
)
...
...
cachedata/userInfo.go
View file @
3d507956
package
cachedata
package
cachedata
import
(
import
(
"github.com/odysseus/
payment
/model"
"github.com/odysseus/
cache
/model"
"github.com/odysseus/
payment
/redisService"
"github.com/odysseus/
cache
/redisService"
goredislib
"github.com/redis/go-redis/v9"
goredislib
"github.com/redis/go-redis/v9"
log
"github.com/sirupsen/logrus"
log
"github.com/sirupsen/logrus"
"strconv"
"strconv"
...
...
cachedata/userLevel.go
View file @
3d507956
...
@@ -2,7 +2,7 @@ package cachedata
...
@@ -2,7 +2,7 @@ package cachedata
import
(
import
(
"encoding/json"
"encoding/json"
"github.com/odysseus/
payment
/model"
"github.com/odysseus/
cache
/model"
"strconv"
"strconv"
)
)
...
...
cachedata/userLevelAndTaskType.go
View file @
3d507956
...
@@ -2,7 +2,7 @@ package cachedata
...
@@ -2,7 +2,7 @@ package cachedata
import
(
import
(
"encoding/json"
"encoding/json"
"github.com/odysseus/
payment
/model"
"github.com/odysseus/
cache
/model"
"strconv"
"strconv"
)
)
...
...
go.mod
View file @
3d507956
module github.com/odysseus/
payment
module github.com/odysseus/
cache
go 1.18
go 1.18
...
...
model/taskType.go
View file @
3d507956
...
@@ -21,6 +21,10 @@ type TaskType struct {
...
@@ -21,6 +21,10 @@ type TaskType struct {
SignUrl
string
`orm:"column(sign_url)" db:"sign_url" json:"sign_url" form:"sign_url"`
SignUrl
string
`orm:"column(sign_url)" db:"sign_url" json:"sign_url" form:"sign_url"`
Username
string
`orm:"column(username)" db:"username" json:"username" form:"username"`
Username
string
`orm:"column(username)" db:"username" json:"username" form:"username"`
Password
string
`orm:"column(password)" db:"password" json:"password" form:"password"`
Password
string
`orm:"column(password)" db:"password" json:"password" form:"password"`
Type
int
`orm:"column(type)" db:"type" json:"type" form:"type"`
// 任务类型 1=txt2img,2=txt2txt,3=txt2video
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"`
CreatedTime
time
.
Time
`orm:"column(created_time)" db:"created_time" json:"created_time" form:"created_time"`
// 创建时间
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"`
// 更新时间
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"`
// 逻辑删除
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