package com.aiotagro.cattletrade.business.service;

import com.aiotagro.cattletrade.business.entity.XqClient;
import com.aiotagro.common.core.web.domain.AjaxResult;
import com.aiotagro.common.core.web.domain.PageResultResponse;
import com.baomidou.mybatisplus.extension.service.IService;

import java.util.Map;

/**
 * 项圈客户端服务接口
 *
 * @author System
 * @date 2025-01-16
 */
public interface IXqClientService extends IService<XqClient> {

    /**
     * 分页查询项圈列表
     */
    PageResultResponse xqList(Map<String, Object> params);
    
    /**
     * 根据运送清单ID查询设备列表
     */
    AjaxResult getDevicesByDeliveryId(Integer deliveryId, Integer deviceType);
    
    /**
     * 查询项圈位置信息
     */
    AjaxResult getCollarLocation(String deliveryId, String xqDeviceId);
    
    /**
     * 查询项圈轨迹
     */
    AjaxResult getCollarTrack(String deliveryId, String xqDeviceId, String trackTime, String trackEndTime);
    
    /**
     * 查询设备轨迹
     */
    AjaxResult getCollarDeviceTrack(String deliveryId, String xqDeviceId, String trackTime, String trackEndTime);
}

