package com.chinaweal.aiccs.outside.api;

import com.dtflys.forest.annotation.BaseRequest;
import com.dtflys.forest.annotation.Body;
import com.dtflys.forest.annotation.Header;
import com.dtflys.forest.annotation.Post;
import com.dtflys.forest.http.ForestResponse;

import java.util.Map;

/**
 * 案件上传API接口
 */
@BaseRequest(
        baseURL = "${caseUploadApi.baseUrl}",
        headers = {"Content-Type: application/json"})
public interface CaseUploadApi {

    /**
     * 上传案件信息
     *
     * @param apiKey 认证密钥
     * @param requestBody 请求体数据
     * @return 响应结果
     */
    @Post(url = "${caseUploadApi.url}")
    ForestResponse<String> uploadCase(
            @Header("X-Api-Key") String apiKey,
            @Body Map<String, Object> requestBody);
}