guoshilong
2023-08-07 534be798cfd15beb4f1d9715eeeb739a3e775e32
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
69
70
71
72
73
74
package cn.gistack.nky.feign;
 
import cn.gistack.nky.entity.AlarmGet;
import cn.gistack.nky.fegin.INkyClient;
import cn.gistack.nky.service.IAlarmGetService;
import cn.gistack.nky.service.IArimaPredictService;
import cn.gistack.nky.service.IHstPredictService;
import cn.gistack.nky.service.INkyService;
import cn.gistack.nky.vo.AlarmGetVO;
import lombok.AllArgsConstructor;
import lombok.extern.slf4j.Slf4j;
import org.springblade.core.tenant.annotation.NonDS;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RestController;
import springfox.documentation.annotations.ApiIgnore;
 
import java.util.List;
 
@NonDS
@ApiIgnore
@RestController
@AllArgsConstructor
@Slf4j
public class NkyClientImpl implements INkyClient {
 
    private final INkyService nkyService;
    private final IArimaPredictService arimaPredictService;
    private final IHstPredictService hstPredictService;
    private final IAlarmGetService alarmGetService;
 
 
    @Override
    @GetMapping(GET_ARIMA_DATA)
    public void arimaQueryData(String type) {
        arimaPredictService.getData(type);
    }
 
    @Override
    @GetMapping(PREDICT_ARIMA_DATA)
    public void arimaPredictData(String type) {
        arimaPredictService.predictData(type);
    }
 
    @Override
    @GetMapping(GET_HST_DATA)
    public void hstQueryData(String type) {
        hstPredictService.getData(type);
    }
 
    @Override
    @GetMapping(PREDICT_HST_DATA)
    public void hstPredictData(String type) {
        hstPredictService.predictData(type);
    }
 
    @Override
    @GetMapping(GET_BATCH_DATA)
    public void batchData(String type) {
        alarmGetService.batchData(type);
    }
 
    @Override
    @GetMapping(ALARM_GET_DATA)
    public void alarmGetData(String type) {
        alarmGetService.alarmGetData(type);
    }
 
    @Override
    @PostMapping(GET_ALARM_DETAIL)
    public List<AlarmGetVO> getAlarmDetail(AlarmGetVO alarmGet) {
        return alarmGetService.getAlarmDetail(alarmGet);
    }
}