소스 검색

添加注释

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