storage_resource/json/storres_usage.json
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

143 lines
3.4 KiB
JSON

{
"tblname": "storres_usage",
"params": {
"title": "存储用量",
"browserfields": [
{
"field": "spec_id",
"title": "规格ID"
},
{
"field": "meter_mode",
"title": "计量方式"
},
{
"field": "userorgid",
"title": "用户机构"
},
{
"field": "period_start",
"title": "计费周期起"
},
{
"field": "period_end",
"title": "计费周期止"
},
{
"field": "billable_gb",
"title": "计费容量GB"
},
{
"field": "amount",
"title": "交易金额"
},
{
"field": "accounting_status",
"title": "记账状态"
}
],
"editfields": [
{
"field": "spec_id",
"uitype": "Text"
},
{
"field": "meter_mode",
"uitype": "Text"
},
{
"field": "subscription_id",
"uitype": "Text"
},
{
"field": "userid",
"uitype": "Text"
},
{
"field": "userorgid",
"uitype": "Text"
},
{
"field": "use_date",
"uitype": "Text"
},
{
"field": "use_time",
"uitype": "Text"
},
{
"field": "period_start",
"uitype": "Text"
},
{
"field": "period_end",
"uitype": "Text"
},
{
"field": "sample_count",
"uitype": "Text"
},
{
"field": "avg_gb",
"uitype": "Text"
},
{
"field": "max_gb",
"uitype": "Text"
},
{
"field": "billable_gb",
"uitype": "Text"
},
{
"field": "usages",
"uitype": "Text"
},
{
"field": "transno",
"uitype": "Text"
},
{
"field": "amount",
"uitype": "Text"
},
{
"field": "amount_currency",
"uitype": "Text"
},
{
"field": "amount_base",
"uitype": "Text"
},
{
"field": "cost",
"uitype": "Text"
},
{
"field": "cost_currency",
"uitype": "Text"
},
{
"field": "cost_base",
"uitype": "Text"
},
{
"field": "discount_rate",
"uitype": "Text"
},
{
"field": "accounting_status",
"uitype": "Text"
},
{
"field": "status",
"uitype": "Text"
}
],
"searchfields": [
"spec_id",
"meter_mode"
]
}
}