StatisticsDriveClient.java
1.2 KB
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
package cn.com.glsx.stdinterface.api;
import cn.com.glsx.stdinterface.dto.StatisticsDriveDto;
import cn.com.glsx.stdinterface.factory.StatisticsDriveFallbackFactory;
import com.glsx.plat.core.web.R;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestBody;
import java.util.List;
/**
* @author zhouhaibao
* @date 2021/5/24 9:49
*/
@FeignClient(name = "ne-shield-standard-interfaces", path = "/stdinterface/statisticsdrive", fallbackFactory = StatisticsDriveFallbackFactory.class, decode404 = true)
public interface StatisticsDriveClient {
/**
* 获取数据集合
*
* @return R
*/
@GetMapping(value = "/drivedatalist")
R statisticsDriveDataEveryDay();
/**
* 插入数据
*
* @param statisticsDriveDtoList
* @return R
*/
@PostMapping(value = "/insertstatisticsdrivelist")
R insertStatisticsDriveList(@RequestBody List<StatisticsDriveDto> statisticsDriveDtoList);
@GetMapping(value = "/statisticsandinsertdrivedatalist")
R statisticsAndInsertDriveDataEveryDay();
}