refactor(teacher): retire discussion components and keep text replies

This commit is contained in:
鲨鱼辣椒 committed 2026-09-28 13:54:55 +08:00
1 parent ae0f72d8fa
commit 998796d77c
32 files changed
+1060 -1794

No files matched your search

-5
View File
@@ -5,7 +5,6 @@ import type {
TeacherCheckInResult,
TeacherCatalog,
TeacherDefinition,
TeacherDiscussionAction,
TeacherSend,
TeacherTopic,
TeacherTopicList,
@@ -47,10 +46,6 @@ export const teacherApi = {
method: 'POST',
body: JSON.stringify(input),
}),
updateDiscussion: (base: string, id: string, input: TeacherDiscussionAction) =>
hostApiFetch<TeacherTopic>(base + '/' + encodeURIComponent(id) + '/discussion', {
method: 'POST', body: JSON.stringify(input),
}),
cancel: (base: string, id: string, requestId: string) =>
hostApiFetch<TeacherTopic>(
base +