拆分device.Service接口
This commit is contained in:
@@ -32,7 +32,7 @@ type ReleaseFeedWeightTask struct {
|
||||
releaseWeight float32
|
||||
mixingTankDeviceID uint32
|
||||
|
||||
feedPort device.Service
|
||||
feedPort device.DeviceOperator
|
||||
|
||||
// onceParse 保证解析参数只执行一次
|
||||
onceParse sync.Once
|
||||
@@ -44,7 +44,7 @@ func NewReleaseFeedWeightTask(
|
||||
claimedLog *models.TaskExecutionLog,
|
||||
sensorDataRepo repository.SensorDataRepository,
|
||||
deviceRepo repository.DeviceRepository,
|
||||
deviceService device.Service,
|
||||
deviceService device.DeviceOperator,
|
||||
) plan.Task {
|
||||
return &ReleaseFeedWeightTask{
|
||||
ctx: ctx,
|
||||
|
||||
Reference in New Issue
Block a user