package com.diagbot.client;

import java.util.List;

import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.PostMapping;

import com.diagbot.client.hystrix.DiagbotmanServiceHystrix;
import com.diagbot.dto.RespDTO;
import com.diagbot.dto.UserAndProdutDTO;
import org.springframework.web.bind.annotation.RequestBody;

/**
 * 
 * @Description: 调用产品服务
 * @author wangfeng
 * @date 2018年9月26日 下午2:05:45
 */
@FeignClient(value = "diagbotman-service",fallback = DiagbotmanServiceHystrix.class )
public interface DiagbotmanClient {
	
	@PostMapping(value = "/productOrder/getInformationAvailableAll")
	RespDTO<List<UserAndProdutDTO>> getInformationAvailableAll(@RequestBody List<Long> userIds);
	
	@PostMapping(value = "/productOrder/getUserWaitingRenewal")
	public RespDTO<Integer> getUserWaitingRenewal(@RequestBody Long userId);
	
	@PostMapping(value = "/productOrder/getOrderByUserToAudit")
	public RespDTO<Integer> getOrderByUserToAudit(@RequestBody Long userId);

}
