增加websocket

This commit is contained in:
2025-08-08 20:12:46 +08:00
parent 411b7d69d3
commit 503b44d92d
17 changed files with 391 additions and 55 deletions

View File

@@ -0,0 +1,20 @@
package com.onekeycall.videotablet.service;
import com.onekeycall.videotablet.entity.DeviceInfo;
import com.onekeycall.videotablet.repository.DeviceSnRepository;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
@Service
public class DeviceSnService {
private final DeviceSnRepository deviceSnRepository;
@Autowired
public DeviceSnService(DeviceSnRepository deviceSnRepository) {
this.deviceSnRepository = deviceSnRepository;
}
public DeviceInfo findBySn(String sn) {
return deviceSnRepository.findBySn(sn);
}
}