This is a breaking change that renames the entire project from "Carrot BBS" to "WithYou".
All checks were successful
Build Backend / build (push) Successful in 5m10s
Build Backend / build-docker (push) Successful in 2m22s

The Go module name has been changed from `carrot_bbs` to `with_you`, which requires
all import paths to be updated throughout the codebase and by external consumers.

BREAKING CHANGE: Module name changed from carrot_bbs to with_you. All imports
and dependencies must be updated from carrot_bbs/* to with_you/*.
This commit is contained in:
lafay
2026-04-22 16:01:59 +08:00
parent 38d628c696
commit 2f584c1f2c
149 changed files with 551 additions and 551 deletions

View File

@@ -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"
)

View File

@@ -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 {

View File

@@ -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缓存实现

View File

@@ -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 接口

View File

@@ -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)

View File

@@ -1,9 +1,9 @@
package dto
package dto
import (
"time"
"carrot_bbs/internal/model"
"with_you/internal/model"
)
// ==================== Call Request DTOs ====================

View File

@@ -1,7 +1,7 @@
package dto
package dto
import (
"carrot_bbs/internal/model"
"with_you/internal/model"
"time"
)

View File

@@ -1,7 +1,7 @@
package dto
package dto
import (
"carrot_bbs/internal/model"
"with_you/internal/model"
)
// ==================== Group 转换 ====================

View File

@@ -1,7 +1,7 @@
package dto
package dto
import (
"carrot_bbs/internal/model"
"with_you/internal/model"
)
// ==================== Message 转换 ====================

View File

@@ -1,7 +1,7 @@
package dto
package dto
import (
"carrot_bbs/internal/model"
"with_you/internal/model"
"strconv"
)

View File

@@ -1,7 +1,7 @@
package dto
package dto
import (
"carrot_bbs/internal/model"
"with_you/internal/model"
"context"
"encoding/json"
)

View File

@@ -1,7 +1,7 @@
package dto
package dto
import (
"carrot_bbs/internal/model"
"with_you/internal/model"
)
// ==================== 举报 DTOs ====================

View File

@@ -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 {

View File

@@ -1,11 +1,11 @@
package dto
package dto
import (
"encoding/json"
"fmt"
"slices"
"carrot_bbs/internal/model"
"with_you/internal/model"
)
// ParseSegmentData 解析Segment数据到目标结构体

View File

@@ -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 转换 ====================

View File

@@ -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"
)

View File

@@ -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"

View File

@@ -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"

View File

@@ -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"
)

View File

@@ -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"
)

View File

@@ -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"
)

View File

@@ -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"
)

View File

@@ -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"
)

View File

@@ -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"
)

View File

@@ -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"

View File

@@ -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"
)

View File

@@ -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"
)

View File

@@ -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 通话记录处理器

View File

@@ -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"
)

View File

@@ -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 评论处理器

View File

@@ -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 群组处理器

View File

@@ -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"
)

View File

@@ -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 消息处理器

View File

@@ -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 通知处理器

View File

@@ -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 帖子处理器

View File

@@ -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"
)

View File

@@ -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 二维码登录处理器

View File

@@ -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"

View File

@@ -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"
)

View File

@@ -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 {

View File

@@ -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 自定义表情处理器

View File

@@ -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 系统消息处理器

View File

@@ -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 上传处理器

View File

@@ -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 (

View File

@@ -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"
)

View File

@@ -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 投票处理器

View File

@@ -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{

View File

@@ -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"
)

View File

@@ -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 认证中间件

View File

@@ -1,10 +1,10 @@
package middleware
package middleware
import (
"slices"
"strings"
"carrot_bbs/internal/service"
"with_you/internal/service"
"github.com/gin-gonic/gin"
)

View File

@@ -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"
)

View File

@@ -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 通话类型

View File

@@ -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 会话类型

View File

@@ -1,11 +1,11 @@
package model
package model
import (
"time"
"gorm.io/gorm"
"carrot_bbs/internal/pkg/utils"
"with_you/internal/pkg/utils"
)
// DeviceType 设备类型

View File

@@ -1,10 +1,10 @@
package model
package model
import (
"strconv"
"time"
"carrot_bbs/internal/pkg/utils"
"with_you/internal/pkg/utils"
"gorm.io/gorm"
)

View File

@@ -1,10 +1,10 @@
package model
package model
import (
"strconv"
"time"
"carrot_bbs/internal/pkg/utils"
"with_you/internal/pkg/utils"
"gorm.io/gorm"
)

View File

@@ -1,10 +1,10 @@
package model
package model
import (
"strconv"
"time"
"carrot_bbs/internal/pkg/utils"
"with_you/internal/pkg/utils"
"gorm.io/gorm"
)

View File

@@ -1,10 +1,10 @@
package model
package model
import (
"strconv"
"time"
"carrot_bbs/internal/pkg/utils"
"with_you/internal/pkg/utils"
"gorm.io/gorm"
)

View File

@@ -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 依赖注入)

View File

@@ -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"
)
// 系统消息相关常量

View File

@@ -1,11 +1,11 @@
package model
package model
import (
"time"
"gorm.io/gorm"
"carrot_bbs/internal/pkg/utils"
"with_you/internal/pkg/utils"
)
// PushChannel 推送通道类型

View File

@@ -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 系统通知类型

View File

@@ -1,6 +1,6 @@
package email
package email
import "carrot_bbs/internal/config"
import "with_you/internal/config"
// Config SMTP 邮件配置(由应用配置转换)
type Config struct {

View File

@@ -1,11 +1,11 @@
package hook
package hook
import (
"context"
"strings"
"time"
"carrot_bbs/internal/repository"
"with_you/internal/repository"
"go.uber.org/zap"
)

View File

@@ -1,10 +1,10 @@
package hook
package hook
import (
"strings"
"time"
"carrot_bbs/internal/repository"
"with_you/internal/repository"
"go.uber.org/zap"
)

View File

@@ -1,6 +1,6 @@
package openai
package openai
import "carrot_bbs/internal/config"
import "with_you/internal/config"
// Config OpenAI 兼容接口配置
type Config struct {

View File

@@ -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客户端

View File

@@ -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 统一响应结构

View File

@@ -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客户端

View File

@@ -1,9 +1,9 @@
package repository
package repository
import (
"context"
"carrot_bbs/internal/model"
"with_you/internal/model"
"gorm.io/gorm"
)

View File

@@ -1,7 +1,7 @@
package repository
package repository
import (
"carrot_bbs/internal/model"
"with_you/internal/model"
"gorm.io/gorm"
)

View File

@@ -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"

View File

@@ -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"
)

View File

@@ -1,9 +1,9 @@
package repository
package repository
import (
"time"
"carrot_bbs/internal/model"
"with_you/internal/model"
"gorm.io/gorm"
)

View File

@@ -1,7 +1,7 @@
package repository
package repository
import (
"carrot_bbs/internal/model"
"with_you/internal/model"
"gorm.io/gorm"
)

View File

@@ -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"

View File

@@ -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"
)

View File

@@ -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"
)

View File

@@ -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"

View File

@@ -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"

View File

@@ -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"
)

View File

@@ -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"
)

View File

@@ -1,9 +1,9 @@
package repository
package repository
import (
"time"
"carrot_bbs/internal/model"
"with_you/internal/model"
"gorm.io/gorm"
)

View File

@@ -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"

View File

@@ -1,9 +1,9 @@
package repository
package repository
import (
"context"
"carrot_bbs/internal/model"
"with_you/internal/model"
"gorm.io/gorm"
)

View File

@@ -1,9 +1,9 @@
package repository
package repository
import (
"context"
"carrot_bbs/internal/model"
"with_you/internal/model"
"gorm.io/gorm"
)

View File

@@ -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"

View File

@@ -1,7 +1,7 @@
package repository
package repository
import (
"carrot_bbs/internal/model"
"with_you/internal/model"
"strings"
"gorm.io/gorm"

View File

@@ -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"
)

View File

@@ -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"

View File

@@ -1,7 +1,7 @@
package repository
package repository
import (
"carrot_bbs/internal/model"
"with_you/internal/model"
"gorm.io/gorm"
)

View File

@@ -1,7 +1,7 @@
package repository
package repository
import (
"carrot_bbs/internal/model"
"with_you/internal/model"
"strings"
"time"

View File

@@ -1,7 +1,7 @@
package repository
package repository
import (
"carrot_bbs/internal/model"
"with_you/internal/model"
"gorm.io/gorm"
)

View File

@@ -1,7 +1,7 @@
package repository
package repository
import (
"carrot_bbs/internal/model"
"with_you/internal/model"
"errors"
"gorm.io/gorm"

View File

@@ -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 路由配置

View File

@@ -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"
)

View File

@@ -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 管理端评论服务接口

View File

@@ -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"
)

View File

@@ -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 管理端群组服务接口

View File

@@ -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 管理端帖子服务接口

Some files were not shown because too many files have changed in this diff Show More