feat(reaction): 前端表情常量、类型与 API

Co-Authored-By: Claude Opus 5 <noreply@anthropic.com>
This commit is contained in:
2026-08-06 03:19:39 -06:00
parent 8a46bae27d
commit d16e3dddb8
4 changed files with 67 additions and 1 deletions

View File

@@ -297,6 +297,17 @@ export function deleteComment(id: number) {
return http.delete("admin/comment", { params: { id } })
}
export function getReactionStats(
offset = 0,
limit = 10,
problem: string,
ordering: string,
) {
return http.get("admin/reaction", {
params: { offset, limit, problem, ordering },
})
}
export async function getTutorialList() {
const res = await http.get<Tutorial[]>("admin/tutorial")
return res.data