docs(curd): 更新Crud结构体注释文档

- 为Crud结构体添加C参数的说明
- 明确C参数为对应模型结构体的字段结构体
- 完善泛型CURD封装的功能描述
This commit is contained in:
maguodong
2026-03-28 18:17:31 +08:00
parent 1cc976ed72
commit 0238ec9a01
+1 -1
View File
@@ -48,7 +48,7 @@ var pageInfo = []string{
} }
// Crud -------------------------- 泛型CURD核心结构体 -------------------------- // Crud -------------------------- 泛型CURD核心结构体 --------------------------
// Crud GORM 版本的泛型CURD封装,R为对应的模型结构体 // Crud GORM 版本的泛型CURD封装,R为对应的模型结构体, C为对应模型结构体的字段结构体
type Crud[R any, C any] struct { type Crud[R any, C any] struct {
Dao IDao[C] Dao IDao[C]
} }