package org.dromara.zjk.controller;

import org.dromara.common.core.domain.R;
import org.dromara.zjk.config.YsdpaasConfig;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

import javax.annotation.Resource;

/**
 * apaas能力接入
 * @author : yanguohua
 * @version : 1.0
 * @date : 2025/4/22 10:27
 */
@RestController
@RequestMapping("/ai")
public class AIaccessController {
    @Resource
    private YsdpaasConfig ysdpaasConfig;
    /**
     * 获取外部ai智能文档应用能力url
     */
    @GetMapping("/chat")
    public R<String> getChatUrl() {
        return R.ok(ysdpaasConfig.getAiChatUrl());
    }
}
