feat(module): add GetModuleConfig handler and logic for module configuration retrieval

This commit is contained in:
Chang lue Tsen
2025-11-09 09:06:42 -05:00
parent 87b743a2a2
commit cb5bf5aae3
4 changed files with 68 additions and 11 deletions
@@ -0,0 +1,18 @@
package system
import (
"github.com/gin-gonic/gin"
"github.com/perfect-panel/server/internal/logic/admin/system"
"github.com/perfect-panel/server/internal/svc"
"github.com/perfect-panel/server/pkg/result"
)
// GetModuleConfigHandler Get Module Config
func GetModuleConfigHandler(svcCtx *svc.ServiceContext) func(c *gin.Context) {
return func(c *gin.Context) {
l := system.NewGetModuleConfigLogic(c.Request.Context(), svcCtx)
resp, err := l.GetModuleConfig()
result.HttpResult(c, resp, err)
}
}