浏览代码

添加注释

yjp 1 年之前
父节点
当前提交
133645cf45
共有 2 个文件被更改,包括 2 次插入0 次删除
  1. 1 0
      convenient/entity/simple.go
  2. 1 0
      convenient/value_object/simple.go

+ 1 - 0
convenient/entity/simple.go

@@ -40,6 +40,7 @@ type Simple[I any] struct {
 	// 根据ID查询使用的请求参数,注意是WithID类型
 	GetByIDQueryParams request.WithID
 
+	// 可选配置项,通过WithXXX配置
 	options *Options[I]
 }
 

+ 1 - 0
convenient/value_object/simple.go

@@ -34,6 +34,7 @@ type Simple[I any] struct {
 	// 查询使用的请求参数,注意是Query类型
 	QueryParams request.Query
 
+	// 可选配置项,通过WithXXX配置
 	options *Options[I]
 }