定义GeneralDeviceService

This commit is contained in:
2025-09-15 22:25:05 +08:00
parent 264bcf9cb7
commit b7c67ea3c2

View File

@@ -2,9 +2,11 @@ package device
import ( import (
"git.huangwc.com/pig/pig-farm-controller/internal/infra/models" "git.huangwc.com/pig/pig-farm-controller/internal/infra/models"
"git.huangwc.com/pig/pig-farm-controller/internal/infra/transport"
) )
type GeneralDeviceService struct { type GeneralDeviceService struct {
comm transport.Communicator
} }
func (g *GeneralDeviceService) Switch(device models.Device, action DeviceAction) error { func (g *GeneralDeviceService) Switch(device models.Device, action DeviceAction) error {