feat(reaction): 前端表情常量、类型与 API
Co-Authored-By: Claude Opus 5 <noreply@anthropic.com>
This commit is contained in:
@@ -606,6 +606,28 @@ export interface Comment {
|
||||
user: SampleUser
|
||||
}
|
||||
|
||||
export type ReactionKey =
|
||||
| "too_easy"
|
||||
| "too_hard"
|
||||
| "confusing"
|
||||
| "buggy"
|
||||
| "learned"
|
||||
| "interesting"
|
||||
| "want_explain"
|
||||
|
||||
export type ReactionCounts = Record<ReactionKey, number>
|
||||
|
||||
export interface ReactionState {
|
||||
mine: ReactionKey[]
|
||||
counts: ReactionCounts | null
|
||||
}
|
||||
|
||||
export interface ReactionStatsRow extends ReactionCounts {
|
||||
pid: string
|
||||
title: string
|
||||
users: number
|
||||
}
|
||||
|
||||
export interface Tutorial {
|
||||
id: number
|
||||
title: string
|
||||
|
||||
Reference in New Issue
Block a user