2025-09-15 21:28:22 +08:00
|
|
|
package device
|
|
|
|
|
|
|
|
|
|
import (
|
|
|
|
|
"git.huangwc.com/pig/pig-farm-controller/internal/infra/models"
|
2025-09-15 22:25:05 +08:00
|
|
|
"git.huangwc.com/pig/pig-farm-controller/internal/infra/transport"
|
2025-09-15 21:28:22 +08:00
|
|
|
)
|
|
|
|
|
|
|
|
|
|
type GeneralDeviceService struct {
|
2025-09-15 22:25:05 +08:00
|
|
|
comm transport.Communicator
|
2025-09-15 21:28:22 +08:00
|
|
|
}
|
|
|
|
|
|
|
|
|
|
func (g *GeneralDeviceService) Switch(device models.Device, action DeviceAction) error {
|
|
|
|
|
//TODO implement me
|
|
|
|
|
panic("implement me")
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
func (g *GeneralDeviceService) Ping() error {
|
|
|
|
|
//TODO implement me
|
|
|
|
|
panic("implement me")
|
|
|
|
|
}
|