service.go 493 B

123456789101112131415161718192021222324252627
  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. operateLogService,
  15. classService,
  16. studentService,
  17. identityService,
  18. familyService,
  19. classAndStudentService,
  20. studentAndFamilyService,
  21. studentAndIdentityService,
  22. studentAndHobbyService,
  23. }