package com.energy.manage.service.client.skf;

import com.alibaba.fastjson.JSONObject;
import com.dtflys.forest.annotation.*;
import com.energy.manage.service.constant.client.skf.SkfClientConstants;
import com.energy.manage.service.domain.client.skf.*;

import java.util.List;

public interface DynamicMeasurementsClient {


    /**
     * 获取skf DynamicMeasurementsClient
     *
     * @return
     */
    @Get(
            url = SkfClientConstants.SKF_REQUEST_PATH + SkfClientConstants.SKF_DM_PATH + "{1}/dynamicMeasurements"
    )
    List<DynamicMeasurementsVo> getSkfDynamicMeasurements(@Header("Authorization") String authorization, Integer pointId,
                                                          @Query("fromDateUTC")String fromDateUTC, @Query("toDateUTC")String toDateUTC);


    @Get(
            url = SkfClientConstants.SKF_REQUEST_PATH + SkfClientConstants.SKF_HIERARCHY
    )
    List<HierarchyListVo> getSkfHierarchy(@Header("Authorization") String authorization);


    /**
     * 获取机器编号
     * @param authorization
     * @return
     */
    @Get(
            url = SkfClientConstants.SKF_REQUEST_PATH + SkfClientConstants.SKF_MACHINES_URL
    )
    List<MachineVO> getMachine(@Header("Authorization") String authorization);


    /**
     * 获取故障频率
     * @param authorization
     * @return
     */
    @Get(
            url = SkfClientConstants.SKF_REQUEST_PATH + SkfClientConstants.SKF_PARTS_URL + "{1}"
    )
    MachinePartVO  getMachinePart(@Header("Authorization") String authorization,Integer machineId);

}
