package cn.pluss.platform.ali.device;

import cn.pluss.platform.alidevice.AliScanCodeDevicePayEntity;
import cn.pluss.platform.alidevice.AliScanCodeDeviceStatus;
import cn.pluss.platform.alidevice.RespDeviceEntity;
import cn.pluss.platform.api.Result;

/**
 * 阿里云设备接口服务类
 * @author: Administrator
 * @DATE: 2021/12/22 11:31
 */
public interface AliDeviceService {

    /**
     * 获取设备状态V1
     * @date: 2021/12/22 11:43
     * @return cn.pluss.platform.api.Result<java.lang.Object>
     */
    RespDeviceEntity getDeviceStatusV1(String deivceNo);

    /**
     * 获取设备状态V2
     * @date: 2021/12/22 11:44
     * @param deivceNo:
     * @return cn.pluss.platform.api.Result<java.lang.Object>
     */
    RespDeviceEntity getDeviceStatusV2(String deivceNo);

    /**
     * 绑定设备
     * @date: 2021/12/22 14:06
     * @param deivceNo:厂商设备号
     * @param userId :用户ID
     * @return
     */
    Result<Object> bindDevice(String deivceNo, String userId);

    /**
     * 设备支付
     * @date: 2021/12/22 14:42
     * @param entity:
     * @param payCode:
     * @return RespDeviceEntity
     */
    RespDeviceEntity orderPay(AliScanCodeDevicePayEntity entity, String payCode);

    /**
     * 订单查询
     * @date: 2021/12/22 18:35
     * @param orderNumber:
     * @return RespDeviceEntity
     */
    RespDeviceEntity orderQuery(String orderNumber);
}
