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.
22 lines
520 B
22 lines
520 B
package config
|
|
|
|
import (
|
|
"git.aiterp.net/lucifer/new-server/internal/mysql"
|
|
"git.aiterp.net/lucifer/new-server/models"
|
|
)
|
|
|
|
func BridgeRepository() models.BridgeRepository {
|
|
return &mysql.BridgeRepo{DBX: DBX()}
|
|
}
|
|
|
|
func ColorPresetRepository() models.ColorPresetRepository {
|
|
return &mysql.ColorPresetRepo{DBX: DBX()}
|
|
}
|
|
|
|
func DeviceRepository() models.DeviceRepository {
|
|
return &mysql.DeviceRepo{DBX: DBX()}
|
|
}
|
|
|
|
func EventHandlerRepository() models.EventHandlerRepository {
|
|
return &mysql.EventHandlerRepo{DBX: DBX()}
|
|
}
|