Browse Source

添加注释

yjp 1 year ago
parent
commit
133645cf45
2 changed files with 2 additions and 0 deletions
  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类型
 	// 根据ID查询使用的请求参数,注意是WithID类型
 	GetByIDQueryParams request.WithID
 	GetByIDQueryParams request.WithID
 
 
+	// 可选配置项,通过WithXXX配置
 	options *Options[I]
 	options *Options[I]
 }
 }
 
 

+ 1 - 0
convenient/value_object/simple.go

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