重构 #4

Merged
huang merged 106 commits from 重构 into main 2025-09-18 21:51:17 +08:00
Showing only changes of commit b7c67ea3c2 - Show all commits

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 {