You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

26 lines
608 B

4 years ago
4 years ago
4 years ago
4 years ago
4 years ago
4 years ago
4 years ago
4 years ago
4 years ago
4 years ago
  1. package config
  2. import (
  3. "git.aiterp.net/lucifer/new-server/internal/mysql"
  4. "git.aiterp.net/lucifer/new-server/models"
  5. )
  6. func BridgeRepository() models.BridgeRepository {
  7. return &mysql.BridgeRepo{DBX: DBX()}
  8. }
  9. func ColorPresetRepository() models.ColorPresetRepository {
  10. return &mysql.ColorPresetRepo{DBX: DBX()}
  11. }
  12. func DeviceRepository() models.DeviceRepository {
  13. return &mysql.DeviceRepo{DBX: DBX()}
  14. }
  15. func EventHandlerRepository() models.EventHandlerRepository {
  16. return &mysql.EventHandlerRepo{DBX: DBX()}
  17. }
  18. func SceneRepository() models.SceneRepository {
  19. return &mysql.SceneRepo{DBX: DBX()}
  20. }