Skip to content

Commit e6ea5f6

Browse files
authored
fix: make swag error and build image error (#7351)
1 parent 842f08a commit e6ea5f6

File tree

2 files changed

+6
-6
lines changed

2 files changed

+6
-6
lines changed

backend/plugins/opsgenie/api/remote_api.go

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -104,7 +104,7 @@ func listOpsgenieRemoteScopes(
104104
// @Param connectionId path int false "connection ID"
105105
// @Param groupId query string false "group ID"
106106
// @Param pageToken query string false "page Token"
107-
// @Success 200 {object} RemoteScopesOutput
107+
// @Success 200 {object} dsmodels.DsRemoteApiScopeList[models.Service]
108108
// @Failure 400 {object} shared.ApiBody "Bad Request"
109109
// @Failure 500 {object} shared.ApiBody "Internal Error"
110110
// @Router /plugins/opsgenie/connections/{connectionId}/remote-scopes [GET]
@@ -121,7 +121,7 @@ func RemoteScopes(input *plugin.ApiResourceInput) (*plugin.ApiResourceOutput, er
121121
// @Param search query string false "search"
122122
// @Param page query int false "page number"
123123
// @Param pageSize query int false "page size per page"
124-
// @Success 200 {object} SearchRemoteScopesOutput
124+
// @Success 200 {object} dsmodels.DsRemoteApiScopeList[models.Service]
125125
// @Failure 400 {object} shared.ApiBody "Bad Request"
126126
// @Failure 500 {object} shared.ApiBody "Internal Error"
127127
// @Router /plugins/opsgenie/connections/{connectionId}/search-remote-scopes [GET]

backend/plugins/zentao/api/scope_api.go

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -33,8 +33,8 @@ type ScopeDetail api.ScopeDetail[models.ZentaoProject, models.ZentaoScopeConfig]
3333
// @Tags plugins/zentao
3434
// @Accept application/json
3535
// @Param connectionId path int true "connection ID"
36-
// @Param scope body ProjectScopeReq true "json"
37-
// @Success 200 {object} []ScopeDetails
36+
// @Param scope body PutScopesReqBody true "json"
37+
// @Success 200 {object} []models.ZentaoProject
3838
// @Failure 400 {object} shared.ApiBody "Bad Request"
3939
// @Failure 500 {object} shared.ApiBody "Internal Error"
4040
// @Router /plugins/zentao/connections/{connectionId}/scopes [PUT]
@@ -65,7 +65,7 @@ func PatchScope(input *plugin.ApiResourceInput) (*plugin.ApiResourceOutput, erro
6565
// @Param connectionId path int false "connection ID"
6666
// @Param searchTerm query string false "search term for scope name"
6767
// @Param blueprints query bool false "also return blueprints using these scopes as part of the payload"
68-
// @Success 200 {object} []ScopeDetails
68+
// @Success 200 {object} []ScopeDetail
6969
// @Failure 400 {object} shared.ApiBody "Bad Request"
7070
// @Failure 500 {object} shared.ApiBody "Internal Error"
7171
// @Router /plugins/gitlab/connections/{connectionId}/scopes [GET]
@@ -79,7 +79,7 @@ func GetScopes(input *plugin.ApiResourceInput) (*plugin.ApiResourceOutput, error
7979
// @Tags plugins/zentao
8080
// @Param connectionId path int true "connection ID"
8181
// @Param scopeId path int true "scope ID"
82-
// @Success 200 {object} ProjectScopeRes
82+
// @Success 200 {object} ScopeDetail
8383
// @Failure 400 {object} shared.ApiBody "Bad Request"
8484
// @Failure 500 {object} shared.ApiBody "Internal Error"
8585
// @Router /plugins/zentao/connections/{connectionId}/scopes/{scopeId} [GET]

0 commit comments

Comments
 (0)