feat(core): 新增基础仓库接口及相关模型仓库定义

- 新增 BaseRepository 泛型接口,定义通用增删改查方法
- 实现 BaseRepo 结构体及其 Insert 方法
- 定义 ProviderRepository、ModelRepository、ChannelRepository、APIKeyRepository 接口,继承基础接口
- 将模型结构 JanusModel 和 JanusProvider 重命名为 Model 和 Provider
- 创建 ProviderRepo 结构体,组合基础仓库实现 Provider 仓库功能
This commit is contained in:
yangzhaohan
2026-07-15 00:06:54 +08:00
parent 0794474c04
commit a18e4847c2
5 changed files with 66 additions and 4 deletions
+10
View File
@@ -0,0 +1,10 @@
package repository
import (
"synoth.com/janus/internal/core"
"synoth.com/janus/internal/model"
)
type ProviderRepo struct {
core.BaseRepo[model.Provider]
}