package net.northking.cctp.testbug.feign.client;

import net.northking.cctp.common.feign.FeignCctpConfig;
import net.northking.cctp.common.http.ResultWrapper;
import net.northking.cctp.testbug.dto.cases.CltBusinessNoQueryDto;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.http.MediaType;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestBody;

import java.util.List;

/**
 * @author: puchao.ma
 * @date: 2021/10/18 15:46
 */
@FeignClient(name = "cctp-manual-cases", path = "/cctp-manual-cases", configuration = {FeignCctpConfig.class})
public interface CasesFeignClient {

    /**
     * 获取编号
     * @param query
     * @return
     */
    @PostMapping(value = "/v1/CltBusinessNos/genBusinessNoList",
            produces = MediaType.APPLICATION_JSON_UTF8_VALUE,
            consumes = MediaType.APPLICATION_JSON_UTF8_VALUE)
    public ResultWrapper<List<Long>> genBusinessNoList(@RequestBody CltBusinessNoQueryDto query);
}
