From 0d69ec3d98f1c7fc83f63ae67ce0db3d8d5ddd48 Mon Sep 17 00:00:00 2001 From: iwanghc Date: Mon, 8 Jul 2024 14:31:42 +0800 Subject: [PATCH] modify: merge configuration group --- api/swagger.json | 18 +++++++++--------- api/swagger.yaml | 18 +++++++++--------- internal/apiserver/service/dms_controller.go | 18 +++++++++--------- 3 files changed, 27 insertions(+), 27 deletions(-) diff --git a/api/swagger.json b/api/swagger.json index 910298d2..8b40dac6 100644 --- a/api/swagger.json +++ b/api/swagger.json @@ -241,7 +241,7 @@ "/v1/dms/configurations/license": { "get": { "tags": [ - "Configuration_License" + "Configuration" ], "summary": "get license.", "operationId": "GetLicense", @@ -265,7 +265,7 @@ "multipart/form-data" ], "tags": [ - "Configuration_License" + "Configuration" ], "summary": "import license.", "operationId": "SetLicense", @@ -300,7 +300,7 @@ "multipart/form-data" ], "tags": [ - "Configuration_License" + "Configuration" ], "summary": "notify message.", "operationId": "CheckLicense", @@ -332,7 +332,7 @@ "/v1/dms/configurations/license/info": { "get": { "tags": [ - "Configuration_License" + "Configuration" ], "summary": "get generate license info.", "operationId": "GetLicenseInfo", @@ -352,7 +352,7 @@ "/v1/dms/configurations/license/usage": { "get": { "tags": [ - "Configuration_License" + "Configuration" ], "summary": "get license usage.", "operationId": "GetLicenseUsage", @@ -375,7 +375,7 @@ "/v1/dms/configurations/oauth2": { "get": { "tags": [ - "Configuration_OAuth2" + "Configuration" ], "summary": "Get Oauth2 configuration.", "operationId": "GetOauth2Configuration", @@ -396,7 +396,7 @@ }, "patch": { "tags": [ - "Configuration_OAuth2" + "Configuration" ], "summary": "Update Oauth2 configuration..", "operationId": "UpdateOauth2Configuration", @@ -977,7 +977,7 @@ "/v1/dms/plugins": { "post": { "tags": [ - "dmsPlugin" + "DMSPlugin" ], "summary": "Register dms plugin.", "operationId": "RegisterDMSPlugin", @@ -3518,7 +3518,7 @@ "/v1/dms/proxys": { "post": { "tags": [ - "dmsProxy" + "DMSProxy" ], "summary": "Register dms proxy target.", "operationId": "RegisterDMSProxyTarget", diff --git a/api/swagger.yaml b/api/swagger.yaml index b5c9d66d..bc61fe7c 100644 --- a/api/swagger.yaml +++ b/api/swagger.yaml @@ -4518,7 +4518,7 @@ paths: $ref: '#/definitions/GenericResp' summary: get license. tags: - - Configuration_License + - Configuration post: consumes: - multipart/form-data @@ -4540,7 +4540,7 @@ paths: $ref: '#/definitions/GenericResp' summary: import license. tags: - - Configuration_License + - Configuration /v1/dms/configurations/license/check: post: consumes: @@ -4563,7 +4563,7 @@ paths: $ref: '#/definitions/GenericResp' summary: notify message. tags: - - Configuration_License + - Configuration /v1/dms/configurations/license/info: get: operationId: GetLicenseInfo @@ -4576,7 +4576,7 @@ paths: $ref: '#/definitions/GenericResp' summary: get generate license info. tags: - - Configuration_License + - Configuration /v1/dms/configurations/license/usage: get: operationId: GetLicenseUsage @@ -4591,7 +4591,7 @@ paths: $ref: '#/definitions/GenericResp' summary: get license usage. tags: - - Configuration_License + - Configuration /v1/dms/configurations/oauth2: get: operationId: GetOauth2Configuration @@ -4606,7 +4606,7 @@ paths: $ref: '#/definitions/GenericResp' summary: Get Oauth2 configuration. tags: - - Configuration_OAuth2 + - Configuration patch: operationId: UpdateOauth2Configuration parameters: @@ -4627,7 +4627,7 @@ paths: $ref: '#/definitions/GenericResp' summary: Update Oauth2 configuration.. tags: - - Configuration_OAuth2 + - Configuration /v1/dms/configurations/smtp: get: operationId: GetSMTPConfiguration @@ -5017,7 +5017,7 @@ paths: $ref: '#/definitions/GenericResp' summary: Register dms plugin. tags: - - dmsPlugin + - DMSPlugin /v1/dms/projects: get: operationId: ListProjects @@ -6761,7 +6761,7 @@ paths: $ref: '#/definitions/GenericResp' summary: Register dms proxy target. tags: - - dmsProxy + - DMSProxy /v1/dms/roles: get: operationId: ListRoles diff --git a/internal/apiserver/service/dms_controller.go b/internal/apiserver/service/dms_controller.go index 80e85129..5314f446 100644 --- a/internal/apiserver/service/dms_controller.go +++ b/internal/apiserver/service/dms_controller.go @@ -2218,7 +2218,7 @@ func (a *DMSController) DBServicesConnection(c echo.Context) error { return NewOkRespWithReply(c, reply) } -// swagger:operation POST /v1/dms/proxys dmsProxy RegisterDMSProxyTarget +// swagger:operation POST /v1/dms/proxys DMSProxy RegisterDMSProxyTarget // // Register dms proxy target. // @@ -2259,7 +2259,7 @@ func (d *DMSController) RegisterDMSProxyTarget(c echo.Context) error { return NewOkResp(c) } -// swagger:operation POST /v1/dms/plugins dmsPlugin RegisterDMSPlugin +// swagger:operation POST /v1/dms/plugins DMSPlugin RegisterDMSPlugin // // Register dms plugin. // @@ -2300,7 +2300,7 @@ func (d *DMSController) RegisterDMSPlugin(c echo.Context) error { return NewOkResp(c) } -// swagger:route GET /v1/dms/configurations/oauth2 Configuration_OAuth2 GetOauth2Configuration +// swagger:route GET /v1/dms/configurations/oauth2 Configuration GetOauth2Configuration // // Get Oauth2 configuration. // @@ -2315,7 +2315,7 @@ func (d *DMSController) GetOauth2Configuration(c echo.Context) error { return NewOkRespWithReply(c, reply) } -// swagger:operation PATCH /v1/dms/configurations/oauth2 Configuration_OAuth2 UpdateOauth2Configuration +// swagger:operation PATCH /v1/dms/configurations/oauth2 Configuration UpdateOauth2Configuration // // Update Oauth2 configuration.. // @@ -2904,7 +2904,7 @@ func (d *DMSController) UpdateCompanyNotice(c echo.Context) error { return NewOkResp(c) } -// swagger:route GET /v1/dms/configurations/license Configuration_License GetLicense +// swagger:route GET /v1/dms/configurations/license Configuration GetLicense // // get license. // @@ -2926,7 +2926,7 @@ const ( DBServicesFileParamKey = "db_services_file" ) -// swagger:route GET /v1/dms/configurations/license/info Configuration_License GetLicenseInfo +// swagger:route GET /v1/dms/configurations/license/info Configuration GetLicenseInfo // // get generate license info. // @@ -2944,7 +2944,7 @@ func (d *DMSController) GetLicenseInfo(c echo.Context) error { return c.Blob(http.StatusOK, echo.MIMEOctetStream, []byte(data)) } -// swagger:route GET /v1/dms/configurations/license/usage Configuration_License GetLicenseUsage +// swagger:route GET /v1/dms/configurations/license/usage Configuration GetLicenseUsage // // get license usage. // @@ -2960,7 +2960,7 @@ func (d *DMSController) GetLicenseUsage(c echo.Context) error { return NewOkRespWithReply(c, usage) } -// swagger:route POST /v1/dms/configurations/license Configuration_License SetLicense +// swagger:route POST /v1/dms/configurations/license Configuration SetLicense // // import license. // @@ -2985,7 +2985,7 @@ func (d *DMSController) SetLicense(c echo.Context) error { return NewOkResp(c) } -// swagger:route POST /v1/dms/configurations/license/check Configuration_License CheckLicense +// swagger:route POST /v1/dms/configurations/license/check Configuration CheckLicense // // notify message. //