Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
P
PyFund
Project
Project
Details
Activity
Releases
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
陈涛
PyFund
Commits
31674ffa
Commit
31674ffa
authored
Mar 30, 2023
by
陈涛
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
修改创建、查询、更新置换记录的bug
parent
12405512
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
8 additions
and
2 deletions
+8
-2
bill.py
model/bill.py
+8
-2
No files found.
model/bill.py
View file @
31674ffa
...
...
@@ -25,12 +25,18 @@ class ExchangeBill(MyBaseModel):
"""置换账户"""
user_id
:
str
=
Field
(
...
,
description
=
'用户ID'
)
fund_id
:
str
=
Field
(
...
,
description
=
'基金id'
)
bill_type
:
BillType
=
BillType
.
exchange
input_value
:
float
=
Field
(
...
,
description
=
"投入价值"
)
output_value
:
float
=
Field
(
...
,
description
=
"输出价值"
)
profit
:
float
=
Field
(
0
,
description
=
"置换产生的价差"
)
bill_type
:
BillType
=
BillType
.
exchange
record_time
:
int
=
Field
(
default_factory
=
utc_now_timestamp
,
description
=
'记录时间'
)
input_currency
:
str
=
Field
(
...
,
description
=
"投入币种"
)
input_price
:
float
=
Field
(
...
,
description
=
"投入币种价格"
)
input_volume
:
float
=
Field
(
...
,
description
=
"投入数量"
)
output_currency
:
str
=
Field
(
...
,
description
=
"输出币种"
)
output_price
:
float
=
Field
(
...
,
description
=
"输出币种价格"
)
output_volume
:
float
=
Field
(
...
,
description
=
"输出数量"
)
remark
:
str
=
Field
(
default
=
""
,
description
=
"备注"
)
class
StakingBill
(
MyBaseModel
):
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment