实现ReleaseFeedWeightTask

This commit is contained in:
2025-09-25 11:17:13 +08:00
parent f6941fe002
commit 50aac8d7e5
7 changed files with 142 additions and 18 deletions

View File

@@ -29,7 +29,7 @@ func NewGeneralDeviceService(deviceRepo repository.DeviceRepository, logger *log
}
}
func (g *GeneralDeviceService) Switch(device models.Device, action DeviceAction) error {
func (g *GeneralDeviceService) Switch(device *models.Device, action DeviceAction) error {
// 校验设备参数及生成指令
if *device.ParentID == 0 {