configuration.go 592 B

12345678910111213141516171819202122232425
  1. package service
  2. import (
  3. "git.sxidc.com/go-framework/baize/convenient/domain/configuration"
  4. "git.sxidc.com/go-framework/baize/framework/core/application"
  5. )
  6. var configurationService = &ConfigurationService{}
  7. type ConfigurationService struct{}
  8. func (svc *ConfigurationService) Init(appInstance *application.App) error {
  9. svc.prefixRoot(appInstance)
  10. return nil
  11. }
  12. func (svc *ConfigurationService) Destroy() error {
  13. return nil
  14. }
  15. func (svc *ConfigurationService) prefixRoot(appInstance *application.App) {
  16. configuration.Bind(appInstance, &configuration.Simple{
  17. Schema: dbSchema,
  18. })
  19. }