# smart-core **Repository Path**: hubert_rust/smart-core ## Basic Information - **Project Name**: smart-core - **Description**: 和smart-core, smarat-common, smart-cluster, smart-front为一个整体 - **Primary Language**: Unknown - **License**: Not specified - **Default Branch**: master - **Homepage**: None - **GVP Project**: No ## Statistics - **Stars**: 0 - **Forks**: 0 - **Created**: 2026-05-17 - **Last Updated**: 2026-05-17 ## Categories & Tags **Categories**: Uncategorized **Tags**: None ## README # smart-core 多服务共用的 **Go 基建库**(无业务域):配置子结构、MySQL/GORM 连接池、Redis、Zap 日志、Gin HTTP 辅助。 - **smart-cluster**:应用配置在 `smart-cluster/internal/config`,其中 `server` / `database` / `redis` / `log` 字段类型来自本模块 `smart-core/config`;DB/Redis/Logger 初始化使用 `smart-core/database`、`smart-core/redis`、`smart-core/logger`;HTTP 响应封装使用 `smart-core/httpgin`。 - **smart-common**:按需 `require smart-core`(例如 `gormstore.NewStoreFromMySQL` 使用 `smart-core/database.OpenGORM`)。 依赖方向:`smart-core` 不依赖 `smart-common` / `smart-cluster`。 本地与 `smart-cluster`、`smart-common` 同级目录时,在消费者 `go.mod` 中: ```go require smart-core v0.0.0 replace smart-core => ../smart-core ```