重构 #4
| @@ -22,9 +22,6 @@ type Service interface { | |||||||
|  |  | ||||||
| 	// Switch 用于切换指定设备的状态, 比如启动和停止 | 	// Switch 用于切换指定设备的状态, 比如启动和停止 | ||||||
| 	Switch(device models.Device, action DeviceAction) error | 	Switch(device models.Device, action DeviceAction) error | ||||||
|  |  | ||||||
| 	// Ping 用于检查设备是否正常 |  | ||||||
| 	Ping() error |  | ||||||
| } | } | ||||||
|  |  | ||||||
| // 设备操作指令通用结构(最外层) | // 设备操作指令通用结构(最外层) | ||||||
|   | |||||||
		Reference in New Issue
	
	Block a user