package com.pig4cloud.pig.marketing.repository;

import com.pig4cloud.pig.marketing.api.entity.mongo.Device;
import org.springframework.data.mongodb.repository.MongoRepository;
import java.util.Optional;

/**
 * @author: lwh
 * @date: 2025-08-27
 * @description: 设备信息数据访问接口
 */
public interface DeviceRepository extends MongoRepository<Device, String> {
	/**
	 * 根据clientID查询设备信息
	 * @param clientID 客户端ID
	 * @return Optional<Device>
	 */
	Optional<Device> findByClientID(String clientID);
}