package com.pig4cloud.pig.marketing.repository;

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

/**
 * @author: lwh
 * @date: 2025-08-27
 * @description: 消息数据访问接口
 */
public interface MessageRepository extends MongoRepository<Message, String> {

    /**
     * 根据clientID查询消息
     * @param clientID 客户端ID
     * @return List<Message>
     */
    List<Message> findByClientIDOrderByReportTimeDesc(String clientID);



}