package com.jeeplus.flowable.feign;

import com.jeeplus.common.constant.AppNameConstants;
import com.jeeplus.flowable.factory.ZsApiFallbackFactory;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestParam;

/**
 * @author: 王强
 * @create: 2023-07-26 17:01
 **/
@FeignClient(contextId = "zsApi", name = AppNameConstants.APP_CENTRECAREFUL_MODULES, fallbackFactory = ZsApiFallbackFactory.class)
public interface IZsApi {

    /**
     * 修改数电发票报销数据
     */
    @GetMapping(value = "/zsReimbursement/info/updateOldData")
    void updateOldData();

    /**
     * 根据流程id获取报销创建人id
     * @param id
     * @return
     */
    @GetMapping(value = "/zsReimbursement/info/getReimbursementCreateUserIdByProcessInstanceId")
    String getReimbursementCreateUserIdByProcessInstanceId(@RequestParam(value = "id") String id);

}
