修复创建设备无法回调驱动bug

master
gongcheng 2024-05-05 15:17:57 +08:00
parent 25ad18da2a
commit ad9e138d8c
1 changed files with 4 additions and 1 deletions

View File

@ -162,6 +162,9 @@ func (p *deviceApp) AddDevice(ctx context.Context, req dtos.DeviceAddRequest) (s
if err != nil {
return "", err
}
go func() {
p.CreateDeviceCallBack(insertDevice)
}()
return id, nil
}
@ -310,7 +313,7 @@ func (p *deviceApp) DevicesUnBindDriver(ctx context.Context, req dtos.DevicesUnB
return nil
}
//DevicesBindProductId
// DevicesBindProductId
func (p *deviceApp) DevicesBindProductId(ctx context.Context, req dtos.DevicesBindProductId) error {
var searchReq dtos.DeviceSearchQueryRequest
searchReq.ProductId = req.ProductId