PRINTFILM: AI short-video marketing and AI short-drama creation platform
merge: 同步远端数字资产市场更新
yia0715e058cd1
diff --cc backend/app/marketplace/admin.pyindex 4485926,2279d8f..7559746--- a/backend/app/marketplace/admin.py+++ b/backend/app/marketplace/admin.py@@@ -11,12 -11,18 +11,23 @@@ from .service import (asset_owned, checrouter = APIRouter()+ def _notification_note(message: str, note: str) -> str:+ """省略空说明,避免向用户展示内部枚举或空分隔符。"""+ return f"{message}说明:{note.strip()}" if note.strip() else message+++ def _review_notification(kind: str, title: str, decision: str, reason: str, approved_next: str) -> str:+ result = (f"{kind}《{title}》审核通过,{approved_next}。" if decision == "approved"+ else f"{kind}《{title}》审核未通过,请根据审核说明修改后重新提交。")+ return _notification_note(result, reason)++[email protected]("/categories", response_model=dict)+ "/categories", response_model=dict,+ summary='获取市场分类管理配置',+ description='仅管理员可访问。读取可用分类名称及当前配置版本,供编辑前确认。',+ response_description='分类名称 names 与配置版本 version。',+)async def get_categories(db: DB, user: Admin):from .categories import category_configreturn await category_config(db)