审查视图

src/main/java/com/sy/service/NmmsService.java 980 字节
朱兆平 authored
1 2 3
package com.sy.service;

4
import com.sy.feign.NmmsInterceptor;
5
import com.sy.model.Feign_Allocate_Search;
6
import com.sy.model.NmmsPrepaidMasterSearch;
朱兆平 authored
7 8 9
import com.sy.service.impl.NmmsServiceHystrix;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.stereotype.Component;
10
import org.springframework.web.bind.annotation.*;
朱兆平 authored
11 12 13 14 15

import java.util.Map;

/**
 * @author mrz
16
 * todo:生产要把这里改成内网舱单地址,已更新为在配置文件改
朱兆平 authored
17 18
 */
@Component
19
@FeignClient(name = "nmmsFeign",url = "${nmms.site.host}",fallback = NmmsServiceHystrix.class,configuration = NmmsInterceptor.class)
朱兆平 authored
20 21 22
public interface NmmsService {

    @ResponseBody
23 24
    @PostMapping(value = "/Allocate/querypage_inportallocate")
    Map getAllocate(@RequestBody Feign_Allocate_Search feignAllocateSearch);
朱兆平 authored
25
26 27 28 29
    @ResponseBody
    @PostMapping(value = "/Preallocation/QueryPage_Prepared")
    Map getPrepaidMaster(@RequestBody NmmsPrepaidMasterSearch prepaidMaster);
朱兆平 authored
30 31

}
32