Update Infra

This commit is contained in:
aditya.siregar
2025-03-04 20:36:17 +07:00
parent ffd40d4f51
commit 3c80b710af
95 changed files with 341 additions and 341 deletions
+8 -8
View File
@@ -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
+4 -4
View File
@@ -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"
)
+3 -3
View File
@@ -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 (
+3 -3
View File
@@ -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 {
+4 -4
View File
@@ -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"
)
+7 -7
View File
@@ -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"
+2 -2
View File
@@ -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"
+1 -1
View File
@@ -1,6 +1,6 @@
package oss
import "furtuna-be/internal/repository"
import "enaklo-pos-be/internal/repository"
type OssService struct {
ossRepo repository.OSSRepository
+5 -5
View File
@@ -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"
)
+4 -4
View File
@@ -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"
)
+17 -17
View File
@@ -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 {
+5 -5
View File
@@ -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"
)
+4 -4
View File
@@ -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"
)
+5 -5
View File
@@ -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"
)
+4 -4
View File
@@ -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 {