DeviceActiveClient.java
1.28 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
39
40
41
42
43
44
45
package cn.com.glsx.stdinterface.api;
import cn.com.glsx.stdinterface.dto.DeviceActiveDto;
import cn.com.glsx.stdinterface.factory.DeviceActiveFallbackFactory;
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 xiangyanlin
* @date 2022/4/12
*/
@FeignClient(name = "ne-shield-standard-interfaces", path = "/nesi/deviceactive", fallbackFactory = DeviceActiveFallbackFactory.class, decode404 = true)
public interface DeviceActiveClient {
/**
* 保存激活信息 feign调用
*
* @param deviceActiveDto 激活实体类
*/
@PostMapping(value = "/saveActiveInfo")
R saveActiveInfo(@RequestBody DeviceActiveDto deviceActiveDto);
/**
* 定时任务调用
*
* @param snList
* @return
*/
@PostMapping("/saveActiveInfoFlush")
R saveActiveInfoFlush(@RequestBody List<String> snList);
/**
* 获取七天内没有设备激活数据的设备号集合
*
* @return 设备号集合
*/
@GetMapping("/getUnActiveInfoSnList")
R<List<String>> getUnActiveInfoSnList();
}