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.
18 lines
414 B
18 lines
414 B
1 year ago
|
package controller
|
||
|
|
||
|
import (
|
||
|
"github.com/labstack/echo/v4"
|
||
|
"sorbet/internal/entities"
|
||
|
"sorbet/internal/services/config/request"
|
||
|
"sorbet/internal/util"
|
||
|
)
|
||
|
|
||
|
type ConfigGroupController struct {
|
||
|
util.Controller[entities.ConfigGroup, request.ConfigGroupUpsertRequest]
|
||
|
}
|
||
|
|
||
|
// InitRoutes 实现路由注册接口
|
||
|
func (ctr *ConfigGroupController) InitRoutes(r *echo.Group) {
|
||
|
ctr.RegisterRoutes("/config/groups", r)
|
||
|
}
|