You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@devlake.apache.org by ab...@apache.org on 2024/04/19 03:48:11 UTC

(incubator-devlake) branch main updated: fix: make swag error and build image error (#7351)

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

abeizn pushed a commit to branch main
in repository https://gitbox.apache.org/repos/asf/incubator-devlake.git


The following commit(s) were added to refs/heads/main by this push:
     new e6ea5f66c fix: make swag error and build image error (#7351)
e6ea5f66c is described below

commit e6ea5f66c566e6b9a1bc702df9518b4fd2c1b48d
Author: abeizn <zi...@merico.dev>
AuthorDate: Fri Apr 19 11:48:07 2024 +0800

    fix: make swag error and build image error (#7351)
---
 backend/plugins/opsgenie/api/remote_api.go | 4 ++--
 backend/plugins/zentao/api/scope_api.go    | 8 ++++----
 2 files changed, 6 insertions(+), 6 deletions(-)

diff --git a/backend/plugins/opsgenie/api/remote_api.go b/backend/plugins/opsgenie/api/remote_api.go
index bc3e1999f..2a5b16171 100644
--- a/backend/plugins/opsgenie/api/remote_api.go
+++ b/backend/plugins/opsgenie/api/remote_api.go
@@ -104,7 +104,7 @@ func listOpsgenieRemoteScopes(
 // @Param connectionId path int false "connection ID"
 // @Param groupId query string false "group ID"
 // @Param pageToken query string false "page Token"
-// @Success 200  {object} RemoteScopesOutput
+// @Success 200  {object} dsmodels.DsRemoteApiScopeList[models.Service]
 // @Failure 400  {object} shared.ApiBody "Bad Request"
 // @Failure 500  {object} shared.ApiBody "Internal Error"
 // @Router /plugins/opsgenie/connections/{connectionId}/remote-scopes [GET]
@@ -121,7 +121,7 @@ func RemoteScopes(input *plugin.ApiResourceInput) (*plugin.ApiResourceOutput, er
 // @Param search query string false "search"
 // @Param page query int false "page number"
 // @Param pageSize query int false "page size per page"
-// @Success 200  {object} SearchRemoteScopesOutput
+// @Success 200  {object} dsmodels.DsRemoteApiScopeList[models.Service]
 // @Failure 400  {object} shared.ApiBody "Bad Request"
 // @Failure 500  {object} shared.ApiBody "Internal Error"
 // @Router /plugins/opsgenie/connections/{connectionId}/search-remote-scopes [GET]
diff --git a/backend/plugins/zentao/api/scope_api.go b/backend/plugins/zentao/api/scope_api.go
index a2a18f4f0..7c9247e3e 100644
--- a/backend/plugins/zentao/api/scope_api.go
+++ b/backend/plugins/zentao/api/scope_api.go
@@ -33,8 +33,8 @@ type ScopeDetail api.ScopeDetail[models.ZentaoProject, models.ZentaoScopeConfig]
 // @Tags plugins/zentao
 // @Accept application/json
 // @Param connectionId path int true "connection ID"
-// @Param scope body ProjectScopeReq true "json"
-// @Success 200  {object} []ScopeDetails
+// @Param scope body PutScopesReqBody true "json"
+// @Success 200  {object} []models.ZentaoProject
 // @Failure 400  {object} shared.ApiBody "Bad Request"
 // @Failure 500  {object} shared.ApiBody "Internal Error"
 // @Router /plugins/zentao/connections/{connectionId}/scopes [PUT]
@@ -65,7 +65,7 @@ func PatchScope(input *plugin.ApiResourceInput) (*plugin.ApiResourceOutput, erro
 // @Param connectionId path int false "connection ID"
 // @Param searchTerm query string false "search term for scope name"
 // @Param blueprints query bool false "also return blueprints using these scopes as part of the payload"
-// @Success 200  {object} []ScopeDetails
+// @Success 200  {object} []ScopeDetail
 // @Failure 400  {object} shared.ApiBody "Bad Request"
 // @Failure 500  {object} shared.ApiBody "Internal Error"
 // @Router /plugins/gitlab/connections/{connectionId}/scopes [GET]
@@ -79,7 +79,7 @@ func GetScopes(input *plugin.ApiResourceInput) (*plugin.ApiResourceOutput, error
 // @Tags plugins/zentao
 // @Param connectionId path int true "connection ID"
 // @Param scopeId path int true "scope ID"
-// @Success 200  {object} ProjectScopeRes
+// @Success 200  {object} ScopeDetail
 // @Failure 400  {object} shared.ApiBody "Bad Request"
 // @Failure 500  {object} shared.ApiBody "Internal Error"
 // @Router /plugins/zentao/connections/{connectionId}/scopes/{scopeId} [GET]