modify models to schemas

This commit is contained in:
Rogee
2025-01-21 11:22:22 +08:00
parent 4f47b5f090
commit 5b99870e74
41 changed files with 33 additions and 23 deletions

View File

@@ -6,7 +6,7 @@ import (
"backend/app/http/storages"
"backend/app/http/tenants"
"backend/database/models/qvyun_v2/public/model"
"backend/database/schemas/public/model"
"backend/pkg/storage"
"backend/providers/jwt"

View File

@@ -5,8 +5,8 @@ import (
"database/sql"
"time"
"backend/database/models/qvyun_v2/public/model"
"backend/database/models/qvyun_v2/public/table"
"backend/database/schemas/public/model"
"backend/database/schemas/public/table"
"backend/providers/otel"
. "github.com/go-jet/jet/v2/postgres"

View File

@@ -5,7 +5,7 @@ import (
"backend/app/http/tenants"
"backend/app/http/users"
"backend/app/requests"
"backend/database/models/qvyun_v2/public/model"
"backend/database/schemas/public/model"
"backend/providers/jwt"
"github.com/gofiber/fiber/v3"

View File

@@ -8,7 +8,7 @@ import (
"backend/app/http/tenants"
"backend/app/http/users"
"backend/database/fields"
"backend/database/models/qvyun_v2/public/model"
"backend/database/schemas/public/model"
"backend/providers/jwt"
"backend/providers/pay"

View File

@@ -7,8 +7,8 @@ import (
"backend/app/requests"
"backend/database/fields"
"backend/database/models/qvyun_v2/public/model"
"backend/database/models/qvyun_v2/public/table"
"backend/database/schemas/public/model"
"backend/database/schemas/public/table"
"backend/pkg/utils"
"backend/providers/otel"

View File

@@ -10,7 +10,7 @@ import (
"backend/app/http/users"
"backend/app/requests"
"backend/database/fields"
"backend/database/models/qvyun_v2/public/model"
"backend/database/schemas/public/model"
"backend/providers/event"
"backend/providers/hashids"
"backend/providers/jwt"

View File

@@ -8,8 +8,8 @@ import (
"backend/app/requests"
"backend/database"
"backend/database/fields"
"backend/database/models/qvyun_v2/public/model"
"backend/database/models/qvyun_v2/public/table"
"backend/database/schemas/public/model"
"backend/database/schemas/public/table"
"backend/providers/hashids"
"backend/providers/otel"

View File

@@ -1,7 +1,7 @@
package storages
import (
"backend/database/models/qvyun_v2/public/model"
"backend/database/schemas/public/model"
"github.com/gofiber/fiber/v3"
"github.com/samber/lo"

View File

@@ -2,7 +2,7 @@ package storages
import (
"backend/database/fields"
"backend/database/models/qvyun_v2/public/model"
"backend/database/schemas/public/model"
)
type Storage struct {

View File

@@ -6,8 +6,8 @@ import (
"errors"
"backend/database/fields"
"backend/database/models/qvyun_v2/public/model"
"backend/database/models/qvyun_v2/public/table"
"backend/database/schemas/public/model"
"backend/database/schemas/public/table"
"backend/providers/otel"
. "github.com/go-jet/jet/v2/postgres"

View File

@@ -4,8 +4,8 @@ import (
"context"
"database/sql"
"backend/database/models/qvyun_v2/public/model"
"backend/database/models/qvyun_v2/public/table"
"backend/database/schemas/public/model"
"backend/database/schemas/public/table"
"backend/providers/otel"
. "github.com/go-jet/jet/v2/postgres"

View File

@@ -7,8 +7,8 @@ import (
"backend/app/events/publishers"
"backend/database/fields"
"backend/database/models/qvyun_v2/public/model"
"backend/database/models/qvyun_v2/public/table"
"backend/database/schemas/public/model"
"backend/database/schemas/public/table"
"backend/pkg/oauth"
"backend/providers/event"
"backend/providers/otel"

View File

@@ -8,8 +8,8 @@ import (
"backend/app/service/testx"
"backend/database"
"backend/database/fields"
"backend/database/models/qvyun_v2/public/model"
"backend/database/models/qvyun_v2/public/table"
"backend/database/schemas/public/model"
"backend/database/schemas/public/table"
"git.ipao.vip/rogeecn/atom/contracts"
. "github.com/smartystreets/goconvey/convey"

View File

@@ -12,7 +12,7 @@ import (
"backend/app/http/posts"
"backend/app/http/storages"
"backend/database/fields"
"backend/database/models/qvyun_v2/public/model"
"backend/database/schemas/public/model"
"backend/pkg/utils"
"backend/pkg/utils/fs"

View File

@@ -12,7 +12,7 @@ import (
"backend/app/http/posts"
"backend/app/http/storages"
"backend/database/fields"
"backend/database/models/qvyun_v2/public/model"
"backend/database/schemas/public/model"
"backend/pkg/utils"
"backend/pkg/utils/fs"

View File

@@ -6,9 +6,13 @@
{
"path": "frontend"
},
{
"path": "backend/database"
"name": "BACKEND_Database",
},
{
"path": "backend/app",
"name":"BACKEND_APP"
"name": "BACKEND_APP",
}
]
}

6
test/justfile Normal file
View File

@@ -0,0 +1,6 @@
recipe-name:
echo 'This is a recipe!'
# 这是一行注释
another-recipe:
@echo 'This is another recipe.'