diff --git a/.gitea/workflows/deploy.yml b/.gitea/workflows/deploy.yml index 22d3511..c5bd9b2 100644 --- a/.gitea/workflows/deploy.yml +++ b/.gitea/workflows/deploy.yml @@ -1,4 +1,4 @@ -name: Deploy +name: Deploy on: pull_request: @@ -25,9 +25,9 @@ on: env: REGISTRY: code.littlelan.cn IMAGE_NAME: carrot_bbs/backend - SERVER_HOST: 111.170.19.33 + SERVER_HOST: 124.222.83.58 SERVER_USER: root - CONTAINER_NAME: carrot_bbs + CONTAINER_NAME: with_you CONTAINER_NETWORK: 1panel-network jobs: @@ -65,21 +65,21 @@ jobs: -p 8080:8080 \ -p 50051:50051 \ -e APP_DATABASE_TYPE=postgres \ - -e APP_DATABASE_POSTGRES_HOST=1Panel-postgresql-t0g7 \ + -e APP_DATABASE_POSTGRES_HOST=1Panel-postgresql-Mjd1 \ -e APP_DATABASE_POSTGRES_PORT=5432 \ - -e APP_DATABASE_POSTGRES_USER=carrot_bbs \ + -e APP_DATABASE_POSTGRES_USER=with_you \ -e "APP_DATABASE_POSTGRES_PASSWORD=${{ secrets.DB_PASSWORD }}" \ - -e APP_DATABASE_POSTGRES_DBNAME=carrot_bbs \ + -e APP_DATABASE_POSTGRES_DBNAME=with_you \ -e APP_REDIS_TYPE=redis \ - -e APP_REDIS_REDIS_HOST=1Panel-redis-dfmM \ + -e APP_REDIS_REDIS_HOST=1Panel-redis-fq2g \ -e APP_REDIS_REDIS_PORT=6379 \ -e "APP_REDIS_REDIS_PASSWORD=${{ secrets.REDIS_PASSWORD }}" \ -e APP_REDIS_REDIS_DB=0 \ - -e APP_S3_ENDPOINT=files.littlelan.cn \ + -e APP_S3_ENDPOINT=storage.littlelan.cn \ -e "APP_S3_ACCESS_KEY=${{ secrets.S3_ACCESS_KEY }}" \ -e "APP_S3_SECRET_KEY=${{ secrets.S3_SECRET_KEY }}" \ - -e APP_S3_BUCKET=test \ - -e APP_S3_DOMAIN=files.littlelan.cn \ + -e APP_S3_BUCKET=withyou \ + -e APP_S3_DOMAIN=storage.littlelan.cn \ -e APP_S3_USE_SSL=true \ -e "APP_JWT_SECRET=${{ secrets.JWT_SECRET }}" \ -e APP_ENCRYPTION_ENABLED=true \ @@ -104,7 +104,7 @@ jobs: -e APP_EMAIL_USERNAME=no-reply@qczlit.cn \ -e "APP_EMAIL_PASSWORD=${{ secrets.EMAIL_PASSWORD }}" \ -e APP_EMAIL_FROM_ADDRESS=no-reply@qczlit.cn \ - -e APP_EMAIL_FROM_NAME=Carrot_BBS \ + -e APP_EMAIL_FROM_NAME=WithYou \ -e APP_EMAIL_USE_TLS=true \ -e APP_EMAIL_TIMEOUT=15 \ -e APP_GRPC_ENABLED=true \ diff --git a/cmd/server/app.go b/cmd/server/app.go index 4c59d2d..8206f4c 100644 --- a/cmd/server/app.go +++ b/cmd/server/app.go @@ -1,14 +1,14 @@ -package main +package main import ( "context" "fmt" "net/http" - "carrot_bbs/internal/config" - "carrot_bbs/internal/grpc/runner" - "carrot_bbs/internal/router" - "carrot_bbs/internal/service" + "with_you/internal/config" + "with_you/internal/grpc/runner" + "with_you/internal/router" + "with_you/internal/service" "go.uber.org/zap" "gorm.io/gorm" diff --git a/cmd/server/wire.go b/cmd/server/wire.go index fd5b99e..c77b4b1 100644 --- a/cmd/server/wire.go +++ b/cmd/server/wire.go @@ -1,14 +1,14 @@ -//go:build wireinject +//go:build wireinject // +build wireinject package main import ( - "carrot_bbs/internal/handler" - "carrot_bbs/internal/repository" - "carrot_bbs/internal/router" - "carrot_bbs/internal/service" - appwire "carrot_bbs/internal/wire" + "with_you/internal/handler" + "with_you/internal/repository" + "with_you/internal/router" + "with_you/internal/service" + appwire "with_you/internal/wire" "github.com/google/wire" ) diff --git a/cmd/server/wire_gen.go b/cmd/server/wire_gen.go index 80b9fd8..34119c2 100644 --- a/cmd/server/wire_gen.go +++ b/cmd/server/wire_gen.go @@ -1,4 +1,4 @@ -// Code generated by Wire. DO NOT EDIT. +// Code generated by Wire. DO NOT EDIT. //go:generate go run -mod=mod github.com/google/wire/cmd/wire //go:build !wireinject @@ -7,11 +7,11 @@ package main import ( - "carrot_bbs/internal/handler" - "carrot_bbs/internal/repository" - "carrot_bbs/internal/router" - "carrot_bbs/internal/service" - "carrot_bbs/internal/wire" + "with_you/internal/handler" + "with_you/internal/repository" + "with_you/internal/router" + "with_you/internal/service" + "with_you/internal/wire" ) // Injectors from wire.go: diff --git a/configs/config.yaml b/configs/config.yaml index 0115a18..824ab5c 100644 --- a/configs/config.yaml +++ b/configs/config.yaml @@ -1,4 +1,4 @@ -# 服务器配置 +# 服务器配置 # 环境变量: APP_SERVER_HOST, APP_SERVER_PORT, APP_SERVER_MODE server: host: 0.0.0.0 @@ -13,13 +13,13 @@ server: database: type: sqlite # sqlite 或 postgres sqlite: - path: ./data/carrot_bbs.db + path: ./data/with_you.db postgres: host: localhost port: 5432 user: postgres password: postgres - dbname: carrot_bbs + dbname: with_you sslmode: disable max_idle_conns: 10 max_open_conns: 100 @@ -202,7 +202,7 @@ email: username: "no-reply@qczlit.cn" password: "HbvwwVjRyiWg9gsK" from_address: "no-reply@qczlit.cn" - from_name: "Carrot BBS" + from_name: "WithYou" use_tls: true insecure_skip_verify: false timeout: 15 diff --git a/go.mod b/go.mod index b0625a3..ea2f51e 100644 --- a/go.mod +++ b/go.mod @@ -1,4 +1,4 @@ -module carrot_bbs +module with_you go 1.26 diff --git a/internal/cache/conversation_cache.go b/internal/cache/conversation_cache.go index f7d0134..cd02dea 100644 --- a/internal/cache/conversation_cache.go +++ b/internal/cache/conversation_cache.go @@ -1,4 +1,4 @@ -package cache +package cache import ( "context" @@ -6,7 +6,7 @@ import ( "fmt" "time" - "carrot_bbs/internal/model" + "with_you/internal/model" "go.uber.org/zap" ) diff --git a/internal/cache/layered_cache.go b/internal/cache/layered_cache.go index 10d04be..b63240c 100644 --- a/internal/cache/layered_cache.go +++ b/internal/cache/layered_cache.go @@ -1,4 +1,4 @@ -package cache +package cache import ( "context" @@ -10,7 +10,7 @@ import ( redislib "github.com/redis/go-redis/v9" "go.uber.org/zap" - redisPkg "carrot_bbs/internal/pkg/redis" + redisPkg "with_you/internal/pkg/redis" ) type LayeredCache struct { diff --git a/internal/cache/redis_cache.go b/internal/cache/redis_cache.go index 365763a..353d789 100644 --- a/internal/cache/redis_cache.go +++ b/internal/cache/redis_cache.go @@ -1,4 +1,4 @@ -package cache +package cache import ( "context" @@ -8,7 +8,7 @@ import ( redislib "github.com/redis/go-redis/v9" "go.uber.org/zap" - redisPkg "carrot_bbs/internal/pkg/redis" + redisPkg "with_you/internal/pkg/redis" ) // RedisCache Redis缓存实现 diff --git a/internal/cache/repository_adapter.go b/internal/cache/repository_adapter.go index dd2a59f..fe5c723 100644 --- a/internal/cache/repository_adapter.go +++ b/internal/cache/repository_adapter.go @@ -1,8 +1,8 @@ -package cache +package cache import ( - "carrot_bbs/internal/model" - "carrot_bbs/internal/repository" + "with_you/internal/model" + "with_you/internal/repository" ) // ConversationRepositoryAdapter 适配 MessageRepository 到 ConversationRepository 接口 diff --git a/internal/config/config.go b/internal/config/config.go index 0024212..256bce1 100644 --- a/internal/config/config.go +++ b/internal/config/config.go @@ -51,7 +51,7 @@ func Load(configPath string) (*Config, error) { viper.SetDefault("server.mode", "debug") viper.SetDefault("server.host", "0.0.0.0") viper.SetDefault("database.type", "sqlite") - viper.SetDefault("database.sqlite.path", "./data/carrot_bbs.db") + viper.SetDefault("database.sqlite.path", "./data/with_you.db") viper.SetDefault("database.max_idle_conns", 10) viper.SetDefault("database.max_open_conns", 100) viper.SetDefault("database.log_level", "warn") @@ -124,7 +124,7 @@ func Load(configPath string) (*Config, error) { viper.SetDefault("email.username", "") viper.SetDefault("email.password", "") viper.SetDefault("email.from_address", "") - viper.SetDefault("email.from_name", "Carrot BBS") + viper.SetDefault("email.from_name", "WithYou") viper.SetDefault("email.use_tls", true) viper.SetDefault("email.insecure_skip_verify", false) viper.SetDefault("email.timeout", 15) diff --git a/internal/dto/call_dto.go b/internal/dto/call_dto.go index 5d7b523..365f8b7 100644 --- a/internal/dto/call_dto.go +++ b/internal/dto/call_dto.go @@ -1,9 +1,9 @@ -package dto +package dto import ( "time" - "carrot_bbs/internal/model" + "with_you/internal/model" ) // ==================== Call Request DTOs ==================== diff --git a/internal/dto/dto.go b/internal/dto/dto.go index 167c3e5..cfdd6c1 100644 --- a/internal/dto/dto.go +++ b/internal/dto/dto.go @@ -1,7 +1,7 @@ -package dto +package dto import ( - "carrot_bbs/internal/model" + "with_you/internal/model" "time" ) diff --git a/internal/dto/group_converter.go b/internal/dto/group_converter.go index 7b34df1..fec09da 100644 --- a/internal/dto/group_converter.go +++ b/internal/dto/group_converter.go @@ -1,7 +1,7 @@ -package dto +package dto import ( - "carrot_bbs/internal/model" + "with_you/internal/model" ) // ==================== Group 转换 ==================== diff --git a/internal/dto/message_converter.go b/internal/dto/message_converter.go index d8319f1..ec74c24 100644 --- a/internal/dto/message_converter.go +++ b/internal/dto/message_converter.go @@ -1,7 +1,7 @@ -package dto +package dto import ( - "carrot_bbs/internal/model" + "with_you/internal/model" ) // ==================== Message 转换 ==================== diff --git a/internal/dto/notification_converter.go b/internal/dto/notification_converter.go index 49721be..aee79f1 100644 --- a/internal/dto/notification_converter.go +++ b/internal/dto/notification_converter.go @@ -1,7 +1,7 @@ -package dto +package dto import ( - "carrot_bbs/internal/model" + "with_you/internal/model" "strconv" ) diff --git a/internal/dto/post_converter.go b/internal/dto/post_converter.go index 6c15486..7513543 100644 --- a/internal/dto/post_converter.go +++ b/internal/dto/post_converter.go @@ -1,7 +1,7 @@ -package dto +package dto import ( - "carrot_bbs/internal/model" + "with_you/internal/model" "context" "encoding/json" ) diff --git a/internal/dto/report.go b/internal/dto/report.go index 3581c43..cc9db95 100644 --- a/internal/dto/report.go +++ b/internal/dto/report.go @@ -1,7 +1,7 @@ -package dto +package dto import ( - "carrot_bbs/internal/model" + "with_you/internal/model" ) // ==================== 举报 DTOs ==================== diff --git a/internal/dto/schedule_converter.go b/internal/dto/schedule_converter.go index 55621c0..1e82246 100644 --- a/internal/dto/schedule_converter.go +++ b/internal/dto/schedule_converter.go @@ -1,9 +1,9 @@ -package dto +package dto import ( "encoding/json" - "carrot_bbs/internal/model" + "with_you/internal/model" ) func ConvertScheduleCourseToResponse(course *model.ScheduleCourse, weeks []int) *ScheduleCourseResponse { diff --git a/internal/dto/segment.go b/internal/dto/segment.go index 202ad76..80fc543 100644 --- a/internal/dto/segment.go +++ b/internal/dto/segment.go @@ -1,11 +1,11 @@ -package dto +package dto import ( "encoding/json" "fmt" "slices" - "carrot_bbs/internal/model" + "with_you/internal/model" ) // ParseSegmentData 解析Segment数据到目标结构体 diff --git a/internal/dto/user_converter.go b/internal/dto/user_converter.go index 1cacb10..d21502f 100644 --- a/internal/dto/user_converter.go +++ b/internal/dto/user_converter.go @@ -1,8 +1,8 @@ -package dto +package dto import ( - "carrot_bbs/internal/model" - "carrot_bbs/internal/pkg/utils" + "with_you/internal/model" + "with_you/internal/pkg/utils" ) // ==================== User 转换 ==================== diff --git a/internal/grpc/runner/hub.go b/internal/grpc/runner/hub.go index 4b98d7a..8baec1c 100644 --- a/internal/grpc/runner/hub.go +++ b/internal/grpc/runner/hub.go @@ -1,4 +1,4 @@ -package runner +package runner import ( "context" @@ -6,7 +6,7 @@ import ( "sync" "time" - "carrot_bbs/proto/runner" + "with_you/proto/runner" "go.uber.org/zap" ) diff --git a/internal/grpc/runner/server.go b/internal/grpc/runner/server.go index 9b0f7d3..e6dba55 100644 --- a/internal/grpc/runner/server.go +++ b/internal/grpc/runner/server.go @@ -1,4 +1,4 @@ -package runner +package runner import ( "context" @@ -6,8 +6,8 @@ import ( "net" "time" - "carrot_bbs/internal/config" - "carrot_bbs/proto/runner" + "with_you/internal/config" + "with_you/proto/runner" "go.uber.org/zap" "google.golang.org/grpc" diff --git a/internal/grpc/runner/task_manager.go b/internal/grpc/runner/task_manager.go index 809921d..b3762eb 100644 --- a/internal/grpc/runner/task_manager.go +++ b/internal/grpc/runner/task_manager.go @@ -1,4 +1,4 @@ -package runner +package runner import ( "context" @@ -7,7 +7,7 @@ import ( "sync" "time" - "carrot_bbs/proto/runner" + "with_you/proto/runner" "github.com/google/uuid" "go.uber.org/zap" diff --git a/internal/handler/admin_comment_handler.go b/internal/handler/admin_comment_handler.go index 3d943e1..6bfaace 100644 --- a/internal/handler/admin_comment_handler.go +++ b/internal/handler/admin_comment_handler.go @@ -1,12 +1,12 @@ -package handler +package handler import ( "strconv" - "carrot_bbs/internal/dto" - "carrot_bbs/internal/model" - "carrot_bbs/internal/pkg/response" - "carrot_bbs/internal/service" + "with_you/internal/dto" + "with_you/internal/model" + "with_you/internal/pkg/response" + "with_you/internal/service" "github.com/gin-gonic/gin" ) diff --git a/internal/handler/admin_dashboard_handler.go b/internal/handler/admin_dashboard_handler.go index 79f5371..219ca15 100644 --- a/internal/handler/admin_dashboard_handler.go +++ b/internal/handler/admin_dashboard_handler.go @@ -1,10 +1,10 @@ -package handler +package handler import ( "strconv" - "carrot_bbs/internal/pkg/response" - "carrot_bbs/internal/service" + "with_you/internal/pkg/response" + "with_you/internal/service" "github.com/gin-gonic/gin" ) diff --git a/internal/handler/admin_group_handler.go b/internal/handler/admin_group_handler.go index ed21099..2678eed 100644 --- a/internal/handler/admin_group_handler.go +++ b/internal/handler/admin_group_handler.go @@ -1,11 +1,11 @@ -package handler +package handler import ( "strconv" - "carrot_bbs/internal/dto" - "carrot_bbs/internal/pkg/response" - "carrot_bbs/internal/service" + "with_you/internal/dto" + "with_you/internal/pkg/response" + "with_you/internal/service" "github.com/gin-gonic/gin" ) diff --git a/internal/handler/admin_log_handler.go b/internal/handler/admin_log_handler.go index b7766f7..07e47fc 100644 --- a/internal/handler/admin_log_handler.go +++ b/internal/handler/admin_log_handler.go @@ -1,12 +1,12 @@ -package handler +package handler import ( "strconv" "time" - "carrot_bbs/internal/dto" - "carrot_bbs/internal/pkg/response" - "carrot_bbs/internal/service" + "with_you/internal/dto" + "with_you/internal/pkg/response" + "with_you/internal/service" "github.com/gin-gonic/gin" ) diff --git a/internal/handler/admin_post_handler.go b/internal/handler/admin_post_handler.go index b968437..1c137aa 100644 --- a/internal/handler/admin_post_handler.go +++ b/internal/handler/admin_post_handler.go @@ -1,12 +1,12 @@ -package handler +package handler import ( "strconv" - "carrot_bbs/internal/dto" - "carrot_bbs/internal/model" - "carrot_bbs/internal/pkg/response" - "carrot_bbs/internal/service" + "with_you/internal/dto" + "with_you/internal/model" + "with_you/internal/pkg/response" + "with_you/internal/service" "github.com/gin-gonic/gin" ) diff --git a/internal/handler/admin_profile_audit_handler.go b/internal/handler/admin_profile_audit_handler.go index c3a2c2c..cfd41c3 100644 --- a/internal/handler/admin_profile_audit_handler.go +++ b/internal/handler/admin_profile_audit_handler.go @@ -1,11 +1,11 @@ -package handler +package handler import ( "strconv" - "carrot_bbs/internal/model" - "carrot_bbs/internal/pkg/response" - "carrot_bbs/internal/service" + "with_you/internal/model" + "with_you/internal/pkg/response" + "with_you/internal/service" "github.com/gin-gonic/gin" ) diff --git a/internal/handler/admin_report_handler.go b/internal/handler/admin_report_handler.go index 1b0278a..c0925b6 100644 --- a/internal/handler/admin_report_handler.go +++ b/internal/handler/admin_report_handler.go @@ -1,9 +1,9 @@ -package handler +package handler import ( - "carrot_bbs/internal/dto" - "carrot_bbs/internal/pkg/response" - "carrot_bbs/internal/service" + "with_you/internal/dto" + "with_you/internal/pkg/response" + "with_you/internal/service" "strconv" "github.com/gin-gonic/gin" diff --git a/internal/handler/admin_user_handler.go b/internal/handler/admin_user_handler.go index 9c55750..f6f08a5 100644 --- a/internal/handler/admin_user_handler.go +++ b/internal/handler/admin_user_handler.go @@ -1,12 +1,12 @@ -package handler +package handler import ( "strconv" - "carrot_bbs/internal/dto" - "carrot_bbs/internal/model" - "carrot_bbs/internal/pkg/response" - "carrot_bbs/internal/service" + "with_you/internal/dto" + "with_you/internal/model" + "with_you/internal/pkg/response" + "with_you/internal/service" "github.com/gin-gonic/gin" ) diff --git a/internal/handler/admin_verification_handler.go b/internal/handler/admin_verification_handler.go index 9e8bd8a..a6ea4fe 100644 --- a/internal/handler/admin_verification_handler.go +++ b/internal/handler/admin_verification_handler.go @@ -1,13 +1,13 @@ -package handler +package handler import ( "strconv" - "carrot_bbs/internal/dto" - "carrot_bbs/internal/model" - "carrot_bbs/internal/pkg/response" - "carrot_bbs/internal/repository" - "carrot_bbs/internal/service" + "with_you/internal/dto" + "with_you/internal/model" + "with_you/internal/pkg/response" + "with_you/internal/repository" + "with_you/internal/service" "github.com/gin-gonic/gin" ) diff --git a/internal/handler/call_handler.go b/internal/handler/call_handler.go index 9ec2c35..0836ffb 100644 --- a/internal/handler/call_handler.go +++ b/internal/handler/call_handler.go @@ -1,12 +1,12 @@ -package handler +package handler import ( "strconv" "github.com/gin-gonic/gin" - "carrot_bbs/internal/pkg/response" - "carrot_bbs/internal/service" + "with_you/internal/pkg/response" + "with_you/internal/service" ) // CallHandler 通话记录处理器 diff --git a/internal/handler/channel_handler.go b/internal/handler/channel_handler.go index 505bf79..9fb31bf 100644 --- a/internal/handler/channel_handler.go +++ b/internal/handler/channel_handler.go @@ -1,9 +1,9 @@ -package handler +package handler import ( - "carrot_bbs/internal/model" - "carrot_bbs/internal/pkg/response" - "carrot_bbs/internal/service" + "with_you/internal/model" + "with_you/internal/pkg/response" + "with_you/internal/service" "github.com/gin-gonic/gin" ) diff --git a/internal/handler/comment_handler.go b/internal/handler/comment_handler.go index 347c26e..39aa40e 100644 --- a/internal/handler/comment_handler.go +++ b/internal/handler/comment_handler.go @@ -1,4 +1,4 @@ -package handler +package handler import ( "encoding/json" @@ -6,10 +6,10 @@ import ( "github.com/gin-gonic/gin" - "carrot_bbs/internal/dto" - "carrot_bbs/internal/pkg/cursor" - "carrot_bbs/internal/pkg/response" - "carrot_bbs/internal/service" + "with_you/internal/dto" + "with_you/internal/pkg/cursor" + "with_you/internal/pkg/response" + "with_you/internal/service" ) // CommentHandler 评论处理器 diff --git a/internal/handler/group_handler.go b/internal/handler/group_handler.go index c5799f5..222738e 100644 --- a/internal/handler/group_handler.go +++ b/internal/handler/group_handler.go @@ -1,4 +1,4 @@ -package handler +package handler import ( "errors" @@ -7,11 +7,11 @@ import ( "github.com/gin-gonic/gin" "go.uber.org/zap" - "carrot_bbs/internal/dto" - "carrot_bbs/internal/model" - "carrot_bbs/internal/pkg/cursor" - "carrot_bbs/internal/pkg/response" - "carrot_bbs/internal/service" + "with_you/internal/dto" + "with_you/internal/model" + "with_you/internal/pkg/cursor" + "with_you/internal/pkg/response" + "with_you/internal/service" ) // GroupHandler 群组处理器 diff --git a/internal/handler/material_handler.go b/internal/handler/material_handler.go index a601559..370072e 100644 --- a/internal/handler/material_handler.go +++ b/internal/handler/material_handler.go @@ -1,13 +1,13 @@ -package handler +package handler import ( "errors" "strconv" - "carrot_bbs/internal/dto" - "carrot_bbs/internal/model" - "carrot_bbs/internal/pkg/response" - "carrot_bbs/internal/service" + "with_you/internal/dto" + "with_you/internal/model" + "with_you/internal/pkg/response" + "with_you/internal/service" "github.com/gin-gonic/gin" ) diff --git a/internal/handler/message_handler.go b/internal/handler/message_handler.go index a67fc55..230e400 100644 --- a/internal/handler/message_handler.go +++ b/internal/handler/message_handler.go @@ -1,4 +1,4 @@ -package handler +package handler import ( "context" @@ -6,12 +6,12 @@ import ( "github.com/gin-gonic/gin" - "carrot_bbs/internal/dto" - "carrot_bbs/internal/model" - "carrot_bbs/internal/pkg/cursor" - "carrot_bbs/internal/pkg/response" - "carrot_bbs/internal/pkg/ws" - "carrot_bbs/internal/service" + "with_you/internal/dto" + "with_you/internal/model" + "with_you/internal/pkg/cursor" + "with_you/internal/pkg/response" + "with_you/internal/pkg/ws" + "with_you/internal/service" ) // MessageHandler 消息处理器 diff --git a/internal/handler/notification_handler.go b/internal/handler/notification_handler.go index 5c84035..08409c2 100644 --- a/internal/handler/notification_handler.go +++ b/internal/handler/notification_handler.go @@ -1,14 +1,14 @@ -package handler +package handler import ( "strconv" "github.com/gin-gonic/gin" - "carrot_bbs/internal/dto" - "carrot_bbs/internal/pkg/cursor" - "carrot_bbs/internal/pkg/response" - "carrot_bbs/internal/service" + "with_you/internal/dto" + "with_you/internal/pkg/cursor" + "with_you/internal/pkg/response" + "with_you/internal/service" ) // NotificationHandler 通知处理器 diff --git a/internal/handler/post_handler.go b/internal/handler/post_handler.go index c1dd548..018c92f 100644 --- a/internal/handler/post_handler.go +++ b/internal/handler/post_handler.go @@ -1,4 +1,4 @@ -package handler +package handler import ( "errors" @@ -8,11 +8,11 @@ import ( "github.com/gin-gonic/gin" "gorm.io/gorm" - "carrot_bbs/internal/dto" - "carrot_bbs/internal/model" - "carrot_bbs/internal/pkg/cursor" - "carrot_bbs/internal/pkg/response" - "carrot_bbs/internal/service" + "with_you/internal/dto" + "with_you/internal/model" + "with_you/internal/pkg/cursor" + "with_you/internal/pkg/response" + "with_you/internal/service" ) // PostHandler 帖子处理器 diff --git a/internal/handler/push_handler.go b/internal/handler/push_handler.go index 878f35a..395692f 100644 --- a/internal/handler/push_handler.go +++ b/internal/handler/push_handler.go @@ -1,10 +1,10 @@ -package handler +package handler import ( - "carrot_bbs/internal/dto" - "carrot_bbs/internal/model" - "carrot_bbs/internal/pkg/response" - "carrot_bbs/internal/service" + "with_you/internal/dto" + "with_you/internal/model" + "with_you/internal/pkg/response" + "with_you/internal/service" "github.com/gin-gonic/gin" ) diff --git a/internal/handler/qrcode_handler.go b/internal/handler/qrcode_handler.go index 642bb50..34d76fa 100644 --- a/internal/handler/qrcode_handler.go +++ b/internal/handler/qrcode_handler.go @@ -1,4 +1,4 @@ -package handler +package handler import ( "fmt" @@ -7,9 +7,9 @@ import ( "github.com/gin-gonic/gin" - "carrot_bbs/internal/pkg/response" - "carrot_bbs/internal/pkg/ws" - "carrot_bbs/internal/service" + "with_you/internal/pkg/response" + "with_you/internal/pkg/ws" + "with_you/internal/service" ) // QRCodeHandler 二维码登录处理器 diff --git a/internal/handler/report_handler.go b/internal/handler/report_handler.go index a01e2ef..32696e0 100644 --- a/internal/handler/report_handler.go +++ b/internal/handler/report_handler.go @@ -1,9 +1,9 @@ -package handler +package handler import ( - "carrot_bbs/internal/dto" - "carrot_bbs/internal/pkg/response" - "carrot_bbs/internal/service" + "with_you/internal/dto" + "with_you/internal/pkg/response" + "with_you/internal/service" "github.com/gin-gonic/gin" "go.uber.org/zap" diff --git a/internal/handler/role_handler.go b/internal/handler/role_handler.go index 5580d6c..9705a40 100644 --- a/internal/handler/role_handler.go +++ b/internal/handler/role_handler.go @@ -1,12 +1,12 @@ -package handler +package handler import ( "errors" "net/http" - apperrors "carrot_bbs/internal/errors" - "carrot_bbs/internal/model" - "carrot_bbs/internal/service" + apperrors "with_you/internal/errors" + "with_you/internal/model" + "with_you/internal/service" "github.com/gin-gonic/gin" ) diff --git a/internal/handler/schedule_handler.go b/internal/handler/schedule_handler.go index 2061fca..9d2a01d 100644 --- a/internal/handler/schedule_handler.go +++ b/internal/handler/schedule_handler.go @@ -1,12 +1,12 @@ -package handler +package handler import ( "strconv" "github.com/gin-gonic/gin" - "carrot_bbs/internal/pkg/response" - "carrot_bbs/internal/service" + "with_you/internal/pkg/response" + "with_you/internal/service" ) type ScheduleHandler struct { diff --git a/internal/handler/sticker_handler.go b/internal/handler/sticker_handler.go index c820e09..5e14d79 100644 --- a/internal/handler/sticker_handler.go +++ b/internal/handler/sticker_handler.go @@ -1,4 +1,4 @@ -package handler +package handler import ( "errors" @@ -6,8 +6,8 @@ import ( "github.com/gin-gonic/gin" - "carrot_bbs/internal/pkg/response" - "carrot_bbs/internal/service" + "with_you/internal/pkg/response" + "with_you/internal/service" ) // StickerHandler 自定义表情处理器 diff --git a/internal/handler/system_message_handler.go b/internal/handler/system_message_handler.go index 00c1101..df59c83 100644 --- a/internal/handler/system_message_handler.go +++ b/internal/handler/system_message_handler.go @@ -1,13 +1,13 @@ -package handler +package handler import ( "strconv" "github.com/gin-gonic/gin" - "carrot_bbs/internal/dto" - "carrot_bbs/internal/pkg/response" - "carrot_bbs/internal/service" + "with_you/internal/dto" + "with_you/internal/pkg/response" + "with_you/internal/service" ) // SystemMessageHandler 系统消息处理器 diff --git a/internal/handler/upload_handler.go b/internal/handler/upload_handler.go index a0adb4c..356d90f 100644 --- a/internal/handler/upload_handler.go +++ b/internal/handler/upload_handler.go @@ -1,10 +1,10 @@ -package handler +package handler import ( "github.com/gin-gonic/gin" - "carrot_bbs/internal/pkg/response" - "carrot_bbs/internal/service" + "with_you/internal/pkg/response" + "with_you/internal/service" ) // UploadHandler 上传处理器 diff --git a/internal/handler/user_handler.go b/internal/handler/user_handler.go index 149859d..b829f09 100644 --- a/internal/handler/user_handler.go +++ b/internal/handler/user_handler.go @@ -1,4 +1,4 @@ -package handler +package handler import ( "cmp" @@ -9,10 +9,10 @@ import ( "github.com/gin-gonic/gin" - "carrot_bbs/internal/dto" - "carrot_bbs/internal/model" - "carrot_bbs/internal/pkg/response" - "carrot_bbs/internal/service" + "with_you/internal/dto" + "with_you/internal/model" + "with_you/internal/pkg/response" + "with_you/internal/service" ) const ( diff --git a/internal/handler/verification_handler.go b/internal/handler/verification_handler.go index 835f4cc..85406a6 100644 --- a/internal/handler/verification_handler.go +++ b/internal/handler/verification_handler.go @@ -1,12 +1,12 @@ -package handler +package handler import ( "strconv" - "carrot_bbs/internal/dto" - "carrot_bbs/internal/model" - "carrot_bbs/internal/pkg/response" - "carrot_bbs/internal/service" + "with_you/internal/dto" + "with_you/internal/model" + "with_you/internal/pkg/response" + "with_you/internal/service" "github.com/gin-gonic/gin" ) diff --git a/internal/handler/vote_handler.go b/internal/handler/vote_handler.go index 121aa57..8545767 100644 --- a/internal/handler/vote_handler.go +++ b/internal/handler/vote_handler.go @@ -1,4 +1,4 @@ -package handler +package handler import ( "errors" @@ -6,9 +6,9 @@ import ( "github.com/gin-gonic/gin" - "carrot_bbs/internal/dto" - "carrot_bbs/internal/pkg/response" - "carrot_bbs/internal/service" + "with_you/internal/dto" + "with_you/internal/pkg/response" + "with_you/internal/service" ) // VoteHandler 投票处理器 diff --git a/internal/handler/ws_handler.go b/internal/handler/ws_handler.go index eac955f..c85c85c 100644 --- a/internal/handler/ws_handler.go +++ b/internal/handler/ws_handler.go @@ -1,4 +1,4 @@ -package handler +package handler import ( "context" @@ -15,13 +15,13 @@ import ( "github.com/gorilla/websocket" "go.uber.org/zap" - "carrot_bbs/internal/dto" - apperrors "carrot_bbs/internal/errors" - "carrot_bbs/internal/model" - "carrot_bbs/internal/pkg/response" - "carrot_bbs/internal/pkg/ws" - "carrot_bbs/internal/repository" - "carrot_bbs/internal/service" + "with_you/internal/dto" + apperrors "with_you/internal/errors" + "with_you/internal/model" + "with_you/internal/pkg/response" + "with_you/internal/pkg/ws" + "with_you/internal/repository" + "with_you/internal/service" ) var upgrader = websocket.Upgrader{ diff --git a/internal/middleware/access_log.go b/internal/middleware/access_log.go index 4775efe..9685782 100644 --- a/internal/middleware/access_log.go +++ b/internal/middleware/access_log.go @@ -1,4 +1,4 @@ -package middleware +package middleware import ( "bytes" @@ -6,8 +6,8 @@ import ( "strings" "time" - "carrot_bbs/internal/model" - "carrot_bbs/internal/pkg/sanitizer" + "with_you/internal/model" + "with_you/internal/pkg/sanitizer" "github.com/gin-gonic/gin" ) diff --git a/internal/middleware/auth.go b/internal/middleware/auth.go index 8e521de..bb39b0e 100644 --- a/internal/middleware/auth.go +++ b/internal/middleware/auth.go @@ -1,12 +1,12 @@ -package middleware +package middleware import ( "strings" "github.com/gin-gonic/gin" - "carrot_bbs/internal/pkg/response" - "carrot_bbs/internal/service" + "with_you/internal/pkg/response" + "with_you/internal/service" ) // Auth 认证中间件 diff --git a/internal/middleware/casbin.go b/internal/middleware/casbin.go index bd04272..2a87844 100644 --- a/internal/middleware/casbin.go +++ b/internal/middleware/casbin.go @@ -1,10 +1,10 @@ -package middleware +package middleware import ( "slices" "strings" - "carrot_bbs/internal/service" + "with_you/internal/service" "github.com/gin-gonic/gin" ) diff --git a/internal/middleware/verification.go b/internal/middleware/verification.go index 1103c96..99f1a2f 100644 --- a/internal/middleware/verification.go +++ b/internal/middleware/verification.go @@ -1,11 +1,11 @@ -package middleware +package middleware import ( "net/http" - "carrot_bbs/internal/model" - "carrot_bbs/internal/pkg/response" - "carrot_bbs/internal/repository" + "with_you/internal/model" + "with_you/internal/pkg/response" + "with_you/internal/repository" "github.com/gin-gonic/gin" ) diff --git a/internal/model/call.go b/internal/model/call.go index 3e79f8b..2296c5b 100644 --- a/internal/model/call.go +++ b/internal/model/call.go @@ -1,4 +1,4 @@ -package model +package model import ( "strconv" @@ -6,7 +6,7 @@ import ( "gorm.io/gorm" - "carrot_bbs/internal/pkg/utils" + "with_you/internal/pkg/utils" ) // CallType 通话类型 diff --git a/internal/model/conversation.go b/internal/model/conversation.go index c8aae11..58877db 100644 --- a/internal/model/conversation.go +++ b/internal/model/conversation.go @@ -1,4 +1,4 @@ -package model +package model import ( "strconv" @@ -6,7 +6,7 @@ import ( "gorm.io/gorm" - "carrot_bbs/internal/pkg/utils" + "with_you/internal/pkg/utils" ) // ConversationType 会话类型 diff --git a/internal/model/device_token.go b/internal/model/device_token.go index 86bc363..0785671 100644 --- a/internal/model/device_token.go +++ b/internal/model/device_token.go @@ -1,11 +1,11 @@ -package model +package model import ( "time" "gorm.io/gorm" - "carrot_bbs/internal/pkg/utils" + "with_you/internal/pkg/utils" ) // DeviceType 设备类型 diff --git a/internal/model/group.go b/internal/model/group.go index 05d1b36..c822cde 100644 --- a/internal/model/group.go +++ b/internal/model/group.go @@ -1,10 +1,10 @@ -package model +package model import ( "strconv" "time" - "carrot_bbs/internal/pkg/utils" + "with_you/internal/pkg/utils" "gorm.io/gorm" ) diff --git a/internal/model/group_announcement.go b/internal/model/group_announcement.go index c0f9703..39a0b60 100644 --- a/internal/model/group_announcement.go +++ b/internal/model/group_announcement.go @@ -1,10 +1,10 @@ -package model +package model import ( "strconv" "time" - "carrot_bbs/internal/pkg/utils" + "with_you/internal/pkg/utils" "gorm.io/gorm" ) diff --git a/internal/model/group_join_request.go b/internal/model/group_join_request.go index 27ec21a..688b558 100644 --- a/internal/model/group_join_request.go +++ b/internal/model/group_join_request.go @@ -1,10 +1,10 @@ -package model +package model import ( "strconv" "time" - "carrot_bbs/internal/pkg/utils" + "with_you/internal/pkg/utils" "gorm.io/gorm" ) diff --git a/internal/model/group_member.go b/internal/model/group_member.go index 6be9639..83a389d 100644 --- a/internal/model/group_member.go +++ b/internal/model/group_member.go @@ -1,10 +1,10 @@ -package model +package model import ( "strconv" "time" - "carrot_bbs/internal/pkg/utils" + "with_you/internal/pkg/utils" "gorm.io/gorm" ) diff --git a/internal/model/init.go b/internal/model/init.go index 61ce57a..5116f1f 100644 --- a/internal/model/init.go +++ b/internal/model/init.go @@ -1,4 +1,4 @@ -package model +package model import ( "fmt" @@ -12,7 +12,7 @@ import ( "gorm.io/gorm" "gorm.io/gorm/logger" - "carrot_bbs/internal/config" + "with_you/internal/config" ) // NewDB 创建数据库连接(用于 Wire 依赖注入) diff --git a/internal/model/message.go b/internal/model/message.go index 6cb5ce7..066d898 100644 --- a/internal/model/message.go +++ b/internal/model/message.go @@ -1,4 +1,4 @@ -package model +package model import ( "database/sql/driver" @@ -10,8 +10,8 @@ import ( "gorm.io/gorm" - "carrot_bbs/internal/pkg/crypto" - "carrot_bbs/internal/pkg/utils" + "with_you/internal/pkg/crypto" + "with_you/internal/pkg/utils" ) // 系统消息相关常量 diff --git a/internal/model/push_record.go b/internal/model/push_record.go index f29288e..3ce3db5 100644 --- a/internal/model/push_record.go +++ b/internal/model/push_record.go @@ -1,11 +1,11 @@ -package model +package model import ( "time" "gorm.io/gorm" - "carrot_bbs/internal/pkg/utils" + "with_you/internal/pkg/utils" ) // PushChannel 推送通道类型 diff --git a/internal/model/system_notification.go b/internal/model/system_notification.go index 58de5be..a70c94d 100644 --- a/internal/model/system_notification.go +++ b/internal/model/system_notification.go @@ -1,4 +1,4 @@ -package model +package model import ( "database/sql/driver" @@ -8,7 +8,7 @@ import ( "gorm.io/gorm" - "carrot_bbs/internal/pkg/utils" + "with_you/internal/pkg/utils" ) // SystemNotificationType 系统通知类型 diff --git a/internal/pkg/email/config.go b/internal/pkg/email/config.go index 4083e15..272b2a4 100644 --- a/internal/pkg/email/config.go +++ b/internal/pkg/email/config.go @@ -1,6 +1,6 @@ -package email +package email -import "carrot_bbs/internal/config" +import "with_you/internal/config" // Config SMTP 邮件配置(由应用配置转换) type Config struct { diff --git a/internal/pkg/hook/moderation_hooks.go b/internal/pkg/hook/moderation_hooks.go index 016a27c..0e1eeb1 100644 --- a/internal/pkg/hook/moderation_hooks.go +++ b/internal/pkg/hook/moderation_hooks.go @@ -1,11 +1,11 @@ -package hook +package hook import ( "context" "strings" "time" - "carrot_bbs/internal/repository" + "with_you/internal/repository" "go.uber.org/zap" ) diff --git a/internal/pkg/hook/user_profile_moderation_hooks.go b/internal/pkg/hook/user_profile_moderation_hooks.go index e1ae9b8..c9965cf 100644 --- a/internal/pkg/hook/user_profile_moderation_hooks.go +++ b/internal/pkg/hook/user_profile_moderation_hooks.go @@ -1,10 +1,10 @@ -package hook +package hook import ( "strings" "time" - "carrot_bbs/internal/repository" + "with_you/internal/repository" "go.uber.org/zap" ) diff --git a/internal/pkg/openai/config.go b/internal/pkg/openai/config.go index e71efb1..431feec 100644 --- a/internal/pkg/openai/config.go +++ b/internal/pkg/openai/config.go @@ -1,6 +1,6 @@ -package openai +package openai -import "carrot_bbs/internal/config" +import "with_you/internal/config" // Config OpenAI 兼容接口配置 type Config struct { diff --git a/internal/pkg/redis/redis.go b/internal/pkg/redis/redis.go index 98430c5..22b4ad4 100644 --- a/internal/pkg/redis/redis.go +++ b/internal/pkg/redis/redis.go @@ -1,4 +1,4 @@ -package redis +package redis import ( "context" @@ -8,7 +8,7 @@ import ( "github.com/alicebob/miniredis/v2" "github.com/redis/go-redis/v9" - "carrot_bbs/internal/config" + "with_you/internal/config" ) // Client Redis客户端 diff --git a/internal/pkg/response/response.go b/internal/pkg/response/response.go index 6884b4d..cdafcbd 100644 --- a/internal/pkg/response/response.go +++ b/internal/pkg/response/response.go @@ -1,11 +1,11 @@ -package response +package response import ( "net/http" "github.com/gin-gonic/gin" - apperrors "carrot_bbs/internal/errors" + apperrors "with_you/internal/errors" ) // Response 统一响应结构 diff --git a/internal/pkg/s3/s3.go b/internal/pkg/s3/s3.go index 8a35ca3..7cba903 100644 --- a/internal/pkg/s3/s3.go +++ b/internal/pkg/s3/s3.go @@ -1,4 +1,4 @@ -package s3 +package s3 import ( "bytes" @@ -9,7 +9,7 @@ import ( "github.com/minio/minio-go/v7" "github.com/minio/minio-go/v7/pkg/credentials" - "carrot_bbs/internal/config" + "with_you/internal/config" ) // Client S3客户端 diff --git a/internal/repository/call_repo.go b/internal/repository/call_repo.go index 48601d2..f26fe26 100644 --- a/internal/repository/call_repo.go +++ b/internal/repository/call_repo.go @@ -1,9 +1,9 @@ -package repository +package repository import ( "context" - "carrot_bbs/internal/model" + "with_you/internal/model" "gorm.io/gorm" ) diff --git a/internal/repository/channel_repo.go b/internal/repository/channel_repo.go index 04cd2fc..4bba328 100644 --- a/internal/repository/channel_repo.go +++ b/internal/repository/channel_repo.go @@ -1,7 +1,7 @@ -package repository +package repository import ( - "carrot_bbs/internal/model" + "with_you/internal/model" "gorm.io/gorm" ) diff --git a/internal/repository/comment_repo.go b/internal/repository/comment_repo.go index 390f430..35d976b 100644 --- a/internal/repository/comment_repo.go +++ b/internal/repository/comment_repo.go @@ -1,8 +1,8 @@ -package repository +package repository import ( - "carrot_bbs/internal/model" - "carrot_bbs/internal/pkg/cursor" + "with_you/internal/model" + "with_you/internal/pkg/cursor" "context" "gorm.io/gorm" diff --git a/internal/repository/data_change_log_repo.go b/internal/repository/data_change_log_repo.go index f99d81c..6170cd1 100644 --- a/internal/repository/data_change_log_repo.go +++ b/internal/repository/data_change_log_repo.go @@ -1,10 +1,10 @@ -package repository +package repository import ( "context" - "carrot_bbs/internal/dto" - "carrot_bbs/internal/model" + "with_you/internal/dto" + "with_you/internal/model" "gorm.io/gorm" ) diff --git a/internal/repository/device_token_repo.go b/internal/repository/device_token_repo.go index 8c78816..10dfd73 100644 --- a/internal/repository/device_token_repo.go +++ b/internal/repository/device_token_repo.go @@ -1,9 +1,9 @@ -package repository +package repository import ( "time" - "carrot_bbs/internal/model" + "with_you/internal/model" "gorm.io/gorm" ) diff --git a/internal/repository/group_join_request_repo.go b/internal/repository/group_join_request_repo.go index 81966e4..528d432 100644 --- a/internal/repository/group_join_request_repo.go +++ b/internal/repository/group_join_request_repo.go @@ -1,7 +1,7 @@ -package repository +package repository import ( - "carrot_bbs/internal/model" + "with_you/internal/model" "gorm.io/gorm" ) diff --git a/internal/repository/group_repo.go b/internal/repository/group_repo.go index 7e96585..ab8e0ba 100644 --- a/internal/repository/group_repo.go +++ b/internal/repository/group_repo.go @@ -1,8 +1,8 @@ -package repository +package repository import ( - "carrot_bbs/internal/model" - "carrot_bbs/internal/pkg/cursor" + "with_you/internal/model" + "with_you/internal/pkg/cursor" "context" "errors" diff --git a/internal/repository/login_log_repo.go b/internal/repository/login_log_repo.go index 0a11d06..c322e5d 100644 --- a/internal/repository/login_log_repo.go +++ b/internal/repository/login_log_repo.go @@ -1,11 +1,11 @@ -package repository +package repository import ( "context" "time" - "carrot_bbs/internal/dto" - "carrot_bbs/internal/model" + "with_you/internal/dto" + "with_you/internal/model" "gorm.io/gorm" ) diff --git a/internal/repository/material_repo.go b/internal/repository/material_repo.go index b99231e..5e319c0 100644 --- a/internal/repository/material_repo.go +++ b/internal/repository/material_repo.go @@ -1,8 +1,8 @@ -package repository +package repository import ( - "carrot_bbs/internal/dto" - "carrot_bbs/internal/model" + "with_you/internal/dto" + "with_you/internal/model" "gorm.io/gorm" ) diff --git a/internal/repository/message_repo.go b/internal/repository/message_repo.go index b2bee1a..b386d9f 100644 --- a/internal/repository/message_repo.go +++ b/internal/repository/message_repo.go @@ -1,8 +1,8 @@ -package repository +package repository import ( - "carrot_bbs/internal/model" - "carrot_bbs/internal/pkg/cursor" + "with_you/internal/model" + "with_you/internal/pkg/cursor" "context" "errors" "fmt" diff --git a/internal/repository/notification_repo.go b/internal/repository/notification_repo.go index 59c4d67..788393b 100644 --- a/internal/repository/notification_repo.go +++ b/internal/repository/notification_repo.go @@ -1,8 +1,8 @@ -package repository +package repository import ( - "carrot_bbs/internal/model" - "carrot_bbs/internal/pkg/cursor" + "with_you/internal/model" + "with_you/internal/pkg/cursor" "context" "gorm.io/gorm" diff --git a/internal/repository/operation_log_repo.go b/internal/repository/operation_log_repo.go index de7c21a..87e6bf5 100644 --- a/internal/repository/operation_log_repo.go +++ b/internal/repository/operation_log_repo.go @@ -1,10 +1,10 @@ -package repository +package repository import ( "context" - "carrot_bbs/internal/dto" - "carrot_bbs/internal/model" + "with_you/internal/dto" + "with_you/internal/model" "gorm.io/gorm" ) diff --git a/internal/repository/post_repo.go b/internal/repository/post_repo.go index e072c0b..d70766b 100644 --- a/internal/repository/post_repo.go +++ b/internal/repository/post_repo.go @@ -1,12 +1,12 @@ -package repository +package repository import ( "context" "strings" "time" - "carrot_bbs/internal/model" - "carrot_bbs/internal/pkg/cursor" + "with_you/internal/model" + "with_you/internal/pkg/cursor" "gorm.io/gorm" ) diff --git a/internal/repository/push_repo.go b/internal/repository/push_repo.go index 4c17727..6be9701 100644 --- a/internal/repository/push_repo.go +++ b/internal/repository/push_repo.go @@ -1,9 +1,9 @@ -package repository +package repository import ( "time" - "carrot_bbs/internal/model" + "with_you/internal/model" "gorm.io/gorm" ) diff --git a/internal/repository/report_repo.go b/internal/repository/report_repo.go index ea1bd34..dc568b5 100644 --- a/internal/repository/report_repo.go +++ b/internal/repository/report_repo.go @@ -1,8 +1,8 @@ -package repository +package repository import ( - "carrot_bbs/internal/dto" - "carrot_bbs/internal/model" + "with_you/internal/dto" + "with_you/internal/model" "context" "gorm.io/gorm" diff --git a/internal/repository/role_repo.go b/internal/repository/role_repo.go index d73d6df..36740ae 100644 --- a/internal/repository/role_repo.go +++ b/internal/repository/role_repo.go @@ -1,9 +1,9 @@ -package repository +package repository import ( "context" - "carrot_bbs/internal/model" + "with_you/internal/model" "gorm.io/gorm" ) diff --git a/internal/repository/schedule_repo.go b/internal/repository/schedule_repo.go index 97f021a..b4e44bd 100644 --- a/internal/repository/schedule_repo.go +++ b/internal/repository/schedule_repo.go @@ -1,9 +1,9 @@ -package repository +package repository import ( "context" - "carrot_bbs/internal/model" + "with_you/internal/model" "gorm.io/gorm" ) diff --git a/internal/repository/sensitive_word_repo.go b/internal/repository/sensitive_word_repo.go index b754d67..cdd9430 100644 --- a/internal/repository/sensitive_word_repo.go +++ b/internal/repository/sensitive_word_repo.go @@ -1,9 +1,9 @@ -package repository +package repository import ( "context" - "carrot_bbs/internal/model" + "with_you/internal/model" "gorm.io/gorm" "gorm.io/gorm/clause" diff --git a/internal/repository/sticker_repo.go b/internal/repository/sticker_repo.go index 509a26b..a66f4c3 100644 --- a/internal/repository/sticker_repo.go +++ b/internal/repository/sticker_repo.go @@ -1,7 +1,7 @@ -package repository +package repository import ( - "carrot_bbs/internal/model" + "with_you/internal/model" "strings" "gorm.io/gorm" diff --git a/internal/repository/system_notification_repo.go b/internal/repository/system_notification_repo.go index adaea7c..d17e70b 100644 --- a/internal/repository/system_notification_repo.go +++ b/internal/repository/system_notification_repo.go @@ -1,11 +1,11 @@ -package repository +package repository import ( "context" "strconv" - "carrot_bbs/internal/model" - "carrot_bbs/internal/pkg/cursor" + "with_you/internal/model" + "with_you/internal/pkg/cursor" "gorm.io/gorm" ) diff --git a/internal/repository/user_activity_repo.go b/internal/repository/user_activity_repo.go index 2455105..ae1332e 100644 --- a/internal/repository/user_activity_repo.go +++ b/internal/repository/user_activity_repo.go @@ -1,11 +1,11 @@ -package repository +package repository import ( "context" "fmt" "time" - "carrot_bbs/internal/model" + "with_you/internal/model" "gorm.io/gorm" "gorm.io/gorm/clause" diff --git a/internal/repository/user_profile_audit_repo.go b/internal/repository/user_profile_audit_repo.go index 6e14516..e72be01 100644 --- a/internal/repository/user_profile_audit_repo.go +++ b/internal/repository/user_profile_audit_repo.go @@ -1,7 +1,7 @@ -package repository +package repository import ( - "carrot_bbs/internal/model" + "with_you/internal/model" "gorm.io/gorm" ) diff --git a/internal/repository/user_repo.go b/internal/repository/user_repo.go index 90bd384..52f8ce8 100644 --- a/internal/repository/user_repo.go +++ b/internal/repository/user_repo.go @@ -1,7 +1,7 @@ -package repository +package repository import ( - "carrot_bbs/internal/model" + "with_you/internal/model" "strings" "time" diff --git a/internal/repository/verification_repo.go b/internal/repository/verification_repo.go index 100cba6..35384b8 100644 --- a/internal/repository/verification_repo.go +++ b/internal/repository/verification_repo.go @@ -1,7 +1,7 @@ -package repository +package repository import ( - "carrot_bbs/internal/model" + "with_you/internal/model" "gorm.io/gorm" ) diff --git a/internal/repository/vote_repo.go b/internal/repository/vote_repo.go index 2e2d183..ccee7bc 100644 --- a/internal/repository/vote_repo.go +++ b/internal/repository/vote_repo.go @@ -1,7 +1,7 @@ -package repository +package repository import ( - "carrot_bbs/internal/model" + "with_you/internal/model" "errors" "gorm.io/gorm" diff --git a/internal/router/router.go b/internal/router/router.go index c6c776d..9110cfe 100644 --- a/internal/router/router.go +++ b/internal/router/router.go @@ -1,13 +1,13 @@ -package router +package router import ( "github.com/gin-gonic/gin" - "carrot_bbs/internal/handler" - "carrot_bbs/internal/middleware" - "carrot_bbs/internal/model" - "carrot_bbs/internal/repository" - "carrot_bbs/internal/service" + "with_you/internal/handler" + "with_you/internal/middleware" + "with_you/internal/model" + "with_you/internal/repository" + "with_you/internal/service" ) // Router 路由配置 diff --git a/internal/service/account_cleanup_service.go b/internal/service/account_cleanup_service.go index 51ad59b..5cbbf44 100644 --- a/internal/service/account_cleanup_service.go +++ b/internal/service/account_cleanup_service.go @@ -1,12 +1,12 @@ -package service +package service import ( "context" "log" "time" - "carrot_bbs/internal/model" - "carrot_bbs/internal/repository" + "with_you/internal/model" + "with_you/internal/repository" "gorm.io/gorm" ) diff --git a/internal/service/admin_comment_service.go b/internal/service/admin_comment_service.go index e41068f..40d492b 100644 --- a/internal/service/admin_comment_service.go +++ b/internal/service/admin_comment_service.go @@ -1,12 +1,12 @@ -package service +package service import ( "context" "encoding/json" - "carrot_bbs/internal/dto" - "carrot_bbs/internal/model" - "carrot_bbs/internal/repository" + "with_you/internal/dto" + "with_you/internal/model" + "with_you/internal/repository" ) // AdminCommentService 管理端评论服务接口 diff --git a/internal/service/admin_dashboard_service.go b/internal/service/admin_dashboard_service.go index 420d051..5ca2e9d 100644 --- a/internal/service/admin_dashboard_service.go +++ b/internal/service/admin_dashboard_service.go @@ -1,12 +1,12 @@ -package service +package service import ( "context" "time" - "carrot_bbs/internal/dto" - "carrot_bbs/internal/model" - "carrot_bbs/internal/repository" + "with_you/internal/dto" + "with_you/internal/model" + "with_you/internal/repository" "gorm.io/gorm" ) diff --git a/internal/service/admin_group_service.go b/internal/service/admin_group_service.go index 6054a57..c6a1053 100644 --- a/internal/service/admin_group_service.go +++ b/internal/service/admin_group_service.go @@ -1,12 +1,12 @@ -package service +package service import ( "context" "errors" - "carrot_bbs/internal/dto" - "carrot_bbs/internal/model" - "carrot_bbs/internal/repository" + "with_you/internal/dto" + "with_you/internal/model" + "with_you/internal/repository" ) // AdminGroupService 管理端群组服务接口 diff --git a/internal/service/admin_post_service.go b/internal/service/admin_post_service.go index 1aab3ec..21056bc 100644 --- a/internal/service/admin_post_service.go +++ b/internal/service/admin_post_service.go @@ -1,12 +1,12 @@ -package service +package service import ( "context" - "carrot_bbs/internal/cache" - "carrot_bbs/internal/dto" - "carrot_bbs/internal/model" - "carrot_bbs/internal/repository" + "with_you/internal/cache" + "with_you/internal/dto" + "with_you/internal/model" + "with_you/internal/repository" ) // AdminPostService 管理端帖子服务接口 diff --git a/internal/service/admin_report_service.go b/internal/service/admin_report_service.go index e1f0820..d1a0daf 100644 --- a/internal/service/admin_report_service.go +++ b/internal/service/admin_report_service.go @@ -1,13 +1,13 @@ -package service +package service import ( "context" "errors" "fmt" - "carrot_bbs/internal/dto" - "carrot_bbs/internal/model" - "carrot_bbs/internal/repository" + "with_you/internal/dto" + "with_you/internal/model" + "with_you/internal/repository" "go.uber.org/zap" ) diff --git a/internal/service/admin_user_service.go b/internal/service/admin_user_service.go index 7195557..5b8d2fe 100644 --- a/internal/service/admin_user_service.go +++ b/internal/service/admin_user_service.go @@ -1,11 +1,11 @@ -package service +package service import ( "context" - "carrot_bbs/internal/dto" - "carrot_bbs/internal/model" - "carrot_bbs/internal/repository" + "with_you/internal/dto" + "with_you/internal/model" + "with_you/internal/repository" ) // AdminUserService 管理端用户服务接口 diff --git a/internal/service/async_log_manager.go b/internal/service/async_log_manager.go index 1713f30..3009558 100644 --- a/internal/service/async_log_manager.go +++ b/internal/service/async_log_manager.go @@ -1,4 +1,4 @@ -package service +package service import ( "cmp" @@ -7,8 +7,8 @@ import ( "sync" "time" - "carrot_bbs/internal/model" - "carrot_bbs/internal/repository" + "with_you/internal/model" + "with_you/internal/repository" "go.uber.org/zap" ) diff --git a/internal/service/call_service.go b/internal/service/call_service.go index 5bc185a..72c4e62 100644 --- a/internal/service/call_service.go +++ b/internal/service/call_service.go @@ -1,4 +1,4 @@ -package service +package service import ( "context" @@ -8,11 +8,11 @@ import ( "sync" "time" - "carrot_bbs/internal/config" - apperrors "carrot_bbs/internal/errors" - "carrot_bbs/internal/model" - "carrot_bbs/internal/pkg/ws" - "carrot_bbs/internal/repository" + "with_you/internal/config" + apperrors "with_you/internal/errors" + "with_you/internal/model" + "with_you/internal/pkg/ws" + "with_you/internal/repository" "go.uber.org/zap" "gorm.io/gorm" diff --git a/internal/service/casbin_service.go b/internal/service/casbin_service.go index e0dbfff..370f8d2 100644 --- a/internal/service/casbin_service.go +++ b/internal/service/casbin_service.go @@ -1,13 +1,13 @@ -package service +package service import ( "context" "fmt" "time" - "carrot_bbs/internal/cache" - "carrot_bbs/internal/config" - "carrot_bbs/internal/repository" + "with_you/internal/cache" + "with_you/internal/config" + "with_you/internal/repository" "github.com/casbin/casbin/v3" ) diff --git a/internal/service/channel_service.go b/internal/service/channel_service.go index 32adc36..5f27e94 100644 --- a/internal/service/channel_service.go +++ b/internal/service/channel_service.go @@ -1,11 +1,11 @@ -package service +package service import ( "time" - "carrot_bbs/internal/cache" - "carrot_bbs/internal/model" - "carrot_bbs/internal/repository" + "with_you/internal/cache" + "with_you/internal/model" + "with_you/internal/repository" ) // 频道全量列表缓存 TTL(频道变更少,可较长;管理端写入后会主动失效) diff --git a/internal/service/chat_service.go b/internal/service/chat_service.go index 120e767..37e32ec 100644 --- a/internal/service/chat_service.go +++ b/internal/service/chat_service.go @@ -1,4 +1,4 @@ -package service +package service import ( "context" @@ -7,11 +7,11 @@ import ( "slices" "time" - "carrot_bbs/internal/cache" - "carrot_bbs/internal/dto" - "carrot_bbs/internal/model" - "carrot_bbs/internal/pkg/ws" - "carrot_bbs/internal/repository" + "with_you/internal/cache" + "with_you/internal/dto" + "with_you/internal/model" + "with_you/internal/pkg/ws" + "with_you/internal/repository" "go.uber.org/zap" "gorm.io/gorm" diff --git a/internal/service/comment_service.go b/internal/service/comment_service.go index e4530ba..062f1ff 100644 --- a/internal/service/comment_service.go +++ b/internal/service/comment_service.go @@ -1,15 +1,15 @@ -package service +package service import ( "context" "fmt" "strings" - "carrot_bbs/internal/cache" - "carrot_bbs/internal/model" - "carrot_bbs/internal/pkg/cursor" - "carrot_bbs/internal/pkg/hook" - "carrot_bbs/internal/repository" + "with_you/internal/cache" + "with_you/internal/model" + "with_you/internal/pkg/cursor" + "with_you/internal/pkg/hook" + "with_you/internal/repository" "go.uber.org/zap" ) diff --git a/internal/service/email_code_service.go b/internal/service/email_code_service.go index f4aa809..c447457 100644 --- a/internal/service/email_code_service.go +++ b/internal/service/email_code_service.go @@ -1,4 +1,4 @@ -package service +package service import ( "context" @@ -9,8 +9,8 @@ import ( "strings" "time" - "carrot_bbs/internal/cache" - "carrot_bbs/internal/pkg/utils" + "with_you/internal/cache" + "with_you/internal/pkg/utils" ) const ( @@ -201,15 +201,15 @@ func (s *emailCodeServiceImpl) VerifyCode(purpose, email, code string) error { func verificationEmailMeta(purpose string) (subject string, sceneText string) { switch purpose { case CodePurposeRegister: - return "Carrot BBS 注册验证码", "注册账号" + return "WithYou 注册验证码", "注册账号" case CodePurposePasswordReset: - return "Carrot BBS 找回密码验证码", "找回密码" + return "WithYou 找回密码验证码", "找回密码" case CodePurposeEmailVerify: - return "Carrot BBS 邮箱验证验证码", "验证邮箱" + return "WithYou 邮箱验证验证码", "验证邮箱" case CodePurposeChangePassword: - return "Carrot BBS 修改密码验证码", "修改密码" + return "WithYou 修改密码验证码", "修改密码" default: - return "Carrot BBS 验证码", "身份验证" + return "WithYou 验证码", "身份验证" } } @@ -219,7 +219,7 @@ func buildVerificationEmailHTML(sceneText, code string) string { - Carrot BBS 验证码 + WithYou 验证码 @@ -228,7 +228,7 @@ func buildVerificationEmailHTML(sceneText, code string) string {
@@ -247,7 +247,7 @@ func buildVerificationEmailHTML(sceneText, code string) string {
-
Carrot BBS
+
WithYou
%s 验证
此邮件由系统自动发送,请勿直接回复。
- © Carrot BBS + © WithYou
diff --git a/internal/service/email_service.go b/internal/service/email_service.go index e879731..e04402e 100644 --- a/internal/service/email_service.go +++ b/internal/service/email_service.go @@ -1,11 +1,11 @@ -package service +package service import ( "context" "fmt" "strings" - emailpkg "carrot_bbs/internal/pkg/email" + emailpkg "with_you/internal/pkg/email" ) // SendEmailRequest 发信请求 diff --git a/internal/service/group_service.go b/internal/service/group_service.go index 982d668..6ee1218 100644 --- a/internal/service/group_service.go +++ b/internal/service/group_service.go @@ -1,4 +1,4 @@ -package service +package service import ( "cmp" @@ -10,13 +10,13 @@ import ( "strconv" "time" - "carrot_bbs/internal/cache" - apperrors "carrot_bbs/internal/errors" - "carrot_bbs/internal/model" - "carrot_bbs/internal/pkg/cursor" - "carrot_bbs/internal/pkg/utils" - "carrot_bbs/internal/pkg/ws" - "carrot_bbs/internal/repository" + "with_you/internal/cache" + apperrors "with_you/internal/errors" + "with_you/internal/model" + "with_you/internal/pkg/cursor" + "with_you/internal/pkg/utils" + "with_you/internal/pkg/ws" + "with_you/internal/repository" "go.uber.org/zap" "gorm.io/gorm" diff --git a/internal/service/hot_rank_worker.go b/internal/service/hot_rank_worker.go index 510deee..e23e08b 100644 --- a/internal/service/hot_rank_worker.go +++ b/internal/service/hot_rank_worker.go @@ -1,4 +1,4 @@ -package service +package service import ( "cmp" @@ -9,9 +9,9 @@ import ( "sync" "time" - "carrot_bbs/internal/cache" - "carrot_bbs/internal/config" - "carrot_bbs/internal/repository" + "with_you/internal/cache" + "with_you/internal/config" + "with_you/internal/repository" "github.com/redis/go-redis/v9" "go.uber.org/zap" diff --git a/internal/service/jwt_service.go b/internal/service/jwt_service.go index 3344737..1293d85 100644 --- a/internal/service/jwt_service.go +++ b/internal/service/jwt_service.go @@ -1,7 +1,7 @@ -package service +package service import ( - "carrot_bbs/internal/pkg/jwt" + "with_you/internal/pkg/jwt" "time" ) diff --git a/internal/service/log_cleanup_service.go b/internal/service/log_cleanup_service.go index b3d0344..7df35fe 100644 --- a/internal/service/log_cleanup_service.go +++ b/internal/service/log_cleanup_service.go @@ -1,10 +1,10 @@ -package service +package service import ( "context" "time" - "carrot_bbs/internal/repository" + "with_you/internal/repository" "go.uber.org/zap" ) diff --git a/internal/service/log_service.go b/internal/service/log_service.go index b68599f..3bd4c1a 100644 --- a/internal/service/log_service.go +++ b/internal/service/log_service.go @@ -1,12 +1,12 @@ -package service +package service import ( "context" "time" - "carrot_bbs/internal/dto" - "carrot_bbs/internal/model" - "carrot_bbs/internal/repository" + "with_you/internal/dto" + "with_you/internal/model" + "with_you/internal/repository" ) // OperationLogService 操作日志服务接口 diff --git a/internal/service/material_service.go b/internal/service/material_service.go index 1c989f2..6ddd79b 100644 --- a/internal/service/material_service.go +++ b/internal/service/material_service.go @@ -1,11 +1,11 @@ -package service +package service import ( "errors" - "carrot_bbs/internal/dto" - "carrot_bbs/internal/model" - "carrot_bbs/internal/repository" + "with_you/internal/dto" + "with_you/internal/model" + "with_you/internal/repository" ) // ErrSubjectHasMaterials 学科下存在资料,无法删除 diff --git a/internal/service/message_segment_image.go b/internal/service/message_segment_image.go index 88e04b2..0f3e536 100644 --- a/internal/service/message_segment_image.go +++ b/internal/service/message_segment_image.go @@ -1,11 +1,11 @@ -package service +package service import ( "fmt" "net/url" "strings" - "carrot_bbs/internal/model" + "with_you/internal/model" ) // ValidateChatMessageImageSegments 校验聊天消息中的图片段:禁止 data:/base64 内联,仅允许引用本站 S3 公开前缀下的 URL。 diff --git a/internal/service/message_service.go b/internal/service/message_service.go index 182f965..0844879 100644 --- a/internal/service/message_service.go +++ b/internal/service/message_service.go @@ -1,13 +1,13 @@ -package service +package service import ( "context" "time" - "carrot_bbs/internal/cache" - "carrot_bbs/internal/model" - "carrot_bbs/internal/pkg/cursor" - "carrot_bbs/internal/repository" + "with_you/internal/cache" + "with_you/internal/model" + "with_you/internal/pkg/cursor" + "with_you/internal/repository" "go.uber.org/zap" ) diff --git a/internal/service/notification_service.go b/internal/service/notification_service.go index 5f58a7a..5bf73b8 100644 --- a/internal/service/notification_service.go +++ b/internal/service/notification_service.go @@ -1,14 +1,14 @@ -package service +package service import ( "context" "time" - "carrot_bbs/internal/cache" - apperrors "carrot_bbs/internal/errors" - "carrot_bbs/internal/model" - "carrot_bbs/internal/pkg/cursor" - "carrot_bbs/internal/repository" + "with_you/internal/cache" + apperrors "with_you/internal/errors" + "with_you/internal/model" + "with_you/internal/pkg/cursor" + "with_you/internal/repository" ) // 缓存TTL常量 diff --git a/internal/service/post_ai_service.go b/internal/service/post_ai_service.go index 541bcc7..510635a 100644 --- a/internal/service/post_ai_service.go +++ b/internal/service/post_ai_service.go @@ -1,12 +1,12 @@ -package service +package service import ( "context" "fmt" "strings" - "carrot_bbs/internal/pkg/openai" - "carrot_bbs/internal/pkg/tencent" + "with_you/internal/pkg/openai" + "with_you/internal/pkg/tencent" "go.uber.org/zap" ) diff --git a/internal/service/post_service.go b/internal/service/post_service.go index 98898d6..8ceb22f 100644 --- a/internal/service/post_service.go +++ b/internal/service/post_service.go @@ -1,4 +1,4 @@ -package service +package service import ( "context" @@ -8,11 +8,11 @@ import ( "strings" "time" - "carrot_bbs/internal/cache" - "carrot_bbs/internal/model" - "carrot_bbs/internal/pkg/cursor" - "carrot_bbs/internal/pkg/hook" - "carrot_bbs/internal/repository" + "with_you/internal/cache" + "with_you/internal/model" + "with_you/internal/pkg/cursor" + "with_you/internal/pkg/hook" + "with_you/internal/repository" ) // 缓存TTL常量 diff --git a/internal/service/push_service.go b/internal/service/push_service.go index 5f8e3b8..795a155 100644 --- a/internal/service/push_service.go +++ b/internal/service/push_service.go @@ -1,4 +1,4 @@ -package service +package service import ( "context" @@ -6,10 +6,10 @@ import ( "fmt" "time" - "carrot_bbs/internal/dto" - "carrot_bbs/internal/model" - "carrot_bbs/internal/pkg/ws" - "carrot_bbs/internal/repository" + "with_you/internal/dto" + "with_you/internal/model" + "with_you/internal/pkg/ws" + "with_you/internal/repository" ) // 推送相关常量 diff --git a/internal/service/qrcode_login_service.go b/internal/service/qrcode_login_service.go index ce7d5c3..c69de92 100644 --- a/internal/service/qrcode_login_service.go +++ b/internal/service/qrcode_login_service.go @@ -1,4 +1,4 @@ -package service +package service import ( "context" @@ -7,9 +7,9 @@ import ( "github.com/google/uuid" - "carrot_bbs/internal/model" - "carrot_bbs/internal/pkg/redis" - "carrot_bbs/internal/pkg/ws" + "with_you/internal/model" + "with_you/internal/pkg/redis" + "with_you/internal/pkg/ws" ) // Lua 脚本:原子性地检查状态并更新为 scanned diff --git a/internal/service/report_service.go b/internal/service/report_service.go index 15741c1..2598813 100644 --- a/internal/service/report_service.go +++ b/internal/service/report_service.go @@ -1,13 +1,13 @@ -package service +package service import ( "context" "errors" "fmt" - "carrot_bbs/internal/config" - "carrot_bbs/internal/model" - "carrot_bbs/internal/repository" + "with_you/internal/config" + "with_you/internal/model" + "with_you/internal/repository" "go.uber.org/zap" ) diff --git a/internal/service/role_service.go b/internal/service/role_service.go index 40ffe6a..b45d62f 100644 --- a/internal/service/role_service.go +++ b/internal/service/role_service.go @@ -1,11 +1,11 @@ -package service +package service import ( "context" - apperrors "carrot_bbs/internal/errors" - "carrot_bbs/internal/model" - "carrot_bbs/internal/repository" + apperrors "with_you/internal/errors" + "with_you/internal/model" + "with_you/internal/repository" ) // RoleService 角色管理服务接口 diff --git a/internal/service/schedule_service.go b/internal/service/schedule_service.go index a43662c..41a49b7 100644 --- a/internal/service/schedule_service.go +++ b/internal/service/schedule_service.go @@ -1,4 +1,4 @@ -package service +package service import ( "encoding/json" @@ -8,10 +8,10 @@ import ( "sort" "strings" - "carrot_bbs/internal/dto" - apperrors "carrot_bbs/internal/errors" - "carrot_bbs/internal/model" - "carrot_bbs/internal/repository" + "with_you/internal/dto" + apperrors "with_you/internal/errors" + "with_you/internal/model" + "with_you/internal/repository" "gorm.io/gorm" ) diff --git a/internal/service/schedule_sync_service.go b/internal/service/schedule_sync_service.go index 1f9c33e..2f7669c 100644 --- a/internal/service/schedule_sync_service.go +++ b/internal/service/schedule_sync_service.go @@ -1,14 +1,14 @@ -package service +package service import ( "context" "encoding/json" "fmt" - "carrot_bbs/internal/grpc/runner" - "carrot_bbs/internal/model" - "carrot_bbs/internal/repository" - pb "carrot_bbs/proto/runner" + "with_you/internal/grpc/runner" + "with_you/internal/model" + "with_you/internal/repository" + pb "with_you/proto/runner" "github.com/google/uuid" "go.uber.org/zap" diff --git a/internal/service/sensitive_service.go b/internal/service/sensitive_service.go index 60beb02..fa0d4af 100644 --- a/internal/service/sensitive_service.go +++ b/internal/service/sensitive_service.go @@ -1,4 +1,4 @@ -package service +package service import ( "context" @@ -10,9 +10,9 @@ import ( "time" "unicode/utf8" - "carrot_bbs/internal/model" - redisclient "carrot_bbs/internal/pkg/redis" - "carrot_bbs/internal/repository" + "with_you/internal/model" + redisclient "with_you/internal/pkg/redis" + "with_you/internal/repository" "go.uber.org/zap" ) diff --git a/internal/service/sticker_service.go b/internal/service/sticker_service.go index bc5e0ac..eb19c56 100644 --- a/internal/service/sticker_service.go +++ b/internal/service/sticker_service.go @@ -1,13 +1,13 @@ -package service +package service import ( "errors" "net/url" "strings" - apperrors "carrot_bbs/internal/errors" - "carrot_bbs/internal/model" - "carrot_bbs/internal/repository" + apperrors "with_you/internal/errors" + "with_you/internal/model" + "with_you/internal/repository" ) var ( diff --git a/internal/service/system_message_service.go b/internal/service/system_message_service.go index 19e9cab..a7e5a82 100644 --- a/internal/service/system_message_service.go +++ b/internal/service/system_message_service.go @@ -1,14 +1,14 @@ -package service +package service import ( "context" "fmt" "time" - "carrot_bbs/internal/cache" - "carrot_bbs/internal/model" - "carrot_bbs/internal/pkg/utils" - "carrot_bbs/internal/repository" + "with_you/internal/cache" + "with_you/internal/model" + "with_you/internal/pkg/utils" + "with_you/internal/repository" ) // SystemMessageService 系统消息服务接口 diff --git a/internal/service/upload_service.go b/internal/service/upload_service.go index b162f25..074d467 100644 --- a/internal/service/upload_service.go +++ b/internal/service/upload_service.go @@ -1,4 +1,4 @@ -package service +package service import ( "bytes" @@ -16,7 +16,7 @@ import ( "path/filepath" "strings" - "carrot_bbs/internal/pkg/s3" + "with_you/internal/pkg/s3" "github.com/disintegration/imaging" "go.uber.org/zap" diff --git a/internal/service/user_activity_service.go b/internal/service/user_activity_service.go index 5a98a50..09533fe 100644 --- a/internal/service/user_activity_service.go +++ b/internal/service/user_activity_service.go @@ -1,11 +1,11 @@ -package service +package service import ( "context" "fmt" "time" - "carrot_bbs/internal/repository" + "with_you/internal/repository" "go.uber.org/zap" ) diff --git a/internal/service/user_profile_audit_service.go b/internal/service/user_profile_audit_service.go index c128162..57a86af 100644 --- a/internal/service/user_profile_audit_service.go +++ b/internal/service/user_profile_audit_service.go @@ -1,13 +1,13 @@ -package service +package service import ( "context" "log" "time" - "carrot_bbs/internal/model" - "carrot_bbs/internal/pkg/hook" - "carrot_bbs/internal/repository" + "with_you/internal/model" + "with_you/internal/pkg/hook" + "with_you/internal/repository" "go.uber.org/zap" ) diff --git a/internal/service/user_service.go b/internal/service/user_service.go index 1e8f837..f71a7a8 100644 --- a/internal/service/user_service.go +++ b/internal/service/user_service.go @@ -1,4 +1,4 @@ -package service +package service import ( "context" @@ -6,11 +6,11 @@ import ( "strings" "time" - "carrot_bbs/internal/cache" - apperrors "carrot_bbs/internal/errors" - "carrot_bbs/internal/model" - "carrot_bbs/internal/pkg/utils" - "carrot_bbs/internal/repository" + "with_you/internal/cache" + apperrors "with_you/internal/errors" + "with_you/internal/model" + "with_you/internal/pkg/utils" + "with_you/internal/repository" ) // UserService 用户服务接口 diff --git a/internal/service/verification_service.go b/internal/service/verification_service.go index b5dddb4..4a878a8 100644 --- a/internal/service/verification_service.go +++ b/internal/service/verification_service.go @@ -1,13 +1,13 @@ -package service +package service import ( "context" "fmt" "time" - apperrors "carrot_bbs/internal/errors" - "carrot_bbs/internal/model" - "carrot_bbs/internal/repository" + apperrors "with_you/internal/errors" + "with_you/internal/model" + "with_you/internal/repository" ) type VerificationService interface { diff --git a/internal/service/vote_service.go b/internal/service/vote_service.go index 3c5b297..71cd532 100644 --- a/internal/service/vote_service.go +++ b/internal/service/vote_service.go @@ -1,4 +1,4 @@ -package service +package service import ( "context" @@ -8,11 +8,11 @@ import ( "strings" "time" - "carrot_bbs/internal/cache" - "carrot_bbs/internal/dto" - "carrot_bbs/internal/model" - "carrot_bbs/internal/pkg/hook" - "carrot_bbs/internal/repository" + "with_you/internal/cache" + "with_you/internal/dto" + "with_you/internal/model" + "with_you/internal/pkg/hook" + "with_you/internal/repository" ) // VoteService 投票服务 diff --git a/internal/wire/casbin.go b/internal/wire/casbin.go index 83e6769..5f6a2db 100644 --- a/internal/wire/casbin.go +++ b/internal/wire/casbin.go @@ -1,10 +1,10 @@ -package wire +package wire import ( - "carrot_bbs/internal/cache" - "carrot_bbs/internal/config" - "carrot_bbs/internal/repository" - "carrot_bbs/internal/service" + "with_you/internal/cache" + "with_you/internal/config" + "with_you/internal/repository" + "with_you/internal/service" "github.com/casbin/casbin/v3" gormadapter "github.com/casbin/gorm-adapter/v3" diff --git a/internal/wire/grpc.go b/internal/wire/grpc.go index 40af63f..1e4e9b1 100644 --- a/internal/wire/grpc.go +++ b/internal/wire/grpc.go @@ -1,8 +1,8 @@ -package wire +package wire import ( - "carrot_bbs/internal/config" - "carrot_bbs/internal/grpc/runner" + "with_you/internal/config" + "with_you/internal/grpc/runner" "github.com/google/wire" "go.uber.org/zap" diff --git a/internal/wire/handler.go b/internal/wire/handler.go index 10d9a75..2b088f7 100644 --- a/internal/wire/handler.go +++ b/internal/wire/handler.go @@ -1,10 +1,10 @@ -package wire +package wire import ( - "carrot_bbs/internal/handler" - "carrot_bbs/internal/pkg/ws" - "carrot_bbs/internal/repository" - "carrot_bbs/internal/service" + "with_you/internal/handler" + "with_you/internal/pkg/ws" + "with_you/internal/repository" + "with_you/internal/service" "github.com/google/wire" ) diff --git a/internal/wire/infrastructure.go b/internal/wire/infrastructure.go index 9a76012..b6e8975 100644 --- a/internal/wire/infrastructure.go +++ b/internal/wire/infrastructure.go @@ -1,21 +1,21 @@ -package wire +package wire import ( "time" - "carrot_bbs/internal/cache" - "carrot_bbs/internal/config" - "carrot_bbs/internal/model" - "carrot_bbs/internal/pkg/crypto" - "carrot_bbs/internal/pkg/email" - "carrot_bbs/internal/pkg/hook" - "carrot_bbs/internal/pkg/openai" - "carrot_bbs/internal/pkg/redis" - "carrot_bbs/internal/pkg/s3" - "carrot_bbs/internal/pkg/tencent" - "carrot_bbs/internal/pkg/ws" - "carrot_bbs/internal/repository" - "carrot_bbs/internal/service" + "with_you/internal/cache" + "with_you/internal/config" + "with_you/internal/model" + "with_you/internal/pkg/crypto" + "with_you/internal/pkg/email" + "with_you/internal/pkg/hook" + "with_you/internal/pkg/openai" + "with_you/internal/pkg/redis" + "with_you/internal/pkg/s3" + "with_you/internal/pkg/tencent" + "with_you/internal/pkg/ws" + "with_you/internal/repository" + "with_you/internal/service" "github.com/google/wire" "go.uber.org/zap" diff --git a/internal/wire/repository.go b/internal/wire/repository.go index d3fe622..2189575 100644 --- a/internal/wire/repository.go +++ b/internal/wire/repository.go @@ -1,8 +1,8 @@ -package wire +package wire import ( - "carrot_bbs/internal/cache" - "carrot_bbs/internal/repository" + "with_you/internal/cache" + "with_you/internal/repository" "github.com/google/wire" "gorm.io/gorm" diff --git a/internal/wire/service.go b/internal/wire/service.go index 59b9fbe..dd16706 100644 --- a/internal/wire/service.go +++ b/internal/wire/service.go @@ -1,20 +1,20 @@ -package wire +package wire import ( "time" - "carrot_bbs/internal/cache" - "carrot_bbs/internal/config" - "carrot_bbs/internal/grpc/runner" - "carrot_bbs/internal/pkg/email" - "carrot_bbs/internal/pkg/hook" - "carrot_bbs/internal/pkg/openai" - "carrot_bbs/internal/pkg/redis" - "carrot_bbs/internal/pkg/s3" - "carrot_bbs/internal/pkg/tencent" - "carrot_bbs/internal/pkg/ws" - "carrot_bbs/internal/repository" - "carrot_bbs/internal/service" + "with_you/internal/cache" + "with_you/internal/config" + "with_you/internal/grpc/runner" + "with_you/internal/pkg/email" + "with_you/internal/pkg/hook" + "with_you/internal/pkg/openai" + "with_you/internal/pkg/redis" + "with_you/internal/pkg/s3" + "with_you/internal/pkg/tencent" + "with_you/internal/pkg/ws" + "with_you/internal/repository" + "with_you/internal/service" "github.com/google/wire" "go.uber.org/zap" diff --git a/start-docker.sh b/start-docker.sh index 6b123eb..90f9b9d 100755 --- a/start-docker.sh +++ b/start-docker.sh @@ -1,17 +1,17 @@ #!/bin/bash -# carrot_bbs Docker 启动脚本 -# 使用前请确保已经构建好镜像: docker build -t carrot_bbs:latest . +# with_you Docker 启动脚本 +# 使用前请确保已经构建好镜像: docker build -t with_you:latest . docker run -d \ - --name carrot_bbs \ + --name with_you \ --network 1panel-network \ -p 8080:8080 \ -e APP_DATABASE_TYPE=postgres \ -e APP_DATABASE_POSTGRES_HOST=1Panel-postgresql-t0g7 \ - -e APP_DATABASE_POSTGRES_USER=carrot_bbs \ + -e APP_DATABASE_POSTGRES_USER=with_you \ -e APP_DATABASE_POSTGRES_PASSWORD=We5Zyb6WzCa36tCT \ - -e APP_DATABASE_POSTGRES_DBNAME=carrot_bbs \ + -e APP_DATABASE_POSTGRES_DBNAME=with_you \ -e APP_REDIS_TYPE=redis \ -e APP_REDIS_REDIS_HOST=1Panel-redis-dfmM \ -e APP_REDIS_REDIS_PASSWORD=redis_j8CMza \ @@ -39,8 +39,8 @@ docker run -d \ -e APP_EMAIL_USERNAME=no-reply@qczlit.cn \ -e APP_EMAIL_PASSWORD=HbvwwVjRyiWg9gsK \ -e APP_EMAIL_FROM_ADDRESS=no-reply@qczlit.cn \ - -e APP_EMAIL_FROM_NAME="Carrot BBS" \ + -e APP_EMAIL_FROM_NAME="WithYou" \ -e APP_EMAIL_USE_TLS=true \ -e APP_EMAIL_INSECURE_SKIP_VERIFY=false \ -e APP_EMAIL_TIMEOUT=15 \ - carrot-bbs-backend:20260309-181055 + with-you-backend:20260309-181055