service.go 473 B

1234567891011121314151617181920212223242526
  1. package service
  2. import "git.sxidc.com/go-framework/baize/framework/core/application"
  3. const (
  4. dbSchema = "test"
  5. )
  6. type Service interface {
  7. Init(appInstance *application.App) error
  8. Destroy() error
  9. }
  10. var RegisteredServices = []Service{
  11. versionService,
  12. configurationService,
  13. sqlExecutorService,
  14. classService,
  15. studentService,
  16. identityService,
  17. familyService,
  18. classAndStudentService,
  19. studentAndFamilyService,
  20. studentAndIdentityService,
  21. studentAndHobbyService,
  22. }