37 lines
1.0 KiB
Java
37 lines
1.0 KiB
Java
package com.southern.power.grid.controller;
|
|
|
|
import com.southern.power.grid.common.Result;
|
|
import lombok.extern.slf4j.Slf4j;
|
|
import org.springframework.beans.factory.annotation.Autowired;
|
|
import org.springframework.http.ContentDisposition;
|
|
import org.springframework.web.bind.annotation.GetMapping;
|
|
import org.springframework.web.bind.annotation.PathVariable;
|
|
import org.springframework.web.bind.annotation.RequestMapping;
|
|
import org.springframework.web.bind.annotation.RestController;
|
|
|
|
import javax.servlet.http.HttpServletResponse;
|
|
import java.io.InputStream;
|
|
import java.nio.charset.StandardCharsets;
|
|
|
|
/**
|
|
* AI问答消息Controller
|
|
*
|
|
* @author system
|
|
* @date 2025-01-15
|
|
*/
|
|
@RestController
|
|
@RequestMapping("/api/ai/message")
|
|
@Slf4j
|
|
public class AiMessageController {
|
|
|
|
/**
|
|
* demo
|
|
*/
|
|
@GetMapping("/report/download/{messageId}")
|
|
public Result<Boolean> downloadReport() {
|
|
log.info("download report");
|
|
return Result.success(Boolean.TRUE);
|
|
}
|
|
}
|
|
|