DeviceActiveClient.java
1.09 KB
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 {
/**
* 保存激活信息
*
* @param deviceActiveDto 激活实体类
*/
@PostMapping(value = "/saveActiveInfo")
R saveActiveInfo(@RequestBody DeviceActiveDto deviceActiveDto);
/**
* 获取七天内没有设备激活数据的设备号集合
*
* @return 设备号集合
*/
@GetMapping("/getUnActiveInfoSnList")
R<List<String>> getUnActiveInfoSnList();
}