service.go 512 B

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