Social - Hall of Fame (Logic)
DomainsDOL AcademyUX226 words1 min read
Purpose
Phần tiêu đề “Purpose”- Vinh danh thành tích thi thật đã xác minh và câu chuyện học tập truyền cảm hứng.
Scope
Phần tiêu đề “Scope”- Danh mục: Overall, theo kỹ năng/môn, Most Improved, Consistency.
- Season: vinh danh theo kỳ (seasonId) để lưu trữ lịch sử.
Entities
Phần tiêu đề “Entities”- FameSubmission: { userId, exam, score, takenAt, evidence, status }.
- Verification: { method: qr|seal|issuer_check, verifiedAt, verifierId }.
- FameRecord: { userId, category, story, badges[], seasonId }.
Logic
Phần tiêu đề “Logic”- Submission: người dùng nộp bằng chứng → tạo
FameSubmission(status=pending). - Verification: mod/staff kiểm tra evidence → set
verifiedAt→ chuyểnapprovedhoặcrejected. - Publish: tạo
FameRecord; gán badge/role hiển thị toàn nền tảng; liên kết câu chuyện/tips (nếu có). - Retraction: nếu phát hiện sai lệch → thu hồi FameRecord; hiển thị chú thích ngày thu hồi.
Flows
Phần tiêu đề “Flows”- Submit → Verify → Publish → Notify.
- Appeal: user bổ sung bằng chứng → re‑review.
Edge cases
Phần tiêu đề “Edge cases”- Evidence mờ/không đủ: yêu cầu bổ sung, đặt TTL chờ; hết hạn → auto reject.
- Duplicate: trùng exam/takenAt/score → merge hoặc giữ 1 bản; log lý do.
Technical Notes
Phần tiêu đề “Technical Notes”- Lưu evidence an toàn (PII); hạn chế truy cập theo vai trò.
- Hiển thị tối giản: điểm, ngày thi, hạng mục, trích đoạn câu chuyện.
- Cross‑links:
Social/SOC_Leaderboards_Logic.md,Social/SOC_Profile_Logic.md.