优化结构
This commit is contained in:
@@ -1,16 +1,17 @@
|
||||
package router
|
||||
|
||||
import (
|
||||
"kra/internal/server/handler"
|
||||
platformmodule "kra/pkg/module"
|
||||
|
||||
"github.com/gin-gonic/gin"
|
||||
)
|
||||
|
||||
type Routes struct {
|
||||
handlers *Set
|
||||
handlers *handler.Set
|
||||
}
|
||||
|
||||
func NewRoutes(handlers *Set) *Routes { return &Routes{handlers: handlers} }
|
||||
func NewRoutes(handlers *handler.Set) *Routes { return &Routes{handlers: handlers} }
|
||||
|
||||
var _ platformmodule.RouteRegistrar = (*Routes)(nil)
|
||||
|
||||
|
||||
Reference in New Issue
Block a user