yjp 1 anno fa
parent
commit
133645cf45
2 ha cambiato i file con 2 aggiunte e 0 eliminazioni
  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]
 }