Skip to content

Commit

Permalink
fix: make swag error and build image error (#7351)
Browse files Browse the repository at this point in the history
  • Loading branch information
abeizn authored Apr 19, 2024
1 parent 842f08a commit e6ea5f6
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 6 deletions.
4 changes: 2 additions & 2 deletions backend/plugins/opsgenie/api/remote_api.go
Original file line number Diff line number Diff line change
Expand Up @@ -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]
Expand All @@ -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]
Expand Down
8 changes: 4 additions & 4 deletions backend/plugins/zentao/api/scope_api.go
Original file line number Diff line number Diff line change
Expand Up @@ -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]
Expand Down Expand Up @@ -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]
Expand All @@ -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]
Expand Down

0 comments on commit e6ea5f6

Please sign in to comment.