package net.northking.cctp.project.bus.feign;

import io.swagger.annotations.ApiOperation;
import net.northking.cctp.common.feign.FeignCctpConfig;
import net.northking.cctp.common.http.ResultWrapper;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.http.MediaType;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestParam;


@FeignClient(name = "cctp-test-bug", path = "/cctp-test-bug", configuration = {FeignCctpConfig.class})
public interface TestBugFeign {

    @ApiOperation("查询用户是否在系统创建缺陷")
    @PostMapping(value = "/v1/queryUserIsCreatedBugByProId",
            produces = MediaType.APPLICATION_JSON_UTF8_VALUE,
            consumes = MediaType.APPLICATION_JSON_UTF8_VALUE)
    ResultWrapper<Boolean> queryUserIsCreatedBugByProId(@RequestParam("projectId") String projectId, @RequestParam(value = "userId",required = false) String userId);


}
