|
package service
|
|
|
|
import (
|
|
"github.com/gofiber/fiber/v2"
|
|
)
|
|
|
|
type PageService struct{}
|
|
|
|
func NewPageService() *PageService {
|
|
return &PageService{}
|
|
}
|
|
|
|
// Index 首页
|
|
func (h *PageService) Index(c *fiber.Ctx) error {
|
|
return c.SendFile("./web/templates/index.html")
|
|
}
|