ymq 04b1b19b94 feat: storage_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:29 +08:00

36 lines
1.1 KiB
JSON
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.

{
"storres_spec": [
{
"spec_code": "WS-STORAGE-STD",
"spec_name": "工作空间标准存储",
"storage_class": "standard",
"min_gb": 1,
"step_gb": 1,
"capacity_total": -1,
"capacity_used": 0,
"backup_enabled": "0",
"sort_order": 10,
"status": "active",
"description": "工作空间容量,按 GB月 计费"
}
],
"storres_pricing_map": [
{
"spec_code": "WS-STORAGE-STD",
"meter_mode": "ondemand",
"meter_unit": "GB月",
"settle_period": "month",
"is_default": "1",
"ppid": ""
},
{
"spec_code": "WS-STORAGE-STD",
"meter_mode": "package",
"meter_unit": "GB月",
"settle_period": "month",
"is_default": "0",
"ppid": ""
}
],
"_note": "ppid 待建定价项目后回填meter_mode 是本模块的 ppid 挂载维度(与账号按 charge_mode 不同)"
}