增加添加默认设备头像
This commit is contained in:
@@ -5,6 +5,8 @@ import com.onekeycall.videotablet.repository.DeviceSnRepository;
|
||||
import org.springframework.beans.factory.annotation.Autowired;
|
||||
import org.springframework.stereotype.Service;
|
||||
|
||||
import java.util.List;
|
||||
|
||||
@Service
|
||||
public class DeviceSnService {
|
||||
private final DeviceSnRepository deviceSnRepository;
|
||||
@@ -14,6 +16,10 @@ public class DeviceSnService {
|
||||
this.deviceSnRepository = deviceSnRepository;
|
||||
}
|
||||
|
||||
public List<DeviceInfo> findByUserId(String userId) {
|
||||
return deviceSnRepository.findByUserId(userId);
|
||||
}
|
||||
|
||||
public DeviceInfo findBySn(String sn) {
|
||||
return deviceSnRepository.findBySn(sn);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user