ymq 71576381bd feat: account_resource 资源模块
参照 llmage 范式(llm主表无ppid + llm_api_map挂ppid + llmusage计费六件套):
- 资源主表不带 ppid,定价挂在「资源×用法」映射表上
- 对外统一 resolve_ppid(resource_ref_id, ctx),load 时注册到产品层解析器注册表
- 含 models 四段式/json CRUD/i18n四语言/load_path/init 种子数据
2026-08-26 14:51:27 +08:00

68 lines
1.9 KiB
JSON
Raw Permalink 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.

{
"acctres_spec": [
{
"spec_code": "ACC-TRIAL-7D",
"spec_name": "试用账号(7天)",
"spec_type": "trial",
"workspace_max": 1,
"workspace_gb": 5,
"concurrent_task": 1,
"gpu_allowed": "0",
"member_max": 1,
"sort_order": 10,
"status": "active",
"description": "新用户试用,每机构限领一次"
},
{
"spec_code": "ACC-MONTHLY",
"spec_name": "月租账号",
"spec_type": "standard",
"workspace_max": 5,
"workspace_gb": 50,
"concurrent_task": 3,
"gpu_allowed": "1",
"member_max": 5,
"sort_order": 20,
"status": "active"
},
{
"spec_code": "ACC-YEARLY",
"spec_name": "年租账号",
"spec_type": "standard",
"workspace_max": 20,
"workspace_gb": 200,
"concurrent_task": 10,
"gpu_allowed": "1",
"member_max": 20,
"sort_order": 30,
"status": "active"
}
],
"acctres_pricing_map": [
{
"spec_code": "ACC-TRIAL-7D",
"charge_mode": "trial",
"charge_unit": "次",
"valid_days": 7,
"is_default": "1",
"ppid": ""
},
{
"spec_code": "ACC-MONTHLY",
"charge_mode": "month",
"charge_unit": "月",
"valid_days": 30,
"is_default": "1",
"ppid": ""
},
{
"spec_code": "ACC-YEARLY",
"charge_mode": "year",
"charge_unit": "年",
"valid_days": 365,
"is_default": "1",
"ppid": ""
}
],
"_note": "ppid 待建定价项目后回填charge_mode 是本模块的 ppid 挂载维度"
}