package net.northking.cctp.dw.feign;

import io.swagger.annotations.ApiOperation;
import net.northking.cctp.common.feign.FeignCctpConfig;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.PathVariable;

import java.util.List;

@FeignClient(contextId = "projectsFeignForScheduleClient",value = "cctp-projects",name = "cctp-projects", path = "/cctp-projects", configuration = {FeignCctpConfig.class})
public interface ProjectsFeignForScheduleClient {
    @ApiOperation(value = "获取系统负责人")
    @GetMapping(value = "/pub/getProjectManager/{projectId}")
    String getProjectManager(@PathVariable("projectId") String projectId);

    @ApiOperation(value = "获取有权限系统列表")
    @GetMapping(value = "/pub/getProject/{userId}")
    List<String> getProject(@PathVariable("userId") String userId);
}
