Files
Neo-ZQYY/apps/backend/app/schemas/xcx_config.py

24 lines
963 B
Python
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.
# AI_CHANGELOG
# - 2026-03-20 | Prompt: R3 项目类型筛选接口重建 | SkillTypeItem.key 注释从
# chinese/snooker 改为 BILLIARD/SNOOKERlabel 说明改为从 display_name 读取。
"""CONFIG-1 项目类型筛选器响应 Schema。"""
from __future__ import annotations
from app.schemas.base import CamelModel
class SkillTypeItem(CamelModel):
"""项目类型筛选器选项。
key 值与 dws.cfg_area_category.category_code 一致
BILLIARD/SNOOKER/MAHJONG/KTV"不限"选项 key="ALL"
"""
# CHANGE 2026-03-20 | R3 修复key 从 chinese/snooker 改为 BILLIARD/SNOOKER
# label 从 display_name 读取(含 emojicls 保留但后端不再填充。
key: str # BILLIARD/SNOOKER/MAHJONG/KTV/ALL
label: str # display_name含 emoji如 "🎱 中式/追分"
emoji: str # short_name单 emoji如 "🎱"
cls: str # 前端样式类(预留,当前为空字符串)