go项目脚手架
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
sorbet/internal/services/config/controller/config_controller.go

17 lines
342 B

1 year ago
package controller
import (
"github.com/labstack/echo/v4"
"sorbet/internal/entities"
"sorbet/internal/services/config/request"
"sorbet/pkg/app"
1 year ago
)
type ConfigController struct {
app.Controller[entities.Config, request.ConfigUpsertRequest]
1 year ago
}
func (ctr *ConfigController) InitRoutes(r *echo.Group) {
ctr.RegisterRoutes("/configs", r)
1 year ago
}