guoshilong
2023-08-02 818113e9a0cf7c20d836291e2a151f7346aad8a7
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
package cn.gistack.nky.fegin;
 
import org.apache.ibatis.annotations.Param;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestParam;
 
@FeignClient(
    value = "blade-nky",
    fallback = INkyClientFallback.class
)
public interface INkyClient {
 
    String API_PREFIX = "/client";
    //Arima预测结果
    String GET_ARIMA_DATA= API_PREFIX + "/getArimaData";
    //Arima预测
    String PREDICT_ARIMA_DATA = API_PREFIX+"/predictArimaData";
 
    //Hst预测结果
    String GET_HST_DATA= API_PREFIX + "/getHstData";
    //Hst预测
    String PREDICT_HST_DATA = API_PREFIX+"/predictHstData";
 
    //按库查询
    String GET_BATCH_DATA = API_PREFIX + "getBatchData";
    //异常查询
    String ALARM_GET_DATA = API_PREFIX + "alarmGetData";
 
    /**
     * 获取arima预测结果
     * @param type
     */
    @GetMapping(GET_ARIMA_DATA)
    void arimaQueryData(@RequestParam("type")String type);
 
    /**
     * arima请求预测
     * @param type
     */
    @GetMapping(PREDICT_ARIMA_DATA)
    void arimaPredictData(@RequestParam("type")String type);
 
 
    /**
     * 获取hst预测结果
     * @param type
     */
    @GetMapping(GET_HST_DATA)
    void hstQueryData(@RequestParam("type")String type);
 
    /**
     * hst请求预测
     * @param type
     */
    @GetMapping(PREDICT_HST_DATA)
    void hstPredictData(@RequestParam("type")String type);
 
    /**
     * 按库请求
     * @param type
     */
    @GetMapping(GET_BATCH_DATA)
    void batchData(@RequestParam("type") String type);
 
    @GetMapping(ALARM_GET_DATA)
    void alarmGetData(@RequestParam("type") String type);
}