Commit 3d507956 authored by vicotor's avatar vicotor

update package name

parent 8a4e2544
Pipeline #728 failed with stages
...@@ -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"
) )
......
...@@ -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"
) )
......
...@@ -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"
......
...@@ -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"
) )
......
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"
......
...@@ -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"
) )
......
...@@ -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"
) )
......
module github.com/odysseus/payment module github.com/odysseus/cache
go 1.18 go 1.18
......
...@@ -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"` // 逻辑删除
......
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