优化结构

This commit is contained in:
Yvan
2026-08-22 12:13:16 +08:00
parent d987244d0e
commit b27a66e9d3
200 changed files with 1794 additions and 1715 deletions
+4 -5
View File
@@ -2,16 +2,15 @@ package service
import (
"context"
"kra/internal/biz/system"
"time"
"kra/internal/biz"
)
type SecurityService struct {
uc *biz.SecurityUsecase
uc *system.SecurityUsecase
}
func NewSecurityService(uc *biz.SecurityUsecase) *SecurityService {
func NewSecurityService(uc *system.SecurityUsecase) *SecurityService {
return &SecurityService{uc: uc}
}
@@ -61,7 +60,7 @@ func (s *SecurityService) DeleteCaptcha(ctx context.Context, id string) error {
func (s *SecurityService) UseMultipoint() bool { return s.uc.UseMultipoint() }
func (s *SecurityService) CaptchaSettings() biz.CaptchaSettings {
func (s *SecurityService) CaptchaSettings() system.CaptchaSettings {
return s.uc.CaptchaRuntimeSettings()
}