This is an automated email from the ASF dual-hosted git repository.

LinkinStars pushed a commit to branch dev
in repository https://gitbox.apache.org/repos/asf/answer.git

commit 2836d0ea819906fd08574261d4f3fd696f9967cb
Author: hgaol <[email protected]>
AuthorDate: Wed Apr 22 22:46:24 2026 +0800

    chore: add Apache License header to multiple files
---
 cmd/wire_gen.go                             | 10 +++++-----
 docs/docs.go                                | 19 +++++++++++++++++++
 docs/swagger.yaml                           | 17 +++++++++++++++++
 internal/service/mock/siteinfo_repo_mock.go | 19 +++++++++++++++++++
 4 files changed, 60 insertions(+), 5 deletions(-)

diff --git a/cmd/wire_gen.go b/cmd/wire_gen.go
index 7a8176ea..d020e3e5 100644
--- a/cmd/wire_gen.go
+++ b/cmd/wire_gen.go
@@ -200,10 +200,10 @@ func initApplication(debug bool, serverConf *conf.Server, 
dbConf *data.Database,
        objService := object_info.NewObjService(answerRepo, questionRepo, 
commentCommonRepo, tagCommonRepo, tagCommonService)
        noticequeueService := noticequeue.NewService()
        externalService := noticequeue.NewExternalService()
-       vectorSyncService := vector_sync.NewService(dataData)
        reviewRepo := review.NewReviewRepo(dataData)
-       reviewService := review2.NewReviewService(reviewRepo, objService, 
userCommon, userRepo, questionRepo, answerRepo, userRoleRelService, 
externalService, tagCommonService, questionCommon, noticequeueService, 
siteInfoCommonService, commentCommonRepo, vectorSyncService)
-       commentService := comment2.NewCommentService(commentRepo, 
commentCommonRepo, userCommon, objService, voteRepo, emailService, userRepo, 
noticequeueService, externalService, service, eventqueueService, reviewService, 
vectorSyncService)
+       vector_syncService := vector_sync.NewService(dataData)
+       reviewService := review2.NewReviewService(reviewRepo, objService, 
userCommon, userRepo, questionRepo, answerRepo, userRoleRelService, 
externalService, tagCommonService, questionCommon, noticequeueService, 
siteInfoCommonService, commentCommonRepo, vector_syncService)
+       commentService := comment2.NewCommentService(commentRepo, 
commentCommonRepo, userCommon, objService, voteRepo, emailService, userRepo, 
noticequeueService, externalService, service, eventqueueService, reviewService, 
vector_syncService)
        rolePowerRelRepo := role.NewRolePowerRelRepo(dataData)
        rolePowerRelService := role2.NewRolePowerRelService(rolePowerRelRepo, 
userRoleRelService)
        rankService := rank2.NewRankService(userCommon, userRankRepo, 
objService, userRoleRelService, rolePowerRelService, configService)
@@ -215,8 +215,8 @@ func initApplication(debug bool, serverConf *conf.Server, 
dbConf *data.Database,
        answerActivityRepo := activity.NewAnswerActivityRepo(dataData, 
activityRepo, userRankRepo, noticequeueService)
        answerActivityService := 
activity2.NewAnswerActivityService(answerActivityRepo, configService)
        externalNotificationService := 
notification.NewExternalNotificationService(dataData, 
userNotificationConfigRepo, followRepo, emailService, userRepo, 
externalService, userExternalLoginRepo, siteInfoCommonService)
-       questionService := content.NewQuestionService(activityRepo, 
questionRepo, answerRepo, tagCommonService, tagService, questionCommon, 
userCommon, userRepo, userRoleRelService, revisionService, metaCommonService, 
collectionCommon, answerActivityService, emailService, noticequeueService, 
externalService, service, siteInfoCommonService, externalNotificationService, 
reviewService, configService, eventqueueService, reviewRepo, vectorSyncService)
-       answerService := content.NewAnswerService(answerRepo, questionRepo, 
questionCommon, userCommon, collectionCommon, userRepo, revisionService, 
answerActivityService, answerCommon, voteRepo, emailService, 
userRoleRelService, noticequeueService, externalService, service, 
reviewService, eventqueueService, vectorSyncService)
+       questionService := content.NewQuestionService(activityRepo, 
questionRepo, answerRepo, tagCommonService, tagService, questionCommon, 
userCommon, userRepo, userRoleRelService, revisionService, metaCommonService, 
collectionCommon, answerActivityService, emailService, noticequeueService, 
externalService, service, siteInfoCommonService, externalNotificationService, 
reviewService, configService, eventqueueService, reviewRepo, vector_syncService)
+       answerService := content.NewAnswerService(answerRepo, questionRepo, 
questionCommon, userCommon, collectionCommon, userRepo, revisionService, 
answerActivityService, answerCommon, voteRepo, emailService, 
userRoleRelService, noticequeueService, externalService, service, 
reviewService, eventqueueService, vector_syncService)
        reportHandle := report_handle.NewReportHandle(questionService, 
answerService, commentService)
        reportService := report2.NewReportService(reportRepo, objService, 
userCommon, answerRepo, questionRepo, commentCommonRepo, reportHandle, 
configService, eventqueueService)
        reportController := controller.NewReportController(reportService, 
rankService, captchaService)
diff --git a/docs/docs.go b/docs/docs.go
index 7fe1643e..57a23d43 100644
--- a/docs/docs.go
+++ b/docs/docs.go
@@ -1,3 +1,22 @@
+/*
+ * Licensed to the Apache Software Foundation (ASF) under one
+ * or more contributor license agreements.  See the NOTICE file
+ * distributed with this work for additional information
+ * regarding copyright ownership.  The ASF licenses this file
+ * to you under the Apache License, Version 2.0 (the
+ * "License"); you may not use this file except in compliance
+ * with the License.  You may obtain a copy of the License at
+ *
+ *   http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing,
+ * software distributed under the License is distributed on an
+ * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
+ * KIND, either express or implied.  See the License for the
+ * specific language governing permissions and limitations
+ * under the License.
+ */
+
 // Package docs Code generated by swaggo/swag. DO NOT EDIT
 package docs
 
diff --git a/docs/swagger.yaml b/docs/swagger.yaml
index cc5711b4..7a7adb68 100644
--- a/docs/swagger.yaml
+++ b/docs/swagger.yaml
@@ -1,3 +1,20 @@
+# Licensed to the Apache Software Foundation (ASF) under one
+# or more contributor license agreements.  See the NOTICE file
+# distributed with this work for additional information
+# regarding copyright ownership.  The ASF licenses this file
+# to you under the Apache License, Version 2.0 (the
+# "License"); you may not use this file except in compliance
+# with the License.  You may obtain a copy of the License at
+#
+#   http://www.apache.org/licenses/LICENSE-2.0
+#
+# Unless required by applicable law or agreed to in writing,
+# software distributed under the License is distributed on an
+# "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
+# KIND, either express or implied.  See the License for the
+# specific language governing permissions and limitations
+# under the License.
+
 basePath: /
 definitions:
   constant.NotificationChannelKey:
diff --git a/internal/service/mock/siteinfo_repo_mock.go 
b/internal/service/mock/siteinfo_repo_mock.go
index 9438be66..ad3a170a 100644
--- a/internal/service/mock/siteinfo_repo_mock.go
+++ b/internal/service/mock/siteinfo_repo_mock.go
@@ -1,3 +1,22 @@
+/*
+ * Licensed to the Apache Software Foundation (ASF) under one
+ * or more contributor license agreements.  See the NOTICE file
+ * distributed with this work for additional information
+ * regarding copyright ownership.  The ASF licenses this file
+ * to you under the Apache License, Version 2.0 (the
+ * "License"); you may not use this file except in compliance
+ * with the License.  You may obtain a copy of the License at
+ *
+ *   http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing,
+ * software distributed under the License is distributed on an
+ * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
+ * KIND, either express or implied.  See the License for the
+ * specific language governing permissions and limitations
+ * under the License.
+ */
+
 // Code generated by MockGen. DO NOT EDIT.
 // Source: ./siteinfo_service.go
 //

Reply via email to