mirror of
https://github.com/Awuqing/BackupX.git
synced 2026-05-06 20:02:41 +08:00
20 lines
438 B
Go
20 lines
438 B
Go
package http
|
|
|
|
import (
|
|
"backupx/server/internal/service"
|
|
"backupx/server/pkg/response"
|
|
"github.com/gin-gonic/gin"
|
|
)
|
|
|
|
type SystemHandler struct {
|
|
systemService *service.SystemService
|
|
}
|
|
|
|
func NewSystemHandler(systemService *service.SystemService) *SystemHandler {
|
|
return &SystemHandler{systemService: systemService}
|
|
}
|
|
|
|
func (h *SystemHandler) Info(c *gin.Context) {
|
|
response.Success(c, h.systemService.GetInfo(c.Request.Context()))
|
|
}
|