StatisticsDriveClient.java
1.09 KB
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);
}