优化结构

This commit is contained in:
Yvan
2026-08-28 00:29:40 +08:00
parent 04ff85116c
commit 03a4131f6e
118 changed files with 758 additions and 834 deletions
+3 -3
View File
@@ -1,15 +1,15 @@
package handler
import (
"kra/internal/service"
"kra/internal/service/dto"
systemservice "kra/internal/service/system"
"github.com/gin-gonic/gin"
)
type Email struct{ service *service.EmailService }
type Email struct{ service *systemservice.EmailService }
func NewEmail(service *service.EmailService) *Email { return &Email{service: service} }
func NewEmail(service *systemservice.EmailService) *Email { return &Email{service: service} }
func (h *Email) Test(c *gin.Context) {
if err := h.service.Test(c.Request.Context()); err != nil {