package com.vci.starter.revision.provider; import com.vci.starter.web.pagemodel.BaseResult; import org.springframework.cloud.openfeign.FeignClient; import org.springframework.web.bind.annotation.GetMapping; import org.springframework.web.bind.annotation.RequestParam; /** * 通用的生命周期的调用 * @author weidy * @date 2020/4/15 */ @FeignClient(name="commonLifeCycleProvider",url="${feign.pltServiceUrl}",path = "lifeCycleController") public interface CommonLifeCycleProvider { /** * 获取生命周期的起始状态的值 * @param lifeCycleId 生命周期的英文名称,不区分大小写 * @return 先判断success,然后取obj的值 */ @GetMapping("/getStartStatus") BaseResult getStartStatus(@RequestParam("lifeCycleId")String lifeCycleId); /** * 查询状态的文本 * @param lcStatus 状态的值 * @param btmTypeId 业务类型的编号 * @return 状态的显示文本 */ @GetMapping("/getStatusText") BaseResult getStatusText(@RequestParam("lcStatus")String lcStatus,@RequestParam("btmTypeId")String btmTypeId); }