.gitignore

This commit is contained in:
2026-02-24 16:24:47 +08:00
parent a890e326da
commit 1f84fe14a9
30 changed files with 42 additions and 45 deletions

View File

@@ -6,7 +6,7 @@ import (
"cid/model/dto" "cid/model/dto"
"cid/service" "cid/service"
"gitee.com/red-future---jilin-g/common/beans" "gitea.com/red-future/common/beans"
) )
type adPosition struct{} type adPosition struct{}

View File

@@ -5,7 +5,7 @@ import (
"cid/service" "cid/service"
"context" "context"
"gitee.com/red-future---jilin-g/common/beans" "gitea.com/red-future/common/beans"
) )
type advertisement struct{} type advertisement struct{}

View File

@@ -5,7 +5,7 @@ import (
"cid/service" "cid/service"
"context" "context"
"gitee.com/red-future---jilin-g/common/beans" "gitea.com/red-future/common/beans"
) )
type advertiser struct{} type advertiser struct{}

View File

@@ -5,8 +5,8 @@ import (
"cid/model/entity" "cid/model/entity"
"context" "context"
"gitee.com/red-future---jilin-g/common/beans" "gitea.com/red-future/common/beans"
"gitee.com/red-future---jilin-g/common/mongo" "gitea.com/red-future/common/mongo"
"github.com/gogf/gf/v2/frame/g" "github.com/gogf/gf/v2/frame/g"
"github.com/gogf/gf/v2/util/gconv" "github.com/gogf/gf/v2/util/gconv"
"go.mongodb.org/mongo-driver/v2/bson" "go.mongodb.org/mongo-driver/v2/bson"

View File

@@ -6,8 +6,8 @@ import (
"cid/consts" "cid/consts"
"cid/model/entity" "cid/model/entity"
"gitee.com/red-future---jilin-g/common/beans" "gitea.com/red-future/common/beans"
"gitee.com/red-future---jilin-g/common/mongo" "gitea.com/red-future/common/mongo"
"go.mongodb.org/mongo-driver/v2/bson" "go.mongodb.org/mongo-driver/v2/bson"
) )

View File

@@ -6,7 +6,7 @@ import (
"context" "context"
"time" "time"
"gitee.com/red-future---jilin-g/common/mongo" "gitea.com/red-future/common/mongo"
"github.com/gogf/gf/v2/frame/g" "github.com/gogf/gf/v2/frame/g"
"github.com/gogf/gf/v2/util/gconv" "github.com/gogf/gf/v2/util/gconv"
"go.mongodb.org/mongo-driver/v2/bson" "go.mongodb.org/mongo-driver/v2/bson"

View File

@@ -6,7 +6,7 @@ import (
"context" "context"
"time" "time"
"gitee.com/red-future---jilin-g/common/mongo" "gitea.com/red-future/common/mongo"
"github.com/gogf/gf/v2/frame/g" "github.com/gogf/gf/v2/frame/g"
"github.com/gogf/gf/v2/util/gconv" "github.com/gogf/gf/v2/util/gconv"
"go.mongodb.org/mongo-driver/v2/bson" "go.mongodb.org/mongo-driver/v2/bson"

View File

@@ -5,8 +5,8 @@ import (
"cid/model/entity" "cid/model/entity"
"gitee.com/red-future---jilin-g/common/beans" "gitea.com/red-future/common/beans"
"gitee.com/red-future---jilin-g/common/mongo" "gitea.com/red-future/common/mongo"
"go.mongodb.org/mongo-driver/v2/bson" "go.mongodb.org/mongo-driver/v2/bson"
) )

View File

@@ -5,8 +5,8 @@ import (
"cid/model/entity" "cid/model/entity"
"gitee.com/red-future---jilin-g/common/beans" "gitea.com/red-future/common/beans"
"gitee.com/red-future---jilin-g/common/mongo" "gitea.com/red-future/common/mongo"
"go.mongodb.org/mongo-driver/v2/bson" "go.mongodb.org/mongo-driver/v2/bson"
) )

View File

@@ -5,8 +5,8 @@ import (
"cid/model/entity" "cid/model/entity"
"gitee.com/red-future---jilin-g/common/beans" "gitea.com/red-future/common/beans"
"gitee.com/red-future---jilin-g/common/mongo" "gitea.com/red-future/common/mongo"
"go.mongodb.org/mongo-driver/v2/bson" "go.mongodb.org/mongo-driver/v2/bson"
) )

5
go.mod
View File

@@ -3,7 +3,7 @@ module cid
go 1.25.3 go 1.25.3
require ( require (
gitee.com/red-future---jilin-g/common v0.2.9 gitea.com/red-future/common v0.0.2
github.com/gogf/gf/contrib/drivers/mysql/v2 v2.9.5 github.com/gogf/gf/contrib/drivers/mysql/v2 v2.9.5
github.com/gogf/gf/contrib/nosql/redis/v2 v2.9.5 github.com/gogf/gf/contrib/nosql/redis/v2 v2.9.5
github.com/gogf/gf/v2 v2.9.5 github.com/gogf/gf/v2 v2.9.5
@@ -32,7 +32,7 @@ require (
github.com/gogf/gf/contrib/registry/consul/v2 v2.9.5 // indirect github.com/gogf/gf/contrib/registry/consul/v2 v2.9.5 // indirect
github.com/gogf/gf/contrib/trace/otlphttp/v2 v2.9.5 // indirect github.com/gogf/gf/contrib/trace/otlphttp/v2 v2.9.5 // indirect
github.com/gogo/protobuf v1.3.2 // indirect github.com/gogo/protobuf v1.3.2 // indirect
github.com/golang-jwt/jwt/v5 v5.0.0 // indirect github.com/golang-jwt/jwt/v5 v5.3.1 // indirect
github.com/golang/glog v1.2.5 // indirect github.com/golang/glog v1.2.5 // indirect
github.com/golang/groupcache v0.0.0-20210331224755-41bb18bfe9da // indirect github.com/golang/groupcache v0.0.0-20210331224755-41bb18bfe9da // indirect
github.com/golang/protobuf v1.5.4 // indirect github.com/golang/protobuf v1.5.4 // indirect
@@ -89,4 +89,3 @@ require (
google.golang.org/protobuf v1.36.8 // indirect google.golang.org/protobuf v1.36.8 // indirect
gopkg.in/yaml.v3 v3.0.1 // indirect gopkg.in/yaml.v3 v3.0.1 // indirect
) )

10
go.sum
View File

@@ -1,8 +1,6 @@
cloud.google.com/go v0.26.0/go.mod h1:aQUYkXzVsufM+DwF1aE+0xfcU+56JwCaLick0ClmMTw= cloud.google.com/go v0.26.0/go.mod h1:aQUYkXzVsufM+DwF1aE+0xfcU+56JwCaLick0ClmMTw=
gitee.com/red-future---jilin-g/common v0.2.8 h1:mqe/qb6MejwV3VmnYxrO5MAHsFhvMejyfBA1993ejBg= gitea.com/red-future/common v0.0.2 h1:KjiIyZo0JeSN9ldXofuGkFifJ/H66kTybOU34Yew7R0=
gitee.com/red-future---jilin-g/common v0.2.8/go.mod h1:TFCNnI7801DamWd0m/M2CT5T090jFXXGLNDY4iZ2WY8= gitea.com/red-future/common v0.0.2/go.mod h1:CUurYN0elToJTwB2pX9wSnjQqZv9D/Vxbo5ueb7i9BI=
gitee.com/red-future---jilin-g/common v0.2.9 h1:lqYUnqTQLEcvxfFBqRMpetMudQze5cQlM4fKDouu2CU=
gitee.com/red-future---jilin-g/common v0.2.9/go.mod h1:TFCNnI7801DamWd0m/M2CT5T090jFXXGLNDY4iZ2WY8=
github.com/BurntSushi/toml v0.3.1/go.mod h1:xHWCNGjB5oqiDr8zfno3MHue2Ht5sIBksp03qcyfWMU= github.com/BurntSushi/toml v0.3.1/go.mod h1:xHWCNGjB5oqiDr8zfno3MHue2Ht5sIBksp03qcyfWMU=
github.com/BurntSushi/toml v1.5.0 h1:W5quZX/G/csjUnuI8SUYlsHs9M38FC7znL0lIO+DvMg= github.com/BurntSushi/toml v1.5.0 h1:W5quZX/G/csjUnuI8SUYlsHs9M38FC7znL0lIO+DvMg=
github.com/BurntSushi/toml v1.5.0/go.mod h1:ukJfTF/6rtPPRCnwkur4qwRxa8vTRFBF0uk2lLoLwho= github.com/BurntSushi/toml v1.5.0/go.mod h1:ukJfTF/6rtPPRCnwkur4qwRxa8vTRFBF0uk2lLoLwho=
@@ -90,8 +88,8 @@ github.com/gogf/gf/v2 v2.9.5/go.mod h1:VUb5eyJKpvW77O/dXsbbLNO/Kjrg0UycIiq0lRiBj
github.com/gogo/protobuf v1.1.1/go.mod h1:r8qH/GZQm5c6nD/R0oafs1akxWv10x8SbQlK7atdtwQ= github.com/gogo/protobuf v1.1.1/go.mod h1:r8qH/GZQm5c6nD/R0oafs1akxWv10x8SbQlK7atdtwQ=
github.com/gogo/protobuf v1.3.2 h1:Ov1cvc58UF3b5XjBnZv7+opcTcQFZebYjWzi34vdm4Q= github.com/gogo/protobuf v1.3.2 h1:Ov1cvc58UF3b5XjBnZv7+opcTcQFZebYjWzi34vdm4Q=
github.com/gogo/protobuf v1.3.2/go.mod h1:P1XiOD3dCwIKUDQYPy72D8LYyHL2YPYrpS2s69NZV8Q= github.com/gogo/protobuf v1.3.2/go.mod h1:P1XiOD3dCwIKUDQYPy72D8LYyHL2YPYrpS2s69NZV8Q=
github.com/golang-jwt/jwt/v5 v5.0.0 h1:1n1XNM9hk7O9mnQoNBGolZvzebBQ7p93ULHRc28XJUE= github.com/golang-jwt/jwt/v5 v5.3.1 h1:kYf81DTWFe7t+1VvL7eS+jKFVWaUnK9cB1qbwn63YCY=
github.com/golang-jwt/jwt/v5 v5.0.0/go.mod h1:pqrtFR0X4osieyHYxtmOUWsAWrfe1Q5UVIyoH402zdk= github.com/golang-jwt/jwt/v5 v5.3.1/go.mod h1:fxCRLWMO43lRc8nhHWY6LGqRcf+1gQWArsqaEUEa5bE=
github.com/golang/glog v0.0.0-20160126235308-23def4e6c14b/go.mod h1:SBH7ygxi8pfUlaOkMMuAQtPIUF8ecWP5IEl/CR7VP2Q= github.com/golang/glog v0.0.0-20160126235308-23def4e6c14b/go.mod h1:SBH7ygxi8pfUlaOkMMuAQtPIUF8ecWP5IEl/CR7VP2Q=
github.com/golang/glog v1.2.5 h1:DrW6hGnjIhtvhOIiAKT6Psh/Kd/ldepEa81DKeiRJ5I= github.com/golang/glog v1.2.5 h1:DrW6hGnjIhtvhOIiAKT6Psh/Kd/ldepEa81DKeiRJ5I=
github.com/golang/glog v1.2.5/go.mod h1:6AhwSGph0fcJtXVM/PEHPqZlFeoLxhs7/t5UDAwmO+w= github.com/golang/glog v1.2.5/go.mod h1:6AhwSGph0fcJtXVM/PEHPqZlFeoLxhs7/t5UDAwmO+w=

View File

@@ -3,10 +3,10 @@ package main
import ( import (
"cid/controller" "cid/controller"
"gitee.com/red-future---jilin-g/common/http" "gitea.com/red-future/common/http"
"gitee.com/red-future---jilin-g/common/jaeger" "gitea.com/red-future/common/jaeger"
_ "gitee.com/red-future---jilin-g/common/mongo" _ "gitea.com/red-future/common/mongo"
_ "gitee.com/red-future---jilin-g/common/ragflow" // RAGFlow 客户端自动初始化 _ "gitea.com/red-future/common/ragflow" // RAGFlow 客户端自动初始化
_ "github.com/gogf/gf/contrib/drivers/mysql/v2" _ "github.com/gogf/gf/contrib/drivers/mysql/v2"
_ "github.com/gogf/gf/contrib/nosql/redis/v2" _ "github.com/gogf/gf/contrib/nosql/redis/v2"
"golang.org/x/net/context" "golang.org/x/net/context"

View File

@@ -3,7 +3,7 @@ package dto
import ( import (
"cid/model/entity" "cid/model/entity"
"gitee.com/red-future---jilin-g/common/beans" "gitea.com/red-future/common/beans"
"github.com/gogf/gf/v2/frame/g" "github.com/gogf/gf/v2/frame/g"
"go.mongodb.org/mongo-driver/v2/bson" "go.mongodb.org/mongo-driver/v2/bson"
) )

View File

@@ -3,7 +3,7 @@ package dto
import ( import (
"cid/model/entity" "cid/model/entity"
"gitee.com/red-future---jilin-g/common/beans" "gitea.com/red-future/common/beans"
"github.com/gogf/gf/v2/frame/g" "github.com/gogf/gf/v2/frame/g"
) )

View File

@@ -3,7 +3,7 @@ package dto
import ( import (
"cid/model/entity" "cid/model/entity"
"gitee.com/red-future---jilin-g/common/beans" "gitea.com/red-future/common/beans"
"github.com/gogf/gf/v2/frame/g" "github.com/gogf/gf/v2/frame/g"
) )

View File

@@ -3,7 +3,7 @@ package dto
import ( import (
"cid/model/entity" "cid/model/entity"
"gitee.com/red-future---jilin-g/common/beans" "gitea.com/red-future/common/beans"
"github.com/gogf/gf/v2/frame/g" "github.com/gogf/gf/v2/frame/g"
) )

View File

@@ -3,7 +3,7 @@ package entity
import ( import (
"cid/model/config" "cid/model/config"
"gitee.com/red-future---jilin-g/common/beans" "gitea.com/red-future/common/beans"
) )
const AdCreativeCollection = "ad_creative" const AdCreativeCollection = "ad_creative"

View File

@@ -3,7 +3,7 @@ package entity
import ( import (
"cid/model/config" "cid/model/config"
"gitee.com/red-future---jilin-g/common/beans" "gitea.com/red-future/common/beans"
) )
const AdPlatformCollection = "ad_platform" const AdPlatformCollection = "ad_platform"

View File

@@ -3,7 +3,7 @@ package entity
import ( import (
"cid/model/config" "cid/model/config"
"gitee.com/red-future---jilin-g/common/beans" "gitea.com/red-future/common/beans"
) )
const AdPositionCollection = "ad_position" const AdPositionCollection = "ad_position"

View File

@@ -3,7 +3,7 @@ package entity
import ( import (
"cid/model/config" "cid/model/config"
"gitee.com/red-future---jilin-g/common/beans" "gitea.com/red-future/common/beans"
) )
const AdSourceCollection = "ad_source" const AdSourceCollection = "ad_source"

View File

@@ -1,7 +1,7 @@
package entity package entity
import ( import (
"gitee.com/red-future---jilin-g/common/beans" "gitea.com/red-future/common/beans"
) )
const AdTypeCollection = "ad_type" const AdTypeCollection = "ad_type"

View File

@@ -3,7 +3,7 @@ package entity
import ( import (
"cid/model/config" "cid/model/config"
"gitee.com/red-future---jilin-g/common/beans" "gitea.com/red-future/common/beans"
) )
const AdvertisementCollection = "advertisement" const AdvertisementCollection = "advertisement"

View File

@@ -1,7 +1,7 @@
package entity package entity
import ( import (
"gitee.com/red-future---jilin-g/common/beans" "gitea.com/red-future/common/beans"
) )
const AdvertiserCollection = "advertiser" const AdvertiserCollection = "advertiser"

View File

@@ -1,7 +1,7 @@
package entity package entity
import ( import (
"gitee.com/red-future---jilin-g/common/beans" "gitea.com/red-future/common/beans"
) )
const AppPlatformConfigCollection = "app_platform_config" const AppPlatformConfigCollection = "app_platform_config"

View File

@@ -1,7 +1,7 @@
package entity package entity
import ( import (
"gitee.com/red-future---jilin-g/common/beans" "gitea.com/red-future/common/beans"
) )
const ApplicationCollection = "application" const ApplicationCollection = "application"

View File

@@ -1,7 +1,7 @@
package entity package entity
import ( import (
"gitee.com/red-future---jilin-g/common/beans" "gitea.com/red-future/common/beans"
) )
const CidRequestCollection = "cid_request" const CidRequestCollection = "cid_request"

View File

@@ -3,7 +3,7 @@ package entity
import ( import (
"cid/model/config" "cid/model/config"
"gitee.com/red-future---jilin-g/common/beans" "gitea.com/red-future/common/beans"
) )
const PlatformDeliveryRuleCollection = "platform_delivery_rule" const PlatformDeliveryRuleCollection = "platform_delivery_rule"

View File

@@ -1,7 +1,7 @@
package entity package entity
import ( import (
"gitee.com/red-future---jilin-g/common/beans" "gitea.com/red-future/common/beans"
) )
const StrategyCollection = "strategy" const StrategyCollection = "strategy"

View File

@@ -11,7 +11,7 @@ import (
"strconv" "strconv"
"time" "time"
"gitee.com/red-future---jilin-g/common/utils" "gitea.com/red-future/common/utils"
"github.com/gogf/gf/v2/errors/gerror" "github.com/gogf/gf/v2/errors/gerror"
"github.com/gogf/gf/v2/frame/g" "github.com/gogf/gf/v2/frame/g"
"github.com/gogf/gf/v2/util/gconv" "github.com/gogf/gf/v2/util/gconv"