func setDevice(target *models.Device, src *models.Device) { target.ID = src.ID target.ProductID = src.ProductID target.DeviceIdentifier = src.DeviceIdentifier target.DeviceSecret = src.DeviceIdentifier target.DeviceKey = src.DeviceKey target.DeviceName = src.DeviceName target.DeviceDescription = src.DeviceDescription target.DeviceVersion = src.DeviceVersion target.CreatedAt = src.CreatedAt target.UpdatedAt = src.UpdatedAt }