package com.xueyi.nlt.api.nlt.feign;

import com.alibaba.fastjson2.JSONObject;
import com.xueyi.common.core.web.result.AjaxResult;
import com.xueyi.nlt.api.nlt.domain.vo.DmLandingLlmVo;
import com.xueyi.nlt.api.nlt.feign.factory.RemoteLandingLlmFallbackFactory;
import com.xueyi.nlt.api.nlt.feign.factory.RemoteQAFallbackFactory;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.*;

/**
 * 问答服务
 * @Param man_id 机器人id
 * @Param question 问题
 * @Param tenant_id 租户id
 * @author yrx
 */
@FeignClient(url = "${notification.landing-llm.url}",name = "landing-llm", fallbackFactory = RemoteLandingLlmFallbackFactory.class)
public interface RemoteLandingLlmService {

    @PostMapping("/search/questionAnswer")
    @ResponseBody
    JSONObject query(@RequestBody DmLandingLlmVo vo);
    @PostMapping("/search/questionAnswer")
    @ResponseBody
    JSONObject query(@RequestBody JSONObject jsonObject);

}