package com.sikey.wa04.business.domain.adapter;

import com.sikey.wa04.business.domain.entity.ChildId;
import com.sikey.wa04.business.domain.entity.Device;
import com.sikey.wa04.common.exception.BusinessException;

/**
 * 设备查询适配器
 *
 * @author luoyangwei
 */
public interface DeviceQueryAdapter {

    /**
     * 根据孩子ID查询设备
     *
     * @param cid 孩子ID
     * @return 设备
     */
    Device findByChildId(ChildId cid) throws BusinessException;

    /**
     * 查询设备
     * @param ticket
     * @return
     * @throws BusinessException
     */
    Device queryDeviceByTicket(String ticket) throws BusinessException;

}
