Files
c/backend/sql/update_appeal_fields.sql
刘正航 f7d0601c4e feat: 申诉常见理由快捷选择 + 证据截图上传
- 后端: 新增 appeal_reason_type, appeal_evidence_urls 字段
- 后端: 新建 upload_routes.py 图片上传接口
- 前端: history 页面添加快捷理由选择器 + 截图上传
- 前端: admin-review 页面展示证据图片 + 点击预览
- 新增 SQL 更新脚本 update_appeal_fields.sql

Co-Authored-By: Claude Opus 4.7 <noreply@anthropic.com>
2026-04-21 23:26:25 +08:00

17 lines
686 B
SQL
Raw Blame History

This file contains ambiguous Unicode characters
This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.
-- 申诉功能增强:新增理由类型和证据图片字段
-- 执行方式mysql -u root -p database_name < update_appeal_fields.sql
-- 新增申诉理由类型字段
ALTER TABLE content_posts
ADD COLUMN appeal_reason_type VARCHAR(32) DEFAULT '' COMMENT '快捷申诉理由类型'
AFTER appeal_status;
-- 新增证据图片URL列表字段
ALTER TABLE content_posts
ADD COLUMN appeal_evidence_urls JSON DEFAULT NULL COMMENT '证据图片URL列表'
AFTER appeal_reason;
-- 如果 MySQL 版本不支持 JSON 类型,使用 TEXT 替代
-- ALTER TABLE content_posts
-- ADD COLUMN appeal_evidence_urls TEXT DEFAULT NULL COMMENT '证据图片URL列表(JSON)'
-- AFTER appeal_reason;