添加功能
parent
a1fea304da
commit
fa7430ee16
@ -0,0 +1,18 @@
|
||||
package com.supervision.dto.dify;
|
||||
|
||||
|
||||
import lombok.Data;
|
||||
|
||||
@Data
|
||||
public class ChatResDTO {
|
||||
|
||||
private String mode;
|
||||
private String answer;
|
||||
private String conversation_id;
|
||||
private long created_at;
|
||||
private String task_id;
|
||||
private String message_id;
|
||||
private String id;
|
||||
private String event;
|
||||
|
||||
}
|
@ -1,14 +1,14 @@
|
||||
package com.supervision.service;
|
||||
|
||||
import com.supervision.dto.robot.RobotTalkDTO;
|
||||
import com.supervision.model.RobotTalkReq;
|
||||
import jakarta.servlet.http.HttpServletResponse;
|
||||
import org.springframework.stereotype.Service;
|
||||
import org.springframework.web.multipart.MultipartFile;
|
||||
|
||||
import java.io.IOException;
|
||||
|
||||
public interface IChatService {
|
||||
RobotTalkDTO talk(MultipartFile file);
|
||||
RobotTalkDTO talk(MultipartFile file, RobotTalkReq robotTalkReq);
|
||||
|
||||
void getAudio(HttpServletResponse response, String audioId) throws IOException;
|
||||
}
|
||||
|
Loading…
Reference in New Issue