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.
|
|
|
package system
|
|
|
|
|
|
|
|
import (
|
|
|
|
"sorbet/internal/services/system/controller"
|
|
|
|
"sorbet/pkg/crud"
|
|
|
|
)
|
|
|
|
|
|
|
|
type Service struct{}
|
|
|
|
|
|
|
|
func (*Service) Name() string {
|
|
|
|
return "system"
|
|
|
|
}
|
|
|
|
|
|
|
|
func (*Service) Priority() int {
|
|
|
|
return 3
|
|
|
|
}
|
|
|
|
|
|
|
|
func (s *Service) Init(ctx *crud.Context) error {
|
|
|
|
ctx.Routes(&controller.SystemLogController{})
|
|
|
|
ctx.Routes(&controller.SystemMenuController{})
|
|
|
|
ctx.Routes(&controller.SystemPermissionController{})
|
|
|
|
ctx.Routes(&controller.SystemRoleController{})
|
|
|
|
ctx.Routes(&controller.SystemRolePowerController{})
|
|
|
|
ctx.Routes(&controller.SystemUserController{})
|
|
|
|
return nil
|
|
|
|
}
|
|
|
|
|
|
|
|
func (s *Service) Bootstrap() error { return nil }
|
|
|
|
func (s *Service) Destroy() error { return nil }
|