NmmsService.java
985 字节
package com.sy.service;
import com.sy.service.impl.MessageServiceHystrix;
import com.sy.service.impl.NmmsServiceHystrix;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.stereotype.Component;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestParam;
import org.springframework.web.bind.annotation.ResponseBody;
import java.util.Map;
/**
* @author mrz
*/
@Component
@FeignClient(name = "nmmsFeign",url = "http://nmms1.15miaoo.com:17999",fallback = NmmsServiceHystrix.class)
public interface NmmsService {
@ResponseBody
@PostMapping("/Allocate/querypage_inportallocate")
Map getAllocate(
@RequestParam(value = "waybill", required = true) String waybill,
@RequestParam(value = "pageIndex", required = true,defaultValue = "0") int pageIndex,
@RequestParam(value = "pageSize", required = true,defaultValue = "10") int pageSize
);
}