You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
60 lines
1.2 KiB
60 lines
1.2 KiB
package cn.teammodel.service;
|
|
|
|
import cn.teammodel.model.entity.ai.DeepSeekSession;
|
|
import cn.teammodel.model.entity.ai.DeepSeekSession.DeepSeekMessage;
|
|
|
|
import java.util.List;
|
|
|
|
/**
|
|
* 会话服务接口
|
|
* Created by Jiayiwu on 16/5/26.
|
|
*/
|
|
public interface DeepSeekSessionService {
|
|
|
|
/**
|
|
* 创建默认会话
|
|
* @param userId
|
|
* @param name
|
|
* @return
|
|
*/
|
|
DeepSeekSession CreateDefaultSession(String userId, String name);
|
|
|
|
/**
|
|
* 创建会话
|
|
* @param session
|
|
* @return
|
|
*/
|
|
DeepSeekSession CreateSession(DeepSeekSession session);
|
|
|
|
/**
|
|
* 更新会话
|
|
* @param upSession
|
|
* @param userId
|
|
* @return
|
|
*/
|
|
DeepSeekSession updateSession(DeepSeekSession upSession, String userId);
|
|
|
|
/**
|
|
* 删除会话
|
|
* @param id
|
|
* @param userId
|
|
*/
|
|
void deleteSession (String id, String userId);
|
|
|
|
/**
|
|
* 获取用户会话列表
|
|
* @param userId
|
|
* @return
|
|
*/
|
|
List<DeepSeekSession> UserSessionList(String userId);
|
|
|
|
/**
|
|
* 获取历史消息
|
|
* @param sessionId
|
|
* @param userId
|
|
* @return
|
|
*/
|
|
List<DeepSeekMessage> listHistory(String sessionId, String userId);
|
|
|
|
}
|