From 3c80b710af51015d2df459dabffb3b9438c4b6c2 Mon Sep 17 00:00:00 2001 From: "aditya.siregar" Date: Tue, 4 Mar 2025 20:36:17 +0700 Subject: [PATCH] Update Infra --- Makefile | 2 +- README.md | 4 +- go.mod | 2 +- infra/enaklopos.development.yaml | 28 ++++++------ internal/app/server.go | 4 +- internal/common/db/database.go | 2 +- internal/common/http/http.go | 2 +- internal/common/logger/logger.go | 2 +- internal/common/mycontext/kinoscontext.go | 4 +- internal/entity/auth.go | 4 +- internal/entity/partner.go | 4 +- internal/entity/product.go | 2 +- internal/entity/studio.go | 2 +- internal/entity/user.go | 4 +- internal/handlers/http/auth/auth.go | 10 ++--- internal/handlers/http/balance/balance.go | 10 ++--- internal/handlers/http/customerauth/auth.go | 8 ++-- internal/handlers/http/customerorder/order.go | 12 ++--- internal/handlers/http/discovery/discover.go | 10 ++--- internal/handlers/http/event/event.go | 10 ++--- internal/handlers/http/license/license.go | 10 ++--- internal/handlers/http/linqu/order.go | 8 ++-- internal/handlers/http/midtrans/order.go | 6 +-- internal/handlers/http/order/order.go | 10 ++--- internal/handlers/http/oss/oss.go | 6 +-- internal/handlers/http/partner/partner.go | 12 ++--- internal/handlers/http/product/product.go | 10 ++--- internal/handlers/http/sites/sites.go | 10 ++--- internal/handlers/http/studio/studio.go | 10 ++--- .../handlers/http/transaction/transaction.go | 10 ++--- internal/handlers/http/user/user.go | 12 ++--- internal/handlers/request/balance.go | 2 +- internal/handlers/request/context.go | 2 +- internal/handlers/request/discovery.go | 2 +- internal/handlers/request/event.go | 2 +- internal/handlers/request/license.go | 2 +- internal/handlers/request/midtrans.go | 2 +- internal/handlers/request/order.go | 6 +-- internal/handlers/request/partner.go | 4 +- internal/handlers/request/product.go | 4 +- internal/handlers/request/site.go | 4 +- internal/handlers/request/studio.go | 4 +- internal/handlers/request/transaction.go | 6 +-- internal/handlers/request/user.go | 6 +-- internal/handlers/response/handler.go | 2 +- internal/handlers/response/license.go | 2 +- internal/handlers/response/order.go | 4 +- internal/middlewares/auth.go | 4 +- internal/middlewares/cors.go | 2 +- internal/middlewares/logger.go | 2 +- internal/middlewares/request.go | 2 +- internal/middlewares/trace.go | 6 +-- internal/repository/auth/init.go | 4 +- internal/repository/brevo/init.go | 2 +- internal/repository/crypto/init.go | 4 +- internal/repository/events/event.go | 4 +- internal/repository/license/license.go | 4 +- internal/repository/linkqu/linkqu.go | 2 +- internal/repository/midtrans/init.go | 4 +- internal/repository/orders/order.go | 6 +-- internal/repository/partners/partners.go | 4 +- internal/repository/payment/payment.go | 4 +- .../payment_gateway/paymentgateway.go | 6 +-- internal/repository/products/product.go | 4 +- internal/repository/repository.go | 44 +++++++++---------- internal/repository/sites/sites.go | 6 +-- internal/repository/studios/studio.go | 4 +- .../repository/transaction/transaction.go | 4 +- internal/repository/users/user.go | 4 +- internal/repository/wallet/wallet.go | 4 +- internal/routes/customer_routes.go | 14 +++--- internal/routes/routes.go | 36 +++++++-------- internal/services/auth/init.go | 16 +++---- internal/services/balance/balance.go | 8 ++-- internal/services/discovery/discovery.go | 6 +-- internal/services/event/event.go | 6 +-- internal/services/license/license.go | 8 ++-- internal/services/order/order.go | 14 +++--- internal/services/oss/impl.go | 4 +- internal/services/oss/init.go | 2 +- internal/services/partner/partner.go | 10 ++--- internal/services/product/product.go | 8 ++-- internal/services/service.go | 34 +++++++------- internal/services/sites/sites.go | 10 ++--- internal/services/studio/studio.go | 8 ++-- internal/services/transaction/transaction.go | 10 ++--- internal/services/users/users.go | 8 ++-- k8s/production/deployment.yaml | 16 +++---- k8s/production/ingress-cors.yaml | 10 ++--- k8s/production/ingress.yaml | 10 ++--- k8s/production/service.yaml | 6 +-- k8s/staging/ingress.yaml | 4 +- main.go | 16 +++---- migrations/000001_add_table_user.up.sql | 2 +- templates/reset_password.html | 2 +- 95 files changed, 341 insertions(+), 341 deletions(-) diff --git a/Makefile b/Makefile index ac65320..56cf375 100644 --- a/Makefile +++ b/Makefile @@ -1,4 +1,4 @@ -PROJECT_NAME = "furtuna-backend" +PROJECT_NAME = "enaklo-pos-backend" DB_USERNAME := fortuna_admin DB_PASSWORD := Z4G827t9428QFQ%5ESZXW%2343dB%25%214Bmh80 DB_HOST := 103.96.146.124 diff --git a/README.md b/README.md index f81fd39..51e72ac 100644 --- a/README.md +++ b/README.md @@ -57,8 +57,8 @@ $ ./bin/http-server --env-path ./config/env/.env ``` ## API Docs -* [furtuna Backend](https://furtuna-be.app-dev.altru.id/docs/index.html#/) +* [enaklo-pos Backend](https://enaklo-pos-be.app-dev.altru.id/docs/index.html#/) ## License -This project is licensed under the [MIT License](https://github.com/pvarentsov/furtuna-be/blob/main/LICENSE). +This project is licensed under the [MIT License](https://github.com/pvarentsov/enaklo-pos-be/blob/main/LICENSE). diff --git a/go.mod b/go.mod index 27a7e6e..ff8f9fe 100644 --- a/go.mod +++ b/go.mod @@ -1,4 +1,4 @@ -module furtuna-be +module enaklo-pos-be go 1.20 diff --git a/infra/enaklopos.development.yaml b/infra/enaklopos.development.yaml index 48022d5..81a67a9 100644 --- a/infra/enaklopos.development.yaml +++ b/infra/enaklopos.development.yaml @@ -1,5 +1,5 @@ server: - base-url: https://api.furtuna.id/core + base-url: https://api.enaklo-pos.id/core local-url: http://localhost:3300 port: 3300 @@ -15,8 +15,8 @@ jwt: secret: "909Lm25V3Qd7aut8dr4QUxm5PZUrSFs" postgresql: - host: 103.96.146.124 - port: 2010 + host: 62.72.45.250 + port: 22010 driver: postgres db: enaklo-pos-staging username: admin @@ -31,7 +31,7 @@ oss: access_key_id: e50b31e5eddf63c0ZKB2 access_key_secret: GAyX9jiCWyTwgJMuqzun2x0zHS3kjQt26kyzY21S endpoint: obs.eranyacloud.com - bucket_name: furtuna-dev + bucket_name: enaklo-pos log_level: Error # type: LogOff, Debug, Error, Warn, Info host_url: https://obs.eranyacloud.com @@ -47,20 +47,20 @@ linkqu: signature_key: "LinkQu@2020" username: "LI307GXIN" pin: "2K2NPCBBNNTovgB" - callback_url: "https://furtuna-be.app-dev.altru.id/api/v1/linkqu/callback" + callback_url: "https://enaklo-pos-be.app-dev.altru.id/api/v1/linkqu/callback" brevo: api_key: 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 email: - sender: "furtuna.official@gmail.com" - sender_customer: "furtuna.official@gmail.com" + sender: "enaklo-pos.official@gmail.com" + sender_customer: "enaklo-pos.official@gmail.com" reset_password: template_name: "reset_password" template_path: "templates/reset_password.html" template_path_customer: "templates/reset_password_customer.html" subject: "Reset Password" - opening_word: "Terima kasih sudah menjadi bagian dari Furtuna. Anda telah berhasil melakukan reset password, silakan masukan unik password yang dibuat oleh sistem dibawah ini:" + opening_word: "Terima kasih sudah menjadi bagian dari enaklo-pos. Anda telah berhasil melakukan reset password, silakan masukan unik password yang dibuat oleh sistem dibawah ini:" closing_word: "Silakan login kembali menggunakan email dan password anda diatas, sistem akan secara otomatis meminta anda untuk membuat password baru setelah berhasil login. Mohon maaf atas kendala yang dialami." order: @@ -72,17 +72,17 @@ withdrawal: discovery: explore_destinations: - name: "Jakarta" - image_url: "https://obs.eranyacloud.com/furtuna-dev/file/03c0b046-43ab-4d35-a743-6a173bc66b90-1722680749.png" + image_url: "https://obs.eranyacloud.com/enaklo-pos-dev/file/03c0b046-43ab-4d35-a743-6a173bc66b90-1722680749.png" - name: "Banten" - image_url: "https://obs.eranyacloud.com/furtuna-dev/file/c8e7dd8a-17be-449f-afdc-0c07eda438ce-1722680809.png" + image_url: "https://obs.eranyacloud.com/enaklo-pos-dev/file/c8e7dd8a-17be-449f-afdc-0c07eda438ce-1722680809.png" - name: "Yogyakarta" - image_url: "https://obs.eranyacloud.com/furtuna-dev/file/83b78c19-4c97-48c9-bc97-a7403e1c4eed-1722680828.png" + image_url: "https://obs.eranyacloud.com/enaklo-pos-dev/file/83b78c19-4c97-48c9-bc97-a7403e1c4eed-1722680828.png" - name: "Jawa Barat" - image_url: "https://obs.eranyacloud.com/furtuna-dev/file/07c35ab1-3e20-4858-8d7d-b29517239dc3-1722680848.png" + image_url: "https://obs.eranyacloud.com/enaklo-pos-dev/file/07c35ab1-3e20-4858-8d7d-b29517239dc3-1722680848.png" - name: "Jawa Tengah" - image_url: "https://obs.eranyacloud.com/furtuna-dev/file/a1915a98-c2aa-4997-8e75-bd4e43789b0c-1722680874.png" + image_url: "https://obs.eranyacloud.com/enaklo-pos-dev/file/a1915a98-c2aa-4997-8e75-bd4e43789b0c-1722680874.png" - name: "Jawa Timur" - image_url: "https://obs.eranyacloud.com/furtuna-dev/file/7b5d2b86-e8a8-4703-a153-c186021cf088-1722680894.png" + image_url: "https://obs.eranyacloud.com/enaklo-pos-dev/file/7b5d2b86-e8a8-4703-a153-c186021cf088-1722680894.png" explore_regions: - name: "Jawa" - name: "Sumatera" diff --git a/internal/app/server.go b/internal/app/server.go index b7e0526..225c8a1 100644 --- a/internal/app/server.go +++ b/internal/app/server.go @@ -1,13 +1,13 @@ package app import ( + "enaklo-pos-be/config" "fmt" - "furtuna-be/config" "github.com/gin-gonic/gin" "github.com/gofrs/uuid" - "furtuna-be/internal/middlewares" + "enaklo-pos-be/internal/middlewares" ) func NewServer(cfg *config.Config) *Server { diff --git a/internal/common/db/database.go b/internal/common/db/database.go index c5bc1c0..0f667c3 100644 --- a/internal/common/db/database.go +++ b/internal/common/db/database.go @@ -9,7 +9,7 @@ import ( "gorm.io/driver/postgres" "gorm.io/gorm" - "furtuna-be/config" + "enaklo-pos-be/config" ) func NewPostgres(c config.Database) (*gorm.DB, error) { diff --git a/internal/common/http/http.go b/internal/common/http/http.go index 2dd9f1f..79e3993 100644 --- a/internal/common/http/http.go +++ b/internal/common/http/http.go @@ -9,7 +9,7 @@ import ( "go.uber.org/zap" - "furtuna-be/internal/common/logger" + "enaklo-pos-be/internal/common/logger" ) type HttpClient struct { diff --git a/internal/common/logger/logger.go b/internal/common/logger/logger.go index 9263fdf..27bb19c 100644 --- a/internal/common/logger/logger.go +++ b/internal/common/logger/logger.go @@ -2,8 +2,8 @@ package logger import ( "context" + "enaklo-pos-be/internal/constants" "fmt" - "furtuna-be/internal/constants" "sync" "go.uber.org/zap" diff --git a/internal/common/mycontext/kinoscontext.go b/internal/common/mycontext/kinoscontext.go index 2cf68d2..45805c4 100644 --- a/internal/common/mycontext/kinoscontext.go +++ b/internal/common/mycontext/kinoscontext.go @@ -2,8 +2,8 @@ package mycontext import ( "context" - "furtuna-be/internal/constants/role" - "furtuna-be/internal/entity" + "enaklo-pos-be/internal/constants/role" + "enaklo-pos-be/internal/entity" ) type ContextKey string diff --git a/internal/entity/auth.go b/internal/entity/auth.go index aa71075..69e0e94 100644 --- a/internal/entity/auth.go +++ b/internal/entity/auth.go @@ -1,8 +1,8 @@ package entity import ( - "furtuna-be/internal/constants/role" - "furtuna-be/internal/constants/userstatus" + "enaklo-pos-be/internal/constants/role" + "enaklo-pos-be/internal/constants/userstatus" "time" ) diff --git a/internal/entity/partner.go b/internal/entity/partner.go index 10ea807..e6e4971 100644 --- a/internal/entity/partner.go +++ b/internal/entity/partner.go @@ -1,8 +1,8 @@ package entity import ( - "furtuna-be/internal/constants/role" - "furtuna-be/internal/constants/userstatus" + "enaklo-pos-be/internal/constants/role" + "enaklo-pos-be/internal/constants/userstatus" "time" ) diff --git a/internal/entity/product.go b/internal/entity/product.go index eab7f3b..b896b46 100644 --- a/internal/entity/product.go +++ b/internal/entity/product.go @@ -1,7 +1,7 @@ package entity import ( - "furtuna-be/internal/constants/product" + "enaklo-pos-be/internal/constants/product" "time" ) diff --git a/internal/entity/studio.go b/internal/entity/studio.go index fa2cb89..0e8762f 100644 --- a/internal/entity/studio.go +++ b/internal/entity/studio.go @@ -1,7 +1,7 @@ package entity import ( - "furtuna-be/internal/constants/studio" + "enaklo-pos-be/internal/constants/studio" "time" ) diff --git a/internal/entity/user.go b/internal/entity/user.go index e2e5412..1d44fdf 100644 --- a/internal/entity/user.go +++ b/internal/entity/user.go @@ -1,9 +1,9 @@ package entity import ( + "enaklo-pos-be/internal/constants/role" + "enaklo-pos-be/internal/constants/userstatus" "errors" - "furtuna-be/internal/constants/role" - "furtuna-be/internal/constants/userstatus" "time" "golang.org/x/crypto/bcrypt" diff --git a/internal/handlers/http/auth/auth.go b/internal/handlers/http/auth/auth.go index 3a33962..515cc51 100644 --- a/internal/handlers/http/auth/auth.go +++ b/internal/handlers/http/auth/auth.go @@ -1,17 +1,17 @@ package auth import ( + "enaklo-pos-be/internal/constants/role" "fmt" - "furtuna-be/internal/constants/role" "net/http" "strings" "github.com/gin-gonic/gin" - "furtuna-be/internal/common/errors" - auth2 "furtuna-be/internal/handlers/request" - "furtuna-be/internal/handlers/response" - "furtuna-be/internal/services" + "enaklo-pos-be/internal/common/errors" + auth2 "enaklo-pos-be/internal/handlers/request" + "enaklo-pos-be/internal/handlers/response" + "enaklo-pos-be/internal/services" ) type AuthHandler struct { diff --git a/internal/handlers/http/balance/balance.go b/internal/handlers/http/balance/balance.go index 1455abf..a8ab261 100644 --- a/internal/handlers/http/balance/balance.go +++ b/internal/handlers/http/balance/balance.go @@ -1,11 +1,11 @@ package balance import ( - "furtuna-be/internal/common/errors" - "furtuna-be/internal/entity" - "furtuna-be/internal/handlers/request" - "furtuna-be/internal/handlers/response" - "furtuna-be/internal/services" + "enaklo-pos-be/internal/common/errors" + "enaklo-pos-be/internal/entity" + "enaklo-pos-be/internal/handlers/request" + "enaklo-pos-be/internal/handlers/response" + "enaklo-pos-be/internal/services" "github.com/gin-gonic/gin" "net/http" ) diff --git a/internal/handlers/http/customerauth/auth.go b/internal/handlers/http/customerauth/auth.go index eab34c3..44d4399 100644 --- a/internal/handlers/http/customerauth/auth.go +++ b/internal/handlers/http/customerauth/auth.go @@ -7,10 +7,10 @@ import ( "github.com/gin-gonic/gin" - "furtuna-be/internal/common/errors" - auth2 "furtuna-be/internal/handlers/request" - "furtuna-be/internal/handlers/response" - "furtuna-be/internal/services" + "enaklo-pos-be/internal/common/errors" + auth2 "enaklo-pos-be/internal/handlers/request" + "enaklo-pos-be/internal/handlers/response" + "enaklo-pos-be/internal/services" ) type AuthHandler struct { diff --git a/internal/handlers/http/customerorder/order.go b/internal/handlers/http/customerorder/order.go index 0259314..98e0ce8 100644 --- a/internal/handlers/http/customerorder/order.go +++ b/internal/handlers/http/customerorder/order.go @@ -1,13 +1,13 @@ package customerorder import ( + "enaklo-pos-be/internal/common/errors" + "enaklo-pos-be/internal/entity" + "enaklo-pos-be/internal/handlers/request" + "enaklo-pos-be/internal/handlers/response" + "enaklo-pos-be/internal/services" + "enaklo-pos-be/internal/utils" "encoding/json" - "furtuna-be/internal/common/errors" - "furtuna-be/internal/entity" - "furtuna-be/internal/handlers/request" - "furtuna-be/internal/handlers/response" - "furtuna-be/internal/services" - "furtuna-be/internal/utils" "net/http" "time" diff --git a/internal/handlers/http/discovery/discover.go b/internal/handlers/http/discovery/discover.go index 5f5c29c..1634b9a 100644 --- a/internal/handlers/http/discovery/discover.go +++ b/internal/handlers/http/discovery/discover.go @@ -1,11 +1,11 @@ package discovery import ( - "furtuna-be/internal/common/errors" - "furtuna-be/internal/entity" - "furtuna-be/internal/handlers/request" - "furtuna-be/internal/handlers/response" - "furtuna-be/internal/services" + "enaklo-pos-be/internal/common/errors" + "enaklo-pos-be/internal/entity" + "enaklo-pos-be/internal/handlers/request" + "enaklo-pos-be/internal/handlers/response" + "enaklo-pos-be/internal/services" "github.com/gin-gonic/gin" "net/http" ) diff --git a/internal/handlers/http/event/event.go b/internal/handlers/http/event/event.go index 0074a3f..1b6ba0b 100644 --- a/internal/handlers/http/event/event.go +++ b/internal/handlers/http/event/event.go @@ -7,11 +7,11 @@ import ( "github.com/gin-gonic/gin" - "furtuna-be/internal/common/errors" - "furtuna-be/internal/entity" - "furtuna-be/internal/handlers/request" - "furtuna-be/internal/handlers/response" - "furtuna-be/internal/services" + "enaklo-pos-be/internal/common/errors" + "enaklo-pos-be/internal/entity" + "enaklo-pos-be/internal/handlers/request" + "enaklo-pos-be/internal/handlers/response" + "enaklo-pos-be/internal/services" ) type Handler struct { diff --git a/internal/handlers/http/license/license.go b/internal/handlers/http/license/license.go index 25f1096..6ab43a3 100644 --- a/internal/handlers/http/license/license.go +++ b/internal/handlers/http/license/license.go @@ -1,11 +1,11 @@ package license import ( - "furtuna-be/internal/common/errors" - "furtuna-be/internal/handlers/request" - "furtuna-be/internal/handlers/response" - "furtuna-be/internal/middlewares" - "furtuna-be/internal/services" + "enaklo-pos-be/internal/common/errors" + "enaklo-pos-be/internal/handlers/request" + "enaklo-pos-be/internal/handlers/response" + "enaklo-pos-be/internal/middlewares" + "enaklo-pos-be/internal/services" "github.com/gin-gonic/gin" "github.com/go-playground/validator/v10" "net/http" diff --git a/internal/handlers/http/linqu/order.go b/internal/handlers/http/linqu/order.go index 02fe41d..a9b4677 100644 --- a/internal/handlers/http/linqu/order.go +++ b/internal/handlers/http/linqu/order.go @@ -1,12 +1,12 @@ package linkqu import ( + "enaklo-pos-be/internal/entity" + "enaklo-pos-be/internal/handlers/request" + "enaklo-pos-be/internal/handlers/response" + "enaklo-pos-be/internal/services" "encoding/json" "fmt" - "furtuna-be/internal/entity" - "furtuna-be/internal/handlers/request" - "furtuna-be/internal/handlers/response" - "furtuna-be/internal/services" "github.com/gin-gonic/gin" "net/http" ) diff --git a/internal/handlers/http/midtrans/order.go b/internal/handlers/http/midtrans/order.go index ae31f44..6f77aa6 100644 --- a/internal/handlers/http/midtrans/order.go +++ b/internal/handlers/http/midtrans/order.go @@ -1,9 +1,9 @@ package mdtrns import ( - "furtuna-be/internal/handlers/request" - "furtuna-be/internal/handlers/response" - "furtuna-be/internal/services" + "enaklo-pos-be/internal/handlers/request" + "enaklo-pos-be/internal/handlers/response" + "enaklo-pos-be/internal/services" "github.com/gin-gonic/gin" "net/http" ) diff --git a/internal/handlers/http/order/order.go b/internal/handlers/http/order/order.go index 64d4a57..3a35a29 100644 --- a/internal/handlers/http/order/order.go +++ b/internal/handlers/http/order/order.go @@ -1,11 +1,11 @@ package order import ( - "furtuna-be/internal/common/errors" - "furtuna-be/internal/entity" - "furtuna-be/internal/handlers/request" - "furtuna-be/internal/handlers/response" - "furtuna-be/internal/services" + "enaklo-pos-be/internal/common/errors" + "enaklo-pos-be/internal/entity" + "enaklo-pos-be/internal/handlers/request" + "enaklo-pos-be/internal/handlers/response" + "enaklo-pos-be/internal/services" "net/http" "time" diff --git a/internal/handlers/http/oss/oss.go b/internal/handlers/http/oss/oss.go index 95d3a7f..2472c33 100644 --- a/internal/handlers/http/oss/oss.go +++ b/internal/handlers/http/oss/oss.go @@ -1,10 +1,10 @@ package oss import ( + "enaklo-pos-be/internal/entity" + "enaklo-pos-be/internal/handlers/response" + "enaklo-pos-be/internal/services" "fmt" - "furtuna-be/internal/entity" - "furtuna-be/internal/handlers/response" - "furtuna-be/internal/services" "mime/multipart" "net/http" diff --git a/internal/handlers/http/partner/partner.go b/internal/handlers/http/partner/partner.go index 613f7c9..7d7f40f 100644 --- a/internal/handlers/http/partner/partner.go +++ b/internal/handlers/http/partner/partner.go @@ -1,12 +1,12 @@ package partner import ( - "furtuna-be/internal/common/errors" - "furtuna-be/internal/entity" - "furtuna-be/internal/handlers/request" - "furtuna-be/internal/handlers/response" - "furtuna-be/internal/middlewares" - "furtuna-be/internal/services" + "enaklo-pos-be/internal/common/errors" + "enaklo-pos-be/internal/entity" + "enaklo-pos-be/internal/handlers/request" + "enaklo-pos-be/internal/handlers/response" + "enaklo-pos-be/internal/middlewares" + "enaklo-pos-be/internal/services" "net/http" "strconv" "time" diff --git a/internal/handlers/http/product/product.go b/internal/handlers/http/product/product.go index deeba45..a65c4f9 100644 --- a/internal/handlers/http/product/product.go +++ b/internal/handlers/http/product/product.go @@ -1,11 +1,11 @@ package product import ( - "furtuna-be/internal/common/errors" - "furtuna-be/internal/entity" - "furtuna-be/internal/handlers/request" - "furtuna-be/internal/handlers/response" - "furtuna-be/internal/services" + "enaklo-pos-be/internal/common/errors" + "enaklo-pos-be/internal/entity" + "enaklo-pos-be/internal/handlers/request" + "enaklo-pos-be/internal/handlers/response" + "enaklo-pos-be/internal/services" "net/http" "strconv" "time" diff --git a/internal/handlers/http/sites/sites.go b/internal/handlers/http/sites/sites.go index 3b3851f..f29949e 100644 --- a/internal/handlers/http/sites/sites.go +++ b/internal/handlers/http/sites/sites.go @@ -1,11 +1,11 @@ package site import ( - "furtuna-be/internal/common/errors" - "furtuna-be/internal/entity" - "furtuna-be/internal/handlers/request" - "furtuna-be/internal/handlers/response" - "furtuna-be/internal/services" + "enaklo-pos-be/internal/common/errors" + "enaklo-pos-be/internal/entity" + "enaklo-pos-be/internal/handlers/request" + "enaklo-pos-be/internal/handlers/response" + "enaklo-pos-be/internal/services" "net/http" "strconv" "time" diff --git a/internal/handlers/http/studio/studio.go b/internal/handlers/http/studio/studio.go index d906b27..ed8208c 100644 --- a/internal/handlers/http/studio/studio.go +++ b/internal/handlers/http/studio/studio.go @@ -1,12 +1,12 @@ package studio import ( + "enaklo-pos-be/internal/common/errors" + "enaklo-pos-be/internal/entity" + "enaklo-pos-be/internal/handlers/request" + "enaklo-pos-be/internal/handlers/response" + "enaklo-pos-be/internal/services" "encoding/json" - "furtuna-be/internal/common/errors" - "furtuna-be/internal/entity" - "furtuna-be/internal/handlers/request" - "furtuna-be/internal/handlers/response" - "furtuna-be/internal/services" "net/http" "strconv" "time" diff --git a/internal/handlers/http/transaction/transaction.go b/internal/handlers/http/transaction/transaction.go index 57cf086..ccad3cd 100644 --- a/internal/handlers/http/transaction/transaction.go +++ b/internal/handlers/http/transaction/transaction.go @@ -1,11 +1,11 @@ package transaction import ( - "furtuna-be/internal/common/errors" - "furtuna-be/internal/entity" - "furtuna-be/internal/handlers/request" - "furtuna-be/internal/handlers/response" - "furtuna-be/internal/services" + "enaklo-pos-be/internal/common/errors" + "enaklo-pos-be/internal/entity" + "enaklo-pos-be/internal/handlers/request" + "enaklo-pos-be/internal/handlers/response" + "enaklo-pos-be/internal/services" "github.com/gin-gonic/gin" "net/http" ) diff --git a/internal/handlers/http/user/user.go b/internal/handlers/http/user/user.go index 59af07d..f33345d 100644 --- a/internal/handlers/http/user/user.go +++ b/internal/handlers/http/user/user.go @@ -1,8 +1,8 @@ package user import ( + "enaklo-pos-be/internal/constants/role" "fmt" - "furtuna-be/internal/constants/role" "net/http" "strconv" "strings" @@ -12,11 +12,11 @@ import ( "github.com/go-playground/validator/v10" "github.com/xuri/excelize/v2" - "furtuna-be/internal/common/errors" - "furtuna-be/internal/entity" - "furtuna-be/internal/handlers/request" - "furtuna-be/internal/handlers/response" - "furtuna-be/internal/services" + "enaklo-pos-be/internal/common/errors" + "enaklo-pos-be/internal/entity" + "enaklo-pos-be/internal/handlers/request" + "enaklo-pos-be/internal/handlers/response" + "enaklo-pos-be/internal/services" ) type Handler struct { diff --git a/internal/handlers/request/balance.go b/internal/handlers/request/balance.go index 4fdab4e..3866c61 100644 --- a/internal/handlers/request/balance.go +++ b/internal/handlers/request/balance.go @@ -1,6 +1,6 @@ package request -import "furtuna-be/internal/entity" +import "enaklo-pos-be/internal/entity" type BalanceReq struct { Amount int64 `json:"amount"` diff --git a/internal/handlers/request/context.go b/internal/handlers/request/context.go index ebcf161..305cd9f 100644 --- a/internal/handlers/request/context.go +++ b/internal/handlers/request/context.go @@ -1,7 +1,7 @@ package request import ( - "furtuna-be/internal/common/mycontext" + "enaklo-pos-be/internal/common/mycontext" "github.com/gin-gonic/gin" ) diff --git a/internal/handlers/request/discovery.go b/internal/handlers/request/discovery.go index ef10496..a29bf33 100644 --- a/internal/handlers/request/discovery.go +++ b/internal/handlers/request/discovery.go @@ -1,7 +1,7 @@ package request import ( - "furtuna-be/internal/entity" + "enaklo-pos-be/internal/entity" ) type DiscoveryHomeParam struct { diff --git a/internal/handlers/request/event.go b/internal/handlers/request/event.go index 11517d2..c326505 100644 --- a/internal/handlers/request/event.go +++ b/internal/handlers/request/event.go @@ -6,7 +6,7 @@ import ( "github.com/go-playground/validator/v10" - "furtuna-be/internal/entity" + "enaklo-pos-be/internal/entity" ) type EventParam struct { diff --git a/internal/handlers/request/license.go b/internal/handlers/request/license.go index 9cffefb..efb778f 100644 --- a/internal/handlers/request/license.go +++ b/internal/handlers/request/license.go @@ -1,7 +1,7 @@ package request import ( - "furtuna-be/internal/entity" + "enaklo-pos-be/internal/entity" "time" "github.com/google/uuid" diff --git a/internal/handlers/request/midtrans.go b/internal/handlers/request/midtrans.go index 445e1cc..17eaa11 100644 --- a/internal/handlers/request/midtrans.go +++ b/internal/handlers/request/midtrans.go @@ -1,6 +1,6 @@ package request -import "furtuna-be/internal/entity" +import "enaklo-pos-be/internal/entity" type MidtransCallbackRequest struct { VANumbers []VANumber `json:"va_numbers"` diff --git a/internal/handlers/request/order.go b/internal/handlers/request/order.go index c02df79..c4e3b85 100644 --- a/internal/handlers/request/order.go +++ b/internal/handlers/request/order.go @@ -1,9 +1,9 @@ package request import ( - "furtuna-be/internal/common/mycontext" - "furtuna-be/internal/constants/transaction" - "furtuna-be/internal/entity" + "enaklo-pos-be/internal/common/mycontext" + "enaklo-pos-be/internal/constants/transaction" + "enaklo-pos-be/internal/entity" "time" ) diff --git a/internal/handlers/request/partner.go b/internal/handlers/request/partner.go index de7d287..cac6b4c 100644 --- a/internal/handlers/request/partner.go +++ b/internal/handlers/request/partner.go @@ -1,8 +1,8 @@ package request import ( - "furtuna-be/internal/common/mycontext" - "furtuna-be/internal/entity" + "enaklo-pos-be/internal/common/mycontext" + "enaklo-pos-be/internal/entity" ) type PartnerParam struct { diff --git a/internal/handlers/request/product.go b/internal/handlers/request/product.go index 7e5a730..3ec2b49 100644 --- a/internal/handlers/request/product.go +++ b/internal/handlers/request/product.go @@ -1,8 +1,8 @@ package request import ( - "furtuna-be/internal/constants/product" - "furtuna-be/internal/entity" + "enaklo-pos-be/internal/constants/product" + "enaklo-pos-be/internal/entity" ) type ProductParam struct { diff --git a/internal/handlers/request/site.go b/internal/handlers/request/site.go index 6e3e442..fe1368f 100644 --- a/internal/handlers/request/site.go +++ b/internal/handlers/request/site.go @@ -1,8 +1,8 @@ package request import ( - "furtuna-be/internal/common/mycontext" - "furtuna-be/internal/entity" + "enaklo-pos-be/internal/common/mycontext" + "enaklo-pos-be/internal/entity" ) type Site struct { diff --git a/internal/handlers/request/studio.go b/internal/handlers/request/studio.go index 6ec5475..b83cd1f 100644 --- a/internal/handlers/request/studio.go +++ b/internal/handlers/request/studio.go @@ -1,9 +1,9 @@ package request import ( + "enaklo-pos-be/internal/constants/studio" + "enaklo-pos-be/internal/entity" "encoding/json" - "furtuna-be/internal/constants/studio" - "furtuna-be/internal/entity" ) type StudioParam struct { diff --git a/internal/handlers/request/transaction.go b/internal/handlers/request/transaction.go index 59769ae..3013e38 100644 --- a/internal/handlers/request/transaction.go +++ b/internal/handlers/request/transaction.go @@ -1,9 +1,9 @@ package request import ( - "furtuna-be/internal/common/mycontext" - "furtuna-be/internal/constants/transaction" - "furtuna-be/internal/entity" + "enaklo-pos-be/internal/common/mycontext" + "enaklo-pos-be/internal/constants/transaction" + "enaklo-pos-be/internal/entity" "github.com/go-playground/validator/v10" ) diff --git a/internal/handlers/request/user.go b/internal/handlers/request/user.go index 328596f..2c415a4 100644 --- a/internal/handlers/request/user.go +++ b/internal/handlers/request/user.go @@ -1,9 +1,9 @@ package request import ( - "furtuna-be/internal/common/mycontext" - "furtuna-be/internal/constants/role" - "furtuna-be/internal/entity" + "enaklo-pos-be/internal/common/mycontext" + "enaklo-pos-be/internal/constants/role" + "enaklo-pos-be/internal/entity" "math/rand" "strings" "time" diff --git a/internal/handlers/response/handler.go b/internal/handlers/response/handler.go index 010262b..00d751f 100644 --- a/internal/handlers/response/handler.go +++ b/internal/handlers/response/handler.go @@ -3,7 +3,7 @@ package response import ( "github.com/gin-gonic/gin" - "furtuna-be/internal/common/errors" + "enaklo-pos-be/internal/common/errors" ) type response struct { diff --git a/internal/handlers/response/license.go b/internal/handlers/response/license.go index c0c1473..555496a 100644 --- a/internal/handlers/response/license.go +++ b/internal/handlers/response/license.go @@ -1,7 +1,7 @@ package response import ( - "furtuna-be/internal/entity" + "enaklo-pos-be/internal/entity" ) type License struct { diff --git a/internal/handlers/response/order.go b/internal/handlers/response/order.go index d700875..8277de0 100644 --- a/internal/handlers/response/order.go +++ b/internal/handlers/response/order.go @@ -1,8 +1,8 @@ package response import ( - "furtuna-be/internal/constants/order" - "furtuna-be/internal/constants/transaction" + "enaklo-pos-be/internal/constants/order" + "enaklo-pos-be/internal/constants/transaction" "time" ) diff --git a/internal/middlewares/auth.go b/internal/middlewares/auth.go index 8aed227..751e25c 100644 --- a/internal/middlewares/auth.go +++ b/internal/middlewares/auth.go @@ -1,13 +1,13 @@ package middlewares import ( - "furtuna-be/internal/common/mycontext" + "enaklo-pos-be/internal/common/mycontext" "net/http" "strings" "github.com/gin-gonic/gin" - "furtuna-be/internal/repository" + "enaklo-pos-be/internal/repository" ) func AuthorizationMiddleware(cryp repository.Crypto) gin.HandlerFunc { diff --git a/internal/middlewares/cors.go b/internal/middlewares/cors.go index 0d1f783..586ca10 100644 --- a/internal/middlewares/cors.go +++ b/internal/middlewares/cors.go @@ -6,7 +6,7 @@ import ( "github.com/gin-gonic/gin" - "furtuna-be/internal/common/logger" + "enaklo-pos-be/internal/common/logger" ) func Cors() gin.HandlerFunc { diff --git a/internal/middlewares/logger.go b/internal/middlewares/logger.go index eb5ffdd..9d1ff22 100644 --- a/internal/middlewares/logger.go +++ b/internal/middlewares/logger.go @@ -6,7 +6,7 @@ import ( "github.com/gin-gonic/gin" - "furtuna-be/internal/common/request" + "enaklo-pos-be/internal/common/request" ) type ConfigLogger interface { diff --git a/internal/middlewares/request.go b/internal/middlewares/request.go index c67e55b..796003e 100644 --- a/internal/middlewares/request.go +++ b/internal/middlewares/request.go @@ -13,7 +13,7 @@ import ( "github.com/gin-gonic/gin" "go.uber.org/zap" - "furtuna-be/internal/common/logger" + "enaklo-pos-be/internal/common/logger" ) func RequestMiddleware(c ConfigLogger) (handler gin.HandlerFunc) { diff --git a/internal/middlewares/trace.go b/internal/middlewares/trace.go index c921e3c..c5c835a 100644 --- a/internal/middlewares/trace.go +++ b/internal/middlewares/trace.go @@ -1,9 +1,9 @@ package middlewares import ( - "furtuna-be/internal/common/request" - "furtuna-be/internal/constants" - "furtuna-be/internal/utils/generator" + "enaklo-pos-be/internal/common/request" + "enaklo-pos-be/internal/constants" + "enaklo-pos-be/internal/utils/generator" "github.com/gin-gonic/gin" ) diff --git a/internal/repository/auth/init.go b/internal/repository/auth/init.go index 11db05a..8edf7b3 100644 --- a/internal/repository/auth/init.go +++ b/internal/repository/auth/init.go @@ -7,8 +7,8 @@ import ( "go.uber.org/zap" "gorm.io/gorm" - "furtuna-be/internal/common/logger" - "furtuna-be/internal/entity" + "enaklo-pos-be/internal/common/logger" + "enaklo-pos-be/internal/entity" ) type AuthRepository struct { diff --git a/internal/repository/brevo/init.go b/internal/repository/brevo/init.go index a2673fa..12fb6c9 100644 --- a/internal/repository/brevo/init.go +++ b/internal/repository/brevo/init.go @@ -3,7 +3,7 @@ package brevo import ( "bytes" "context" - "furtuna-be/internal/entity" + "enaklo-pos-be/internal/entity" "html/template" "io/ioutil" "log" diff --git a/internal/repository/crypto/init.go b/internal/repository/crypto/init.go index ea2d312..75d9be0 100644 --- a/internal/repository/crypto/init.go +++ b/internal/repository/crypto/init.go @@ -8,8 +8,8 @@ import ( "github.com/golang-jwt/jwt" "golang.org/x/crypto/bcrypt" - "furtuna-be/internal/common/errors" - "furtuna-be/internal/entity" + "enaklo-pos-be/internal/common/errors" + "enaklo-pos-be/internal/entity" ) func NewCrypto(config CryptoConfig) *CryptoImpl { diff --git a/internal/repository/events/event.go b/internal/repository/events/event.go index 1e36d9b..680b892 100644 --- a/internal/repository/events/event.go +++ b/internal/repository/events/event.go @@ -6,8 +6,8 @@ import ( "go.uber.org/zap" "gorm.io/gorm" - "furtuna-be/internal/common/logger" - "furtuna-be/internal/entity" + "enaklo-pos-be/internal/common/logger" + "enaklo-pos-be/internal/entity" ) type EventRepoImpl struct { diff --git a/internal/repository/license/license.go b/internal/repository/license/license.go index 98ba42a..ace6467 100644 --- a/internal/repository/license/license.go +++ b/internal/repository/license/license.go @@ -2,9 +2,9 @@ package license import ( "context" + "enaklo-pos-be/internal/common/logger" + "enaklo-pos-be/internal/entity" "errors" - "furtuna-be/internal/common/logger" - "furtuna-be/internal/entity" "github.com/google/uuid" "go.uber.org/zap" "gorm.io/gorm" diff --git a/internal/repository/linkqu/linkqu.go b/internal/repository/linkqu/linkqu.go index fcb085d..dcad097 100644 --- a/internal/repository/linkqu/linkqu.go +++ b/internal/repository/linkqu/linkqu.go @@ -4,10 +4,10 @@ import ( "bytes" "crypto/hmac" "crypto/sha256" + "enaklo-pos-be/internal/entity" "encoding/hex" "encoding/json" "fmt" - "furtuna-be/internal/entity" "io/ioutil" "net/http" "reflect" diff --git a/internal/repository/midtrans/init.go b/internal/repository/midtrans/init.go index a399269..fb6106f 100644 --- a/internal/repository/midtrans/init.go +++ b/internal/repository/midtrans/init.go @@ -1,9 +1,9 @@ package mdtrns import ( + "enaklo-pos-be/internal/common/logger" + "enaklo-pos-be/internal/entity" "fmt" - "furtuna-be/internal/common/logger" - "furtuna-be/internal/entity" "log" "strconv" diff --git a/internal/repository/orders/order.go b/internal/repository/orders/order.go index cd6f8ec..fdef267 100644 --- a/internal/repository/orders/order.go +++ b/internal/repository/orders/order.go @@ -2,9 +2,9 @@ package orders import ( "context" - "furtuna-be/internal/common/logger" - "furtuna-be/internal/common/mycontext" - "furtuna-be/internal/entity" + "enaklo-pos-be/internal/common/logger" + "enaklo-pos-be/internal/common/mycontext" + "enaklo-pos-be/internal/entity" "strings" "time" diff --git a/internal/repository/partners/partners.go b/internal/repository/partners/partners.go index 09300c4..cb5c10c 100644 --- a/internal/repository/partners/partners.go +++ b/internal/repository/partners/partners.go @@ -2,8 +2,8 @@ package partners import ( "context" - "furtuna-be/internal/common/logger" - "furtuna-be/internal/entity" + "enaklo-pos-be/internal/common/logger" + "enaklo-pos-be/internal/entity" "go.uber.org/zap" "gorm.io/gorm" diff --git a/internal/repository/payment/payment.go b/internal/repository/payment/payment.go index e8d756f..40f51fa 100644 --- a/internal/repository/payment/payment.go +++ b/internal/repository/payment/payment.go @@ -2,8 +2,8 @@ package payment import ( "context" - "furtuna-be/internal/common/logger" - "furtuna-be/internal/entity" + "enaklo-pos-be/internal/common/logger" + "enaklo-pos-be/internal/entity" "github.com/google/uuid" "go.uber.org/zap" "gorm.io/gorm" diff --git a/internal/repository/payment_gateway/paymentgateway.go b/internal/repository/payment_gateway/paymentgateway.go index 4a455b1..73731ea 100644 --- a/internal/repository/payment_gateway/paymentgateway.go +++ b/internal/repository/payment_gateway/paymentgateway.go @@ -1,10 +1,10 @@ package pg import ( + "enaklo-pos-be/internal/entity" + "enaklo-pos-be/internal/repository/linkqu" + mdtrns "enaklo-pos-be/internal/repository/midtrans" "fmt" - "furtuna-be/internal/entity" - "furtuna-be/internal/repository/linkqu" - mdtrns "furtuna-be/internal/repository/midtrans" ) type PaymentGatewayRepo struct { diff --git a/internal/repository/products/product.go b/internal/repository/products/product.go index 3c8da1b..84c7828 100644 --- a/internal/repository/products/product.go +++ b/internal/repository/products/product.go @@ -2,8 +2,8 @@ package products import ( "context" - "furtuna-be/internal/common/logger" - "furtuna-be/internal/entity" + "enaklo-pos-be/internal/common/logger" + "enaklo-pos-be/internal/entity" "go.uber.org/zap" "gorm.io/gorm" diff --git a/internal/repository/repository.go b/internal/repository/repository.go index bd3d234..de0507a 100644 --- a/internal/repository/repository.go +++ b/internal/repository/repository.go @@ -3,32 +3,32 @@ package repository import ( "context" "database/sql" - "furtuna-be/internal/common/mycontext" - "furtuna-be/internal/repository/brevo" - "furtuna-be/internal/repository/license" - "furtuna-be/internal/repository/linkqu" - mdtrns "furtuna-be/internal/repository/midtrans" - "furtuna-be/internal/repository/orders" - "furtuna-be/internal/repository/oss" - "furtuna-be/internal/repository/partners" - "furtuna-be/internal/repository/payment" - pg "furtuna-be/internal/repository/payment_gateway" - "furtuna-be/internal/repository/products" - "furtuna-be/internal/repository/sites" - "furtuna-be/internal/repository/studios" - transactions "furtuna-be/internal/repository/transaction" - "furtuna-be/internal/repository/trx" - "furtuna-be/internal/repository/users" - repository "furtuna-be/internal/repository/wallet" + "enaklo-pos-be/internal/common/mycontext" + "enaklo-pos-be/internal/repository/brevo" + "enaklo-pos-be/internal/repository/license" + "enaklo-pos-be/internal/repository/linkqu" + mdtrns "enaklo-pos-be/internal/repository/midtrans" + "enaklo-pos-be/internal/repository/orders" + "enaklo-pos-be/internal/repository/oss" + "enaklo-pos-be/internal/repository/partners" + "enaklo-pos-be/internal/repository/payment" + pg "enaklo-pos-be/internal/repository/payment_gateway" + "enaklo-pos-be/internal/repository/products" + "enaklo-pos-be/internal/repository/sites" + "enaklo-pos-be/internal/repository/studios" + transactions "enaklo-pos-be/internal/repository/transaction" + "enaklo-pos-be/internal/repository/trx" + "enaklo-pos-be/internal/repository/users" + repository "enaklo-pos-be/internal/repository/wallet" "github.com/golang-jwt/jwt" "gorm.io/gorm" - "furtuna-be/config" - "furtuna-be/internal/entity" - "furtuna-be/internal/repository/auth" - "furtuna-be/internal/repository/crypto" - event "furtuna-be/internal/repository/events" + "enaklo-pos-be/config" + "enaklo-pos-be/internal/entity" + "enaklo-pos-be/internal/repository/auth" + "enaklo-pos-be/internal/repository/crypto" + event "enaklo-pos-be/internal/repository/events" ) type RepoManagerImpl struct { diff --git a/internal/repository/sites/sites.go b/internal/repository/sites/sites.go index 98218d0..85b7aed 100644 --- a/internal/repository/sites/sites.go +++ b/internal/repository/sites/sites.go @@ -2,9 +2,9 @@ package sites import ( "context" - "furtuna-be/internal/common/logger" - "furtuna-be/internal/common/mycontext" - "furtuna-be/internal/entity" + "enaklo-pos-be/internal/common/logger" + "enaklo-pos-be/internal/common/mycontext" + "enaklo-pos-be/internal/entity" "go.uber.org/zap" "gorm.io/gorm" diff --git a/internal/repository/studios/studio.go b/internal/repository/studios/studio.go index 7166d00..35d83b0 100644 --- a/internal/repository/studios/studio.go +++ b/internal/repository/studios/studio.go @@ -2,8 +2,8 @@ package studios import ( "context" - "furtuna-be/internal/common/logger" - "furtuna-be/internal/entity" + "enaklo-pos-be/internal/common/logger" + "enaklo-pos-be/internal/entity" "go.uber.org/zap" "gorm.io/gorm" diff --git a/internal/repository/transaction/transaction.go b/internal/repository/transaction/transaction.go index 2d7a26c..eae6488 100644 --- a/internal/repository/transaction/transaction.go +++ b/internal/repository/transaction/transaction.go @@ -2,8 +2,8 @@ package transactions import ( "context" - "furtuna-be/internal/common/mycontext" - "furtuna-be/internal/entity" + "enaklo-pos-be/internal/common/mycontext" + "enaklo-pos-be/internal/entity" "go.uber.org/zap" "gorm.io/gorm" ) diff --git a/internal/repository/users/user.go b/internal/repository/users/user.go index a541fd7..4eae846 100644 --- a/internal/repository/users/user.go +++ b/internal/repository/users/user.go @@ -2,8 +2,8 @@ package users import ( "context" - "furtuna-be/internal/common/logger" - "furtuna-be/internal/entity" + "enaklo-pos-be/internal/common/logger" + "enaklo-pos-be/internal/entity" "go.uber.org/zap" "gorm.io/gorm" diff --git a/internal/repository/wallet/wallet.go b/internal/repository/wallet/wallet.go index 64cbb8f..e20af4a 100644 --- a/internal/repository/wallet/wallet.go +++ b/internal/repository/wallet/wallet.go @@ -2,8 +2,8 @@ package repository import ( "context" - "furtuna-be/internal/common/logger" - "furtuna-be/internal/entity" + "enaklo-pos-be/internal/common/logger" + "enaklo-pos-be/internal/entity" "go.uber.org/zap" "gorm.io/gorm" "gorm.io/gorm/clause" diff --git a/internal/routes/customer_routes.go b/internal/routes/customer_routes.go index 179f01f..f15600b 100644 --- a/internal/routes/customer_routes.go +++ b/internal/routes/customer_routes.go @@ -1,14 +1,14 @@ package routes import ( - "furtuna-be/internal/handlers/http/customerauth" - "furtuna-be/internal/handlers/http/customerorder" - "furtuna-be/internal/handlers/http/discovery" - "furtuna-be/internal/middlewares" + "enaklo-pos-be/internal/handlers/http/customerauth" + "enaklo-pos-be/internal/handlers/http/customerorder" + "enaklo-pos-be/internal/handlers/http/discovery" + "enaklo-pos-be/internal/middlewares" - "furtuna-be/internal/app" - "furtuna-be/internal/repository" - "furtuna-be/internal/services" + "enaklo-pos-be/internal/app" + "enaklo-pos-be/internal/repository" + "enaklo-pos-be/internal/services" ) func RegisterCustomerRoutes(app *app.Server, serviceManager *services.ServiceManagerImpl, diff --git a/internal/routes/routes.go b/internal/routes/routes.go index c960a87..d85daed 100644 --- a/internal/routes/routes.go +++ b/internal/routes/routes.go @@ -1,31 +1,31 @@ package routes import ( - "furtuna-be/internal/handlers/http/balance" - "furtuna-be/internal/handlers/http/license" - linkqu "furtuna-be/internal/handlers/http/linqu" - mdtrns "furtuna-be/internal/handlers/http/midtrans" - "furtuna-be/internal/handlers/http/order" - "furtuna-be/internal/handlers/http/oss" - "furtuna-be/internal/handlers/http/partner" - "furtuna-be/internal/handlers/http/product" - site "furtuna-be/internal/handlers/http/sites" - "furtuna-be/internal/handlers/http/studio" - "furtuna-be/internal/handlers/http/transaction" - "furtuna-be/internal/handlers/http/user" + "enaklo-pos-be/internal/handlers/http/balance" + "enaklo-pos-be/internal/handlers/http/license" + linkqu "enaklo-pos-be/internal/handlers/http/linqu" + mdtrns "enaklo-pos-be/internal/handlers/http/midtrans" + "enaklo-pos-be/internal/handlers/http/order" + "enaklo-pos-be/internal/handlers/http/oss" + "enaklo-pos-be/internal/handlers/http/partner" + "enaklo-pos-be/internal/handlers/http/product" + site "enaklo-pos-be/internal/handlers/http/sites" + "enaklo-pos-be/internal/handlers/http/studio" + "enaklo-pos-be/internal/handlers/http/transaction" + "enaklo-pos-be/internal/handlers/http/user" swaggerFiles "github.com/swaggo/files" ginSwagger "github.com/swaggo/gin-swagger" "net/http" - "furtuna-be/internal/handlers/http/event" - "furtuna-be/internal/middlewares" + "enaklo-pos-be/internal/handlers/http/event" + "enaklo-pos-be/internal/middlewares" "github.com/gin-gonic/gin" - "furtuna-be/internal/app" - "furtuna-be/internal/handlers/http/auth" - "furtuna-be/internal/repository" - "furtuna-be/internal/services" + "enaklo-pos-be/internal/app" + "enaklo-pos-be/internal/handlers/http/auth" + "enaklo-pos-be/internal/repository" + "enaklo-pos-be/internal/services" ) func RegisterPublicRoutes(app *app.Server, serviceManager *services.ServiceManagerImpl, diff --git a/internal/services/auth/init.go b/internal/services/auth/init.go index 1b9856b..bbfd77a 100644 --- a/internal/services/auth/init.go +++ b/internal/services/auth/init.go @@ -2,16 +2,16 @@ package auth import ( "context" + "enaklo-pos-be/config" + "enaklo-pos-be/internal/common/mycontext" + "enaklo-pos-be/internal/entity" + "enaklo-pos-be/internal/utils" "fmt" - "furtuna-be/config" - "furtuna-be/internal/common/mycontext" - "furtuna-be/internal/entity" - "furtuna-be/internal/utils" "go.uber.org/zap" - "furtuna-be/internal/common/errors" - "furtuna-be/internal/common/logger" - "furtuna-be/internal/repository" + "enaklo-pos-be/internal/common/errors" + "enaklo-pos-be/internal/common/logger" + "enaklo-pos-be/internal/repository" ) type AuthServiceImpl struct { @@ -130,7 +130,7 @@ func (u *AuthServiceImpl) SendPasswordResetLink(ctx context.Context, email strin sender := u.emailCfg.Sender templatePath := u.emailCfg.ResetPassword.TemplatePath - subject := fmt.Sprintf("Furtuna %s", u.emailCfg.ResetPassword.Subject) + subject := fmt.Sprintf("enaklo-pos %s", u.emailCfg.ResetPassword.Subject) if user.UserType == "CUSTOMER" { sender = u.emailCfg.SenderCustomer templatePath = u.emailCfg.ResetPassword.TemplatePathCustomer diff --git a/internal/services/balance/balance.go b/internal/services/balance/balance.go index 97f3ba9..2ea1f78 100644 --- a/internal/services/balance/balance.go +++ b/internal/services/balance/balance.go @@ -2,11 +2,11 @@ package balance import ( "context" + "enaklo-pos-be/internal/common/logger" + "enaklo-pos-be/internal/common/mycontext" + "enaklo-pos-be/internal/entity" + "enaklo-pos-be/internal/repository" "errors" - "furtuna-be/internal/common/logger" - "furtuna-be/internal/common/mycontext" - "furtuna-be/internal/entity" - "furtuna-be/internal/repository" "go.uber.org/zap" ) diff --git a/internal/services/discovery/discovery.go b/internal/services/discovery/discovery.go index 2bf178b..c9fbb4b 100644 --- a/internal/services/discovery/discovery.go +++ b/internal/services/discovery/discovery.go @@ -2,12 +2,12 @@ package discovery import ( "context" + "enaklo-pos-be/config" "errors" - "furtuna-be/config" "gorm.io/gorm" - "furtuna-be/internal/entity" - "furtuna-be/internal/repository" + "enaklo-pos-be/internal/entity" + "enaklo-pos-be/internal/repository" ) const ( diff --git a/internal/services/event/event.go b/internal/services/event/event.go index 0dd2e1e..d547848 100644 --- a/internal/services/event/event.go +++ b/internal/services/event/event.go @@ -5,9 +5,9 @@ import ( "go.uber.org/zap" - "furtuna-be/internal/common/logger" - "furtuna-be/internal/entity" - "furtuna-be/internal/repository" + "enaklo-pos-be/internal/common/logger" + "enaklo-pos-be/internal/entity" + "enaklo-pos-be/internal/repository" ) type EventService struct { diff --git a/internal/services/license/license.go b/internal/services/license/license.go index b97a74b..680c9ca 100644 --- a/internal/services/license/license.go +++ b/internal/services/license/license.go @@ -2,10 +2,10 @@ package service import ( "context" - "furtuna-be/internal/common/logger" - "furtuna-be/internal/common/mycontext" - "furtuna-be/internal/entity" - "furtuna-be/internal/repository" + "enaklo-pos-be/internal/common/logger" + "enaklo-pos-be/internal/common/mycontext" + "enaklo-pos-be/internal/entity" + "enaklo-pos-be/internal/repository" "go.uber.org/zap" ) diff --git a/internal/services/order/order.go b/internal/services/order/order.go index 3dabeb2..440c29e 100644 --- a/internal/services/order/order.go +++ b/internal/services/order/order.go @@ -2,16 +2,16 @@ package order import ( "database/sql" + errors2 "enaklo-pos-be/internal/common/errors" + "enaklo-pos-be/internal/common/logger" + "enaklo-pos-be/internal/common/mycontext" + order2 "enaklo-pos-be/internal/constants/order" + "enaklo-pos-be/internal/entity" + "enaklo-pos-be/internal/repository" + "enaklo-pos-be/internal/utils/generator" "encoding/json" "errors" "fmt" - errors2 "furtuna-be/internal/common/errors" - "furtuna-be/internal/common/logger" - "furtuna-be/internal/common/mycontext" - order2 "furtuna-be/internal/constants/order" - "furtuna-be/internal/entity" - "furtuna-be/internal/repository" - "furtuna-be/internal/utils/generator" "go.uber.org/zap" "golang.org/x/net/context" "gorm.io/gorm" diff --git a/internal/services/oss/impl.go b/internal/services/oss/impl.go index d7ac7cf..91790b1 100644 --- a/internal/services/oss/impl.go +++ b/internal/services/oss/impl.go @@ -2,9 +2,9 @@ package oss import ( "context" + "enaklo-pos-be/internal/entity" + "enaklo-pos-be/internal/utils/generator" "fmt" - "furtuna-be/internal/entity" - "furtuna-be/internal/utils/generator" "path" "github.com/go-playground/validator/v10" diff --git a/internal/services/oss/init.go b/internal/services/oss/init.go index 9c764f4..bd99652 100644 --- a/internal/services/oss/init.go +++ b/internal/services/oss/init.go @@ -1,6 +1,6 @@ package oss -import "furtuna-be/internal/repository" +import "enaklo-pos-be/internal/repository" type OssService struct { ossRepo repository.OSSRepository diff --git a/internal/services/partner/partner.go b/internal/services/partner/partner.go index 9ee0ae7..af676b2 100644 --- a/internal/services/partner/partner.go +++ b/internal/services/partner/partner.go @@ -2,11 +2,11 @@ package partner import ( "context" - "furtuna-be/internal/common/logger" - "furtuna-be/internal/common/mycontext" - "furtuna-be/internal/entity" - "furtuna-be/internal/repository" - "furtuna-be/internal/services/users" + "enaklo-pos-be/internal/common/logger" + "enaklo-pos-be/internal/common/mycontext" + "enaklo-pos-be/internal/entity" + "enaklo-pos-be/internal/repository" + "enaklo-pos-be/internal/services/users" "go.uber.org/zap" ) diff --git a/internal/services/product/product.go b/internal/services/product/product.go index 105621c..0d5963f 100644 --- a/internal/services/product/product.go +++ b/internal/services/product/product.go @@ -2,10 +2,10 @@ package product import ( "context" - "furtuna-be/internal/common/logger" - "furtuna-be/internal/common/mycontext" - "furtuna-be/internal/entity" - "furtuna-be/internal/repository" + "enaklo-pos-be/internal/common/logger" + "enaklo-pos-be/internal/common/mycontext" + "enaklo-pos-be/internal/entity" + "enaklo-pos-be/internal/repository" "go.uber.org/zap" ) diff --git a/internal/services/service.go b/internal/services/service.go index 47ee8f6..85f2af9 100644 --- a/internal/services/service.go +++ b/internal/services/service.go @@ -2,26 +2,26 @@ package services import ( "context" - "furtuna-be/internal/common/mycontext" - "furtuna-be/internal/services/balance" - "furtuna-be/internal/services/discovery" - service "furtuna-be/internal/services/license" - "furtuna-be/internal/services/order" - "furtuna-be/internal/services/oss" - "furtuna-be/internal/services/partner" - "furtuna-be/internal/services/product" - site "furtuna-be/internal/services/sites" - "furtuna-be/internal/services/studio" - "furtuna-be/internal/services/transaction" - "furtuna-be/internal/services/users" + "enaklo-pos-be/internal/common/mycontext" + "enaklo-pos-be/internal/services/balance" + "enaklo-pos-be/internal/services/discovery" + service "enaklo-pos-be/internal/services/license" + "enaklo-pos-be/internal/services/order" + "enaklo-pos-be/internal/services/oss" + "enaklo-pos-be/internal/services/partner" + "enaklo-pos-be/internal/services/product" + site "enaklo-pos-be/internal/services/sites" + "enaklo-pos-be/internal/services/studio" + "enaklo-pos-be/internal/services/transaction" + "enaklo-pos-be/internal/services/users" "gorm.io/gorm" - "furtuna-be/config" - "furtuna-be/internal/entity" - "furtuna-be/internal/repository" - "furtuna-be/internal/services/auth" - "furtuna-be/internal/services/event" + "enaklo-pos-be/config" + "enaklo-pos-be/internal/entity" + "enaklo-pos-be/internal/repository" + "enaklo-pos-be/internal/services/auth" + "enaklo-pos-be/internal/services/event" ) type ServiceManagerImpl struct { diff --git a/internal/services/sites/sites.go b/internal/services/sites/sites.go index fc1ea08..13a42d6 100644 --- a/internal/services/sites/sites.go +++ b/internal/services/sites/sites.go @@ -2,11 +2,11 @@ package site import ( "context" - "furtuna-be/internal/common/logger" - "furtuna-be/internal/common/mycontext" - "furtuna-be/internal/constants/role" - "furtuna-be/internal/entity" - "furtuna-be/internal/repository" + "enaklo-pos-be/internal/common/logger" + "enaklo-pos-be/internal/common/mycontext" + "enaklo-pos-be/internal/constants/role" + "enaklo-pos-be/internal/entity" + "enaklo-pos-be/internal/repository" "go.uber.org/zap" ) diff --git a/internal/services/studio/studio.go b/internal/services/studio/studio.go index adb145c..14a9156 100644 --- a/internal/services/studio/studio.go +++ b/internal/services/studio/studio.go @@ -2,10 +2,10 @@ package studio import ( "context" - "furtuna-be/internal/common/logger" - "furtuna-be/internal/common/mycontext" - "furtuna-be/internal/entity" - "furtuna-be/internal/repository" + "enaklo-pos-be/internal/common/logger" + "enaklo-pos-be/internal/common/mycontext" + "enaklo-pos-be/internal/entity" + "enaklo-pos-be/internal/repository" "go.uber.org/zap" ) diff --git a/internal/services/transaction/transaction.go b/internal/services/transaction/transaction.go index 053798a..6df8daa 100644 --- a/internal/services/transaction/transaction.go +++ b/internal/services/transaction/transaction.go @@ -1,11 +1,11 @@ package transaction import ( - errors2 "furtuna-be/internal/common/errors" - "furtuna-be/internal/common/logger" - "furtuna-be/internal/common/mycontext" - "furtuna-be/internal/entity" - "furtuna-be/internal/repository" + errors2 "enaklo-pos-be/internal/common/errors" + "enaklo-pos-be/internal/common/logger" + "enaklo-pos-be/internal/common/mycontext" + "enaklo-pos-be/internal/entity" + "enaklo-pos-be/internal/repository" "go.uber.org/zap" ) diff --git a/internal/services/users/users.go b/internal/services/users/users.go index b112501..20ea28a 100644 --- a/internal/services/users/users.go +++ b/internal/services/users/users.go @@ -1,17 +1,17 @@ package users import ( + "enaklo-pos-be/internal/common/mycontext" "errors" "fmt" - "furtuna-be/internal/common/mycontext" "gorm.io/gorm" "go.uber.org/zap" - "furtuna-be/internal/common/logger" - "furtuna-be/internal/entity" - "furtuna-be/internal/repository" + "enaklo-pos-be/internal/common/logger" + "enaklo-pos-be/internal/entity" + "enaklo-pos-be/internal/repository" ) type UserService struct { diff --git a/k8s/production/deployment.yaml b/k8s/production/deployment.yaml index f71bd19..b4e59c6 100644 --- a/k8s/production/deployment.yaml +++ b/k8s/production/deployment.yaml @@ -1,27 +1,27 @@ apiVersion: apps/v1 kind: Deployment metadata: - name: furtuna-backend + name: enaklo-pos-backend namespace: altru-production spec: selector: matchLabels: - app: furtuna-backend + app: enaklo-pos-backend replicas: 1 template: metadata: labels: - app: furtuna-backend + app: enaklo-pos-backend spec: serviceAccountName: custom-serviceaccount containers: - - name: furtuna-backend - image: registry.gitlab.com/altru.id/furtuna/furtuna-backend: + - name: enaklo-pos-backend + image: registry.gitlab.com/altru.id/enaklo-pos/enaklo-pos-backend: ports: - containerPort: 3300 volumeMounts: - mountPath: "/infra" - name: furtuna-backend-secret + name: enaklo-pos-backend-secret readOnly: true - mountPath: "/templates" name: templates-configmap @@ -29,9 +29,9 @@ spec: - name: ENV_MODE value: "production" volumes: - - name: furtuna-backend-secret + - name: enaklo-pos-backend-secret secret: - secretName: furtuna-backend-secret + secretName: enaklo-pos-backend-secret - name: templates-configmap configMap: name: templates-configmap diff --git a/k8s/production/ingress-cors.yaml b/k8s/production/ingress-cors.yaml index c8bb9f4..c86fe88 100644 --- a/k8s/production/ingress-cors.yaml +++ b/k8s/production/ingress-cors.yaml @@ -1,7 +1,7 @@ apiVersion: networking.k8s.io/v1 kind: Ingress metadata: - name: furtuna-backend + name: enaklo-pos-backend namespace: altru-production annotations: kubernetes.io/ingress.class: "nginx" @@ -14,17 +14,17 @@ metadata: nginx.ingress.kubernetes.io/cors-allow-credentials: "true" spec: rules: - - host: "api.furtuna.id" + - host: "api.enaklo-pos.id" http: paths: - pathType: Prefix path: / backend: service: - name: furtuna-backend + name: enaklo-pos-backend port: number: 3300 tls: - hosts: - - "api.furtuna.id" - secretName: api-furtuna-biz-id-tls + - "api.enaklo-pos.id" + secretName: api-enaklo-pos-biz-id-tls diff --git a/k8s/production/ingress.yaml b/k8s/production/ingress.yaml index b2b3324..3fa292e 100644 --- a/k8s/production/ingress.yaml +++ b/k8s/production/ingress.yaml @@ -1,7 +1,7 @@ apiVersion: networking.k8s.io/v1 kind: Ingress metadata: - name: furtuna-backend + name: enaklo-pos-backend namespace: altru-production annotations: kubernetes.io/ingress.class: "nginx" # Add this line @@ -9,17 +9,17 @@ metadata: nginx.ingress.kubernetes.io/ingress-class: "nginx" # Add this line spec: rules: - - host: "api.furtuna.id" + - host: "api.enaklo-pos.id" http: paths: - pathType: Prefix path: / backend: service: - name: furtuna-backend + name: enaklo-pos-backend port: number: 3300 tls: - hosts: - - "api.furtuna.id" - secretName: api-furtuna-biz-id-tls + - "api.enaklo-pos.id" + secretName: api-enaklo-pos-biz-id-tls diff --git a/k8s/production/service.yaml b/k8s/production/service.yaml index 878f885..752afb5 100644 --- a/k8s/production/service.yaml +++ b/k8s/production/service.yaml @@ -1,15 +1,15 @@ apiVersion: v1 kind: Service metadata: - name: furtuna-backend + name: enaklo-pos-backend namespace: altru-production labels: - run: furtuna-backend + run: enaklo-pos-backend spec: ports: - port: 3300 protocol: TCP targetPort: 3300 selector: - app: furtuna-backend + app: enaklo-pos-backend type: ClusterIP diff --git a/k8s/staging/ingress.yaml b/k8s/staging/ingress.yaml index 6ea8a9d..d4bda78 100644 --- a/k8s/staging/ingress.yaml +++ b/k8s/staging/ingress.yaml @@ -9,7 +9,7 @@ metadata: nginx.ingress.kubernetes.io/ingress-class: "nginx" # Add this line spec: rules: - - host: "enaklo-pos-backend.app-dev.altru.id" + - host: "api-dev.enaklo.co.id" http: paths: - pathType: Prefix @@ -21,5 +21,5 @@ spec: number: 3300 tls: - hosts: - - "enaklo-pos-backend.app-dev.altru.id" + - "api-dev.enaklo.co.id" secretName: enaklo-pos-backend-app-dev-biz-id-tls diff --git a/main.go b/main.go index c2eac69..ead25bb 100644 --- a/main.go +++ b/main.go @@ -4,14 +4,14 @@ import ( "fmt" "log" - "furtuna-be/config" - _ "furtuna-be/docs" - "furtuna-be/internal/app" - "furtuna-be/internal/common/db" - "furtuna-be/internal/common/logger" - "furtuna-be/internal/repository" - "furtuna-be/internal/routes" - "furtuna-be/internal/services" + "enaklo-pos-be/config" + _ "enaklo-pos-be/docs" + "enaklo-pos-be/internal/app" + "enaklo-pos-be/internal/common/db" + "enaklo-pos-be/internal/common/logger" + "enaklo-pos-be/internal/repository" + "enaklo-pos-be/internal/routes" + "enaklo-pos-be/internal/services" ) func main() { diff --git a/migrations/000001_add_table_user.up.sql b/migrations/000001_add_table_user.up.sql index 02c8e0f..dad9ff0 100644 --- a/migrations/000001_add_table_user.up.sql +++ b/migrations/000001_add_table_user.up.sql @@ -19,4 +19,4 @@ CREATE TABLE users ); INSERT INTO users(id, name, email, password, status) -VALUES (1, 'Super Admin', 'admin@furtuna.id', '$2a$10$gsDEsviRfy5gQ8ubFH/lYObL.6FuRSAoXUh6e9ZDXmWTXYzK51pPO', 'Active'); \ No newline at end of file +VALUES (1, 'Super Admin', 'admin@enaklo-pos.id', '$2a$10$gsDEsviRfy5gQ8ubFH/lYObL.6FuRSAoXUh6e9ZDXmWTXYzK51pPO', 'Active'); \ No newline at end of file diff --git a/templates/reset_password.html b/templates/reset_password.html index 62f6438..76469da 100644 --- a/templates/reset_password.html +++ b/templates/reset_password.html @@ -119,7 +119,7 @@
- +
Lupa Kata Sandi
Kami mengirimkan Anda email ini karena Anda meminta pengaturan ulang kata sandi. Berikut adalah kata sandi sementara Anda: