定义 device service

This commit is contained in:
2025-09-15 21:28:22 +08:00
parent b183ad660f
commit 4980495f90
2 changed files with 60 additions and 0 deletions

View File

@@ -0,0 +1,18 @@
package device
import (
"git.huangwc.com/pig/pig-farm-controller/internal/infra/models"
)
type GeneralDeviceService struct {
}
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")
}