refactor(models): convert to json format per database-table-definition-spec

This commit is contained in:
yumoqing 2026-05-27 13:23:29 +08:00
parent 7aaa98d407
commit 1a2e6c5ec6
12 changed files with 34 additions and 17 deletions

View File

@ -39,7 +39,8 @@
"name": "discount", "name": "discount",
"title": "折扣", "title": "折扣",
"type": "float", "type": "float",
"length": 18 "length": 18,
"dec": 2
}, },
{ {
"name": "step_type", "name": "step_type",

View File

@ -26,19 +26,22 @@
"name": "minamt", "name": "minamt",
"title": "最低金额", "title": "最低金额",
"type": "float", "type": "float",
"length": 18 "length": 18,
"dec": 2
}, },
{ {
"name": "maxamt", "name": "maxamt",
"title": "最大金额", "title": "最大金额",
"type": "float", "type": "float",
"length": 18 "length": 18,
"dec": 2
}, },
{ {
"name": "discount", "name": "discount",
"title": "折扣值", "title": "折扣值",
"type": "float", "type": "float",
"length": 18 "length": 18,
"dec": 2
} }
] ]
} }

View File

@ -48,7 +48,8 @@
"name": "amount", "name": "amount",
"title": "金额", "title": "金额",
"type": "float", "type": "float",
"length": 18 "length": 18,
"dec": 2
}, },
{ {
"name": "userid", "name": "userid",

View File

@ -41,13 +41,15 @@
"name": "list_amount", "name": "list_amount",
"title": "原价", "title": "原价",
"type": "float", "type": "float",
"length": 18 "length": 18,
"dec": 2
}, },
{ {
"name": "trans_amount", "name": "trans_amount",
"title": "交易金额", "title": "交易金额",
"type": "float", "type": "float",
"length": 18 "length": 18,
"dec": 2
} }
], ],
"codes": [ "codes": [

View File

@ -37,7 +37,8 @@
"name": "amount", "name": "amount",
"title": "金额", "title": "金额",
"type": "float", "type": "float",
"length": 18 "length": 18,
"dec": 2
}, },
{ {
"name": "enable_date", "name": "enable_date",

View File

@ -37,7 +37,8 @@
"name": "amount", "name": "amount",
"title": "金额", "title": "金额",
"type": "float", "type": "float",
"length": 18 "length": 18,
"dec": 2
}, },
{ {
"name": "act_date", "name": "act_date",

View File

@ -43,7 +43,8 @@
"name": "mintransamt", "name": "mintransamt",
"title": "最低交易金额", "title": "最低交易金额",
"type": "float", "type": "float",
"length": 18 "length": 18,
"dec": 2
}, },
{ {
"name": "use_multiple", "name": "use_multiple",

View File

@ -25,7 +25,8 @@
"name": "fee_rate", "name": "fee_rate",
"title": "费率", "title": "费率",
"type": "float", "type": "float",
"length": 18 "length": 18,
"dec": 2
}, },
{ {
"name": "enable_date", "name": "enable_date",

View File

@ -38,13 +38,15 @@
"name": "pr_amount", "name": "pr_amount",
"title": "供销金额", "title": "供销金额",
"type": "float", "type": "float",
"length": 18 "length": 18,
"dec": 2
}, },
{ {
"name": "list_amount", "name": "list_amount",
"title": "报价", "title": "报价",
"type": "float", "type": "float",
"length": 18 "length": 18,
"dec": 2
} }
], ],
"codes": [ "codes": [

View File

@ -45,7 +45,8 @@
"name": "unit_amt", "name": "unit_amt",
"title": "价格值", "title": "价格值",
"type": "float", "type": "float",
"length": 18 "length": 18,
"dec": 2
} }
], ],
"codes": [ "codes": [

View File

@ -37,13 +37,15 @@
"name": "recharge_amt", "name": "recharge_amt",
"title": "充值金额", "title": "充值金额",
"type": "float", "type": "float",
"length": 18 "length": 18,
"dec": 2
}, },
{ {
"name": "fee_rate", "name": "fee_rate",
"title": "充值费率", "title": "充值费率",
"type": "float", "type": "float",
"length": 18 "length": 18,
"dec": 2
}, },
{ {
"name": "fee_amt", "name": "fee_amt",

View File

@ -26,7 +26,8 @@
"name": "transrate", "name": "transrate",
"title": "交易费率", "title": "交易费率",
"type": "float", "type": "float",
"length": 18 "length": 18,
"dec": 2
}, },
{ {
"name": "enable_date", "name": "enable_date",