package service // This package is a compatibility facade for the transport layer. Concrete // implementations live under service/system, service/payment, // service/integration, and service/task; aliases here preserve the original // service.* API used by handlers and the composition root. import ( "kra/internal/biz/integration" paymentbiz "kra/internal/biz/payment" "kra/internal/biz/system" taskbiz "kra/internal/biz/task" "kra/internal/service/dto" integrationservice "kra/internal/service/integration" paymentservice "kra/internal/service/payment" systemservice "kra/internal/service/system" taskservice "kra/internal/service/task" "kra/internal/utils/routepath" "github.com/google/wire" ) type AccessControlService = systemservice.AccessControlService type AnnouncementInput = systemservice.AnnouncementInput type AnnouncementService = systemservice.AnnouncementService type APIService = systemservice.APIService type AuditService = systemservice.AuditService type AuditRecorder = systemservice.AuditRecorder type AuthService = systemservice.AuthService type AuthorityService = systemservice.AuthorityService type DepartmentService = systemservice.DepartmentService type DictionaryService = systemservice.DictionaryService type EmailService = systemservice.EmailService type ExportService = systemservice.ExportService type ExportToken = systemservice.ExportToken type LogViewerService = systemservice.LogViewerService type MediaService = systemservice.MediaService type MenuService = systemservice.MenuService type ParameterService = systemservice.ParameterService type PermissionService = systemservice.PermissionService type PositionService = systemservice.PositionService type SecurityService = systemservice.SecurityService type PasswordPolicyError = systemservice.PasswordPolicyError type SystemConfigService = systemservice.SystemConfigService type TokenService = systemservice.TokenService type VersionService = systemservice.VersionService type PaymentService = paymentservice.PaymentService type IntegrationConfigService = integrationservice.IntegrationConfigService type TaskService = taskservice.TaskService type UserService = systemservice.UserService func NewAccessControlService(uc *system.AccessControlUsecase) *AccessControlService { return systemservice.NewAccessControlService(uc) } func NewAnnouncementService(uc *system.AnnouncementUsecase) *AnnouncementService { return systemservice.NewAnnouncementService(uc) } func NewAPIService(uc *system.APIUsecase, settings system.RuntimeSettings) *APIService { return systemservice.NewAPIService(uc, settings) } func NewAuditService(uc *system.AuditUsecase) *AuditService { return systemservice.NewAuditService(uc) } func NewAuditRecorder(uc *system.AuditRecorderUsecase) *AuditRecorder { return systemservice.NewAuditRecorder(uc) } func NewAuthService(uc *system.AuthenticationUsecase) *AuthService { return systemservice.NewAuthService(uc) } func NewAuthorityService(uc *system.AuthorityUsecase) *AuthorityService { return systemservice.NewAuthorityService(uc) } func NewDepartmentService(uc *system.DepartmentUsecase) *DepartmentService { return systemservice.NewDepartmentService(uc) } func NewDictionaryService(uc *system.DictionaryUsecase) *DictionaryService { return systemservice.NewDictionaryService(uc) } func NewEmailService(uc *system.EmailUsecase) *EmailService { return systemservice.NewEmailService(uc) } func NewExportService(uc *system.ExportUsecase, cache system.Cache) *ExportService { return systemservice.NewExportService(uc, cache) } func NewIntegrationConfigService(uc *integration.IntegrationConfigUsecase) *IntegrationConfigService { return integrationservice.NewIntegrationConfigService(uc) } func NewLogViewerService(uc *system.LogViewerUsecase) *LogViewerService { return systemservice.NewLogViewerService(uc) } func NewMediaService(uc *system.MediaUsecase, settings system.RuntimeSettings) *MediaService { return systemservice.NewMediaService(uc, settings) } func NewMenuService(uc *system.MenuUsecase) *MenuService { return systemservice.NewMenuService(uc) } func NewParameterService(uc *system.ParameterUsecase) *ParameterService { return systemservice.NewParameterService(uc) } func NewPaymentService(uc *paymentbiz.PaymentUsecase) *PaymentService { return paymentservice.NewPaymentService(uc) } func NewPermissionService(uc *system.PermissionUsecase) *PermissionService { return systemservice.NewPermissionService(uc) } func NewPositionService(uc *system.PositionUsecase) *PositionService { return systemservice.NewPositionService(uc) } func NewSecurityService(uc *system.SecurityUsecase) *SecurityService { return systemservice.NewSecurityService(uc) } func NewSystemConfigService(uc *system.SystemConfigUsecase, settings system.RuntimeSettings) *SystemConfigService { return systemservice.NewSystemConfigService(uc, settings) } func NewTaskService(uc *taskbiz.TaskApplicationUsecase) *TaskService { return taskservice.NewTaskService(uc) } func NewTokenService(uc *system.TokenUsecase, issuer system.TokenIssuer) *TokenService { return systemservice.NewTokenService(uc, issuer) } func NewUserService(uc *system.UserUsecase, settings *SecurityService) *UserService { return systemservice.NewUserService(uc, settings) } func NewVersionService(uc *system.VersionUsecase) *VersionService { return systemservice.NewVersionService(uc) } var ErrExportTokenInvalid = systemservice.ErrExportTokenInvalid var ErrExportTokenMalformed = systemservice.ErrExportTokenMalformed var ErrExportTokenType = systemservice.ErrExportTokenType func NormalizeRoutePath(path, routerPrefix string) string { return routepath.Normalize(path, routerPrefix) } func IsPasswordPolicyError(err error) bool { return systemservice.IsPasswordPolicyError(err) } func DefaultPaymentCallbackAck(provider string, success bool) dto.PaymentCallbackAck { return paymentservice.DefaultPaymentCallbackAck(provider, success) } // ProviderSet aggregates all service modules for Wire. var ProviderSet = wire.NewSet( systemservice.ProviderSet, paymentservice.ProviderSet, integrationservice.ProviderSet, taskservice.ProviderSet, )