package com.jeeplus.flowable.feign;

import com.jeeplus.common.constant.AppNameConstants;
import com.jeeplus.flowable.factory.AssessApiFallbackFactory;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.*;

import java.util.List;

/**
 * @author: 徐滕
 * @create: 2023-10-16 16:21
 **/
@FeignClient(contextId = "financeApi", name = AppNameConstants.APP_FINANCE_MODULES, fallbackFactory = AssessApiFallbackFactory.class)
public interface IFinanceApi {

    /**
     * 查询暂时未归档报告归档数据
     * @return
     */
    @GetMapping(value = "/cwProjectReportArchive/getNotFiledYetList")
    String getNotFiledYetList();

    @GetMapping(value = "/cwProjectRecords/getCwProjectData")
    List<String> getCwProjectData(@RequestParam(value = "id") String id);

    @GetMapping(value = "/cwProjectRecords/getMembersId")
    List<String> getMembersId(@RequestParam(value = "id")String id);

    @RequestMapping(value = "/cwProjectRecords/insertMembers", method = RequestMethod.POST)
    void insertMembers(@RequestParam(value = "projectId")String projectId,@RequestParam(value = "membersId")String membersId,@RequestParam(value = "userId")String userId);

    /**
     * 查询项目计划信息
     * @return
     */
    @GetMapping(value = "/cwProjectRecords/getPlanDetails")
    String getPlanDetails();

    /**
     * 修改质量复核超期状态
     * @return
     */
    @GetMapping(value = "/cwProjectReport/updateQualityOverdueStatus")
    String updateQualityOverdueStatus();

    /**
     * 修改在线归档超期状态
     * @return
     */
    @GetMapping(value = "/cwProjectReport/updateOnlineArchiveStatus")
    String updateOnlineArchiveStatus();

    /**
     * 修改纸质归档超期状态
     * @return
     */
    @GetMapping(value = "/cwProjectReport/updatePaperArchiveStatus")
    String updatePaperArchiveStatus();
}
