fix: 修复遗漏的 backend-single 引用(Java源码/前端注释/配置文件/IDE配置)

This commit is contained in:
2026-06-27 17:32:18 +08:00
parent 591f70a2f6
commit 8e6b69f6c7
24 changed files with 31 additions and 1585 deletions
+4 -4
View File
@@ -52,7 +52,7 @@ export class ChatApiService {
async createSession(userId: string, title?: string): Promise<ChatSession> {
try {
console.log('📝 创建会话API调用:', { userId, title })
// backend-single: POST /conversation/create
// server: POST /conversation/create
const response = await http.post<ConversationResponse>('/conversation/create', {
userId,
title: title || `对话${Date.now()}`
@@ -89,7 +89,7 @@ export class ChatApiService {
async getUserSessions(userId: string): Promise<ChatSession[]> {
try {
console.log('📂 获取用户会话API调用:', { userId })
// backend-single: GET /conversation/page?userId=xxx
// server: GET /conversation/page?userId=xxx
const response = await http.get<any>('/conversation/page', { params: { userId, current: 1, size: 100 } })
console.log('📂 获取用户会话API响应:', response)
@@ -132,7 +132,7 @@ export class ChatApiService {
async deleteSession(sessionId: string): Promise<void> {
try {
console.log('🗑️ 删除会话API调用:', { sessionId })
// backend-single: DELETE /conversation/delete?id=xxx
// server: DELETE /conversation/delete?id=xxx
await http.delete('/conversation/delete', { params: { id: sessionId } })
console.log('✅ 删除会话成功')
} catch (error) {
@@ -147,7 +147,7 @@ export class ChatApiService {
async updateSessionTitle(sessionId: string, title: string): Promise<void> {
try {
console.log('✏️ 更新会话标题API调用:', { sessionId, title })
// backend-single: PUT /conversation/update 传id和title
// server: PUT /conversation/update 传id和title
await http.put('/conversation/update', { id: sessionId, title })
console.log('✅ 更新会话标题成功')
} catch (error) {