yjp 1 gadu atpakaļ
vecāks
revīzija
133645cf45

+ 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]
 }