package com.yeejoin.amos.boot.module.tzs.flc.api.feign;

import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RequestParam;
import org.typroject.tyboot.core.restful.utils.ResponseModel;

import java.util.List;
import java.util.Map;

//@FeignClient(url="http://172.16.3.34:11005",name = "AMOS-API-ACCESSAPI-ZYB", path = "/accessapi" )
@FeignClient(name = "AMOS-API-ACCESSAPI", path = "/accessapi" )
public interface AccessFeignService {

    /**
     * 调用accessApi的接口
     * @param code
     * @return
     */
    @RequestMapping("/business/getData")
    ResponseModel<Map<String, Object>> getData(@RequestParam String code);

    /**
     * 调用accessApi的接口
     * @param sequenceNbr
     * @return
     */
    @RequestMapping("/business/updateSyncCompanyState")
    ResponseModel<String> updateSyncCompanyState(@RequestParam String sequenceNbr);

}
