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.

38 lines
597 B

1 year ago
package company
import (
"context"
"sorbet/internal/runtime"
1 year ago
"sorbet/internal/services/company/controller"
)
type Service struct{}
func (*Service) Name() string {
return "company"
1 year ago
}
func (*Service) Priority() int {
return 1
1 year ago
}
func (s *Service) Init(context.Context) error {
1 year ago
return nil
}
func (s *Service) Routes() []runtime.Routable {
return []runtime.Routable{
&controller.CompanyController{},
&controller.CompanyDepartmentController{},
&controller.CompanyStaffController{},
}
}
func (s *Service) Start() error {
return nil
}
func (s *Service) Stop() error {
return nil
}