21 lines
456 B
Go
21 lines
456 B
Go
package device
|
|
|
|
import (
|
|
"git.huangwc.com/pig/pig-farm-controller/internal/infra/models"
|
|
"git.huangwc.com/pig/pig-farm-controller/internal/infra/transport"
|
|
)
|
|
|
|
type GeneralDeviceService struct {
|
|
comm transport.Communicator
|
|
}
|
|
|
|
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")
|
|
}
|