From 81d963dd306e094296661d9a6ee09027550b8685 Mon Sep 17 00:00:00 2001 From: heedaeshin Date: Thu, 22 Aug 2024 15:03:38 +0900 Subject: [PATCH] update : swwagger docs gcp param update --- docker-compose.yaml | 1 + websrc/controllers/generateHandlers.go | 4 ++-- websrc/controllers/migrationGCPHandlers.go | 4 ++++ websrc/controllers/migrationHandlers.go | 2 ++ websrc/controllers/migrationNCPHandlers.go | 1 + websrc/controllers/migrationNoSqlHandlers.go | 5 +++++ websrc/controllers/migrationS3Handlers.go | 1 + 7 files changed, 16 insertions(+), 2 deletions(-) diff --git a/docker-compose.yaml b/docker-compose.yaml index 3f2194d..1620c2e 100644 --- a/docker-compose.yaml +++ b/docker-compose.yaml @@ -29,6 +29,7 @@ services: restart : always volumes: - ./log:/app/log/ + - /etc/localtime:/etc/localtime:ro env_file: - .env diff --git a/websrc/controllers/generateHandlers.go b/websrc/controllers/generateHandlers.go index 5e2487b..08f301a 100644 --- a/websrc/controllers/generateHandlers.go +++ b/websrc/controllers/generateHandlers.go @@ -184,7 +184,7 @@ func GenerateS3PostHandler(ctx echo.Context) error { // @Accept json // @Produce json // @Param RequestBody body GenDataParams true "Parameters required to generate test data" -// @Param CredentialGCP formData file true "Parameters required to generate test data" +// @Param gcpCredential formData file true "Parameters required to generate test data" // @Success 200 {object} models.BasicResponse "Successfully generated test data" // @Failure 500 {object} models.BasicResponse "Internal Server Error" // @Router /generate/gcp [post] @@ -484,7 +484,7 @@ func GenerateDynamoDBPostHandler(ctx echo.Context) error { // @Accept json // @Produce json // @Param RequestBody body GenDataParams true "Parameters required to generate test data" -// @Param CredentialGCP formData file true "Parameters required to generate test data" +// @Param gcpCredential formData file true "Parameters required to generate test data" // @Success 200 {object} models.BasicResponse "Successfully generated test data" // @Failure 500 {object} models.BasicResponse "Internal Server Error" // @Router /generate/firestore [post] diff --git a/websrc/controllers/migrationGCPHandlers.go b/websrc/controllers/migrationGCPHandlers.go index 10a9c83..34ae574 100644 --- a/websrc/controllers/migrationGCPHandlers.go +++ b/websrc/controllers/migrationGCPHandlers.go @@ -32,6 +32,7 @@ import ( // @Accept json // @Produce json // @Param RequestBody body MigrationForm true "Parameters required for migration" +// @Param gcpCredential formData file true "Parameters required to generate test data" // @Success 200 {object} models.BasicResponse "Successfully migrated data" // @Failure 400 {object} models.BasicResponse "Invalid Request" // @Failure 500 {object} models.BasicResponse "Internal Server Error" @@ -97,6 +98,7 @@ func MigrationGCPToLinuxPostHandler(ctx echo.Context) error { // @Accept json // @Produce json // @Param RequestBody body MigrationForm true "Parameters required for migration" +// @Param gcpCredential formData file true "Parameters required to generate test data" // @Success 200 {object} models.BasicResponse "Successfully migrated data" // @Failure 400 {object} models.BasicResponse "Invalid Request" // @Failure 500 {object} models.BasicResponse "Internal Server Error" @@ -162,6 +164,7 @@ func MigrationGCPToWindowsPostHandler(ctx echo.Context) error { // @Accept json // @Produce json // @Param RequestBody body MigrationForm true "Parameters required for migration" +// @Param gcpCredential formData file true "Parameters required to generate test data" // @Success 200 {object} models.BasicResponse "Successfully migrated data" // @Failure 500 {object} models.BasicResponse "Internal Server Error" // @Router /gcp/s3 [post] @@ -232,6 +235,7 @@ func MigrationGCPToS3PostHandler(ctx echo.Context) error { // @Accept json // @Produce json // @Param RequestBody body MigrationForm true "Parameters required for migration" +// @Param gcpCredential formData file true "Parameters required to generate test data" // @Success 200 {object} models.BasicResponse "Successfully migrated data" // @Failure 500 {object} models.BasicResponse "Internal Server Error" // @Router /gcp/ncp [post] diff --git a/websrc/controllers/migrationHandlers.go b/websrc/controllers/migrationHandlers.go index a6e2131..f148188 100644 --- a/websrc/controllers/migrationHandlers.go +++ b/websrc/controllers/migrationHandlers.go @@ -87,6 +87,7 @@ func MigrationLinuxToS3PostHandler(ctx echo.Context) error { // @Accept json // @Produce json // @Param RequestBody body MigrationForm true "Parameters required for migration" +// @Param gcpCredential formData file true "Parameters required to generate test data" // @Success 200 {object} models.BasicResponse "Successfully migrated data" // @Failure 400 {object} models.BasicResponse "Invalid Request" // @Failure 500 {object} models.BasicResponse "Internal Server Error" @@ -273,6 +274,7 @@ func MigrationWindowsToS3PostHandler(ctx echo.Context) error { // @Accept json // @Produce json // @Param RequestBody body MigrationForm true "Parameters required for migration" +// @Param gcpCredential formData file true "Parameters required to generate test data" // @Success 200 {object} models.BasicResponse "Successfully migrated data" // @Failure 400 {object} models.BasicResponse "Invalid Request" // @Failure 500 {object} models.BasicResponse "Internal Server Error" diff --git a/websrc/controllers/migrationNCPHandlers.go b/websrc/controllers/migrationNCPHandlers.go index 1691e48..f36c130 100644 --- a/websrc/controllers/migrationNCPHandlers.go +++ b/websrc/controllers/migrationNCPHandlers.go @@ -204,6 +204,7 @@ func MigrationNCPToS3PostHandler(ctx echo.Context) error { // @Accept json // @Produce json // @Param RequestBody body MigrationForm true "Parameters required for migration" +// @Param gcpCredential formData file true "Parameters required to generate test data" // @Success 200 {object} models.BasicResponse "Successfully migrated data" // @Failure 500 {object} models.BasicResponse "Internal Server Error" // @Router /ncp/gcp [post] diff --git a/websrc/controllers/migrationNoSqlHandlers.go b/websrc/controllers/migrationNoSqlHandlers.go index 295548a..8287c66 100644 --- a/websrc/controllers/migrationNoSqlHandlers.go +++ b/websrc/controllers/migrationNoSqlHandlers.go @@ -31,6 +31,7 @@ import ( // @Accept json // @Produce json // @Param RequestBody body MigrationForm true "Parameters required for migration" +// @Param gcpCredential formData file true "Parameters required to generate test data" // @Success 200 {object} models.BasicResponse "Successfully migrated data" // @Failure 500 {object} models.BasicResponse "Internal Server Error" // @Router /dynamodb/firestore [post] @@ -99,6 +100,7 @@ func MigrationDynamoDBToFirestorePostHandler(ctx echo.Context) error { // @Accept json // @Produce json // @Param RequestBody body MigrationForm true "Parameters required for migration" +// @Param gcpCredential formData file true "Parameters required to generate test data" // @Success 200 {object} models.BasicResponse "Successfully migrated data" // @Failure 500 {object} models.BasicResponse "Internal Server Error" // @Router /dynamodb/mongodb [post] @@ -157,6 +159,7 @@ func MigrationDynamoDBToMongoDBPostHandler(ctx echo.Context) error { // @Accept json // @Produce json // @Param RequestBody body MigrationForm true "Parameters required for migration" +// @Param gcpCredential formData file true "Parameters required to generate test data" // @Success 200 {object} models.BasicResponse "Successfully migrated data" // @Failure 500 {object} models.BasicResponse "Internal Server Error" // @Router /firestore/dynamodb [post] @@ -225,6 +228,7 @@ func MigrationFirestoreToDynamoDBPostHandler(ctx echo.Context) error { // @Accept json // @Produce json // @Param RequestBody body MigrationForm true "Parameters required for migration" +// @Param gcpCredential formData file true "Parameters required to generate test data" // @Success 200 {object} models.BasicResponse "Successfully migrated data" // @Failure 500 {object} models.BasicResponse "Internal Server Error" // @Router /firestore/mongodb [post] @@ -352,6 +356,7 @@ func MigrationMongoDBToDynamoDBPostHandler(ctx echo.Context) error { // @Accept json // @Produce json // @Param RequestBody body MigrationForm true "Parameters required for migration" +// @Param gcpCredential formData file true "Parameters required to generate test data" // @Success 200 {object} models.BasicResponse "Successfully migrated data" // @Failure 500 {object} models.BasicResponse "Internal Server Error" // @Router /mongodb/firestore [post] diff --git a/websrc/controllers/migrationS3Handlers.go b/websrc/controllers/migrationS3Handlers.go index 036a34d..2aeeb6c 100644 --- a/websrc/controllers/migrationS3Handlers.go +++ b/websrc/controllers/migrationS3Handlers.go @@ -141,6 +141,7 @@ func MigrationS3ToWindowsPostHandler(ctx echo.Context) error { // @Accept json // @Produce json // @Param RequestBody body MigrationForm true "Parameters required for migration" +// @Param gcpCredential formData file true "Parameters required to generate test data" // @Success 200 {object} models.BasicResponse "Successfully migrated data" // @Failure 500 {object} models.BasicResponse "Internal Server Error" // @Router /s3/gcp [post]