From 0238ec9a01cac4119431e26d77afd87e99ef801f Mon Sep 17 00:00:00 2001 From: maguodong Date: Sat, 28 Mar 2026 18:17:31 +0800 Subject: [PATCH] =?UTF-8?q?docs(curd):=20=E6=9B=B4=E6=96=B0Crud=E7=BB=93?= =?UTF-8?q?=E6=9E=84=E4=BD=93=E6=B3=A8=E9=87=8A=E6=96=87=E6=A1=A3?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit - 为Crud结构体添加C参数的说明 - 明确C参数为对应模型结构体的字段结构体 - 完善泛型CURD封装的功能描述 --- crud/curd.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/crud/curd.go b/crud/curd.go index 5a782cf..bc871ee 100644 --- a/crud/curd.go +++ b/crud/curd.go @@ -48,7 +48,7 @@ var pageInfo = []string{ } // Crud -------------------------- 泛型CURD核心结构体 -------------------------- -// Crud GORM 版本的泛型CURD封装,R为对应的模型结构体 +// Crud GORM 版本的泛型CURD封装,R为对应的模型结构体, C为对应模型结构体的字段结构体 type Crud[R any, C any] struct { Dao IDao[C] }