NmmsService.java
980 字节
package com.sy.service;
import com.sy.feign.NmmsInterceptor;
import com.sy.model.Feign_Allocate_Search;
import com.sy.model.NmmsPrepaidMasterSearch;
import com.sy.service.impl.NmmsServiceHystrix;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.stereotype.Component;
import org.springframework.web.bind.annotation.*;
import java.util.Map;
/**
* @author mrz
* todo:生产要把这里改成内网舱单地址,已更新为在配置文件改
*/
@Component
@FeignClient(name = "nmmsFeign",url = "${nmms.site.host}",fallback = NmmsServiceHystrix.class,configuration = NmmsInterceptor.class)
public interface NmmsService {
@ResponseBody
@PostMapping(value = "/Allocate/querypage_inportallocate")
Map getAllocate(@RequestBody Feign_Allocate_Search feignAllocateSearch);
@ResponseBody
@PostMapping(value = "/Preallocation/QueryPage_Prepared")
Map getPrepaidMaster(@RequestBody NmmsPrepaidMasterSearch prepaidMaster);
}