mirror of
https://gitee.com/shikong-sk/gofiber-study
synced 2025-02-25 00:02:17 +08:00
16 lines
222 B
Go
16 lines
222 B
Go
package types
|
|
|
|
import (
|
|
"github.com/gofiber/fiber/v2"
|
|
)
|
|
|
|
type Controller struct {
|
|
Group fiber.Router
|
|
}
|
|
|
|
func NewController(app *fiber.App, group string) *Controller {
|
|
return &Controller{
|
|
Group: app.Group(group),
|
|
}
|
|
}
|