feat: 类型帖互动、积分经济与发帖体验

补齐问答采纳/重开、投票匿名与有票禁编、悬赏过期退回、抽奖回帖开奖,并接入积分账本与发帖附件可见性。

Co-authored-by: Cursor <cursoragent@cursor.com>
This commit is contained in:
2026-09-16 03:17:07 +08:00
parent 1ef3d8e299
commit b9ba8cb8c9
58 changed files with 6913 additions and 506 deletions

14
frontend/lib/points.ts Normal file
View File

@@ -0,0 +1,14 @@
/** 积分流水原因文案 */
const REASON_LABELS: Record<string, string> = {
checkin: "每日签到",
unlock_post: "解锁正文",
download_file: "附件下载",
migrate_checkin: "历史签到回填",
bounty_escrow: "悬赏托管",
bounty_refund: "悬赏退回",
bounty_award: "悬赏采纳",
};
export function pointReasonLabel(reason: string): string {
return REASON_LABELS[reason] || reason || "其他";
}