fix: add length/dec attributes to float/decimal fields in model definitions
This commit is contained in:
parent
1bf044de21
commit
e78941a59d
@ -52,7 +52,8 @@
|
||||
"name": "amount",
|
||||
"title": "金额",
|
||||
"type": "decimal",
|
||||
"length": "15,2",
|
||||
"length": 15,
|
||||
"dec": 2,
|
||||
"nullable": false,
|
||||
"comments": "凭证金额"
|
||||
},
|
||||
|
||||
@ -44,7 +44,8 @@
|
||||
"name": "payment_amount",
|
||||
"title": "支出金额",
|
||||
"type": "decimal",
|
||||
"length": "15,2",
|
||||
"length": 15,
|
||||
"dec": 2,
|
||||
"nullable": false,
|
||||
"comments": "支出金额"
|
||||
},
|
||||
|
||||
@ -44,7 +44,8 @@
|
||||
"name": "allocated_amount",
|
||||
"title": "分配金额",
|
||||
"type": "decimal",
|
||||
"length": "15,2",
|
||||
"length": 15,
|
||||
"dec": 2,
|
||||
"nullable": false,
|
||||
"comments": "分配给该订单的金额"
|
||||
},
|
||||
@ -52,7 +53,8 @@
|
||||
"name": "allocation_percentage",
|
||||
"title": "分配比例",
|
||||
"type": "decimal",
|
||||
"length": "5,4",
|
||||
"length": 5,
|
||||
"dec": 4,
|
||||
"nullable": true,
|
||||
"comments": "分配比例(0-1之间)"
|
||||
},
|
||||
|
||||
@ -36,7 +36,8 @@
|
||||
"name": "total_amount",
|
||||
"title": "收款总额",
|
||||
"type": "decimal",
|
||||
"length": "15,2",
|
||||
"length": 15,
|
||||
"dec": 2,
|
||||
"nullable": false,
|
||||
"comments": "本次收款总金额"
|
||||
},
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user