service.go 452 B

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