infrastructure.go 488 B

12345678910111213141516171819
  1. package infrastructure
  2. import (
  3. "git.sxidc.com/go-framework/baize/infrastructure/database/data_service"
  4. "git.sxidc.com/go-framework/baize/infrastructure/database/db_operations"
  5. )
  6. type Infrastructure struct {
  7. dbOperations *db_operations.DBOperations
  8. dataService *data_service.DataService
  9. }
  10. func (i Infrastructure) GetDBOperations() *db_operations.DBOperations {
  11. return i.dbOperations
  12. }
  13. func (i Infrastructure) GetDataService() *data_service.DataService {
  14. return i.dataService
  15. }