account_resource/json/acctres_usage.json
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

131 lines
3.1 KiB
JSON

{
"tblname": "acctres_usage",
"params": {
"title": "账号用量",
"browserfields": [
{
"field": "spec_id",
"title": "规格ID"
},
{
"field": "charge_mode",
"title": "计费方式"
},
{
"field": "userorgid",
"title": "用户机构"
},
{
"field": "use_date",
"title": "使用日期"
},
{
"field": "quantity",
"title": "数量"
},
{
"field": "amount",
"title": "交易金额"
},
{
"field": "discount_rate",
"title": "折扣率"
},
{
"field": "accounting_status",
"title": "记账状态"
}
],
"editfields": [
{
"field": "spec_id",
"uitype": "Text"
},
{
"field": "charge_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": "quantity",
"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",
"charge_mode"
]
}
}