优化结构

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
@@ -2,17 +2,17 @@ package handler
import (
"errors"
"kra/internal/service"
"kra/internal/service/dto"
systemservice "kra/internal/service/system"
"net/http"
"strconv"
"github.com/gin-gonic/gin"
)
type Media struct{ service *service.MediaService }
type Media struct{ service *systemservice.MediaService }
func NewMedia(service *service.MediaService) *Media { return &Media{service: service} }
func NewMedia(service *systemservice.MediaService) *Media { return &Media{service: service} }
func (h *Media) limitMultipartBody(c *gin.Context) int64 {
limit := h.service.MediaConfig().EffectiveMaxFileSize()