定义GeneralDeviceService
This commit is contained in:
@@ -2,9 +2,11 @@ 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 {
|
||||
|
||||
Reference in New Issue
Block a user