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
83f2d5ac
Commit
83f2d5ac
authored
Mar 28, 2023
by
confusion
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
优化代码
parent
66b0e51a
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
4 additions
and
4 deletions
+4
-4
bill.py
model/bill.py
+4
-4
No files found.
model/bill.py
View file @
83f2d5ac
...
@@ -18,7 +18,7 @@ class PCFBill(MyBaseModel):
...
@@ -18,7 +18,7 @@ class PCFBill(MyBaseModel):
volume
:
float
=
Field
(
...
,
description
=
'资产数量'
)
volume
:
float
=
Field
(
...
,
description
=
'资产数量'
)
price
:
float
=
Field
(
...
,
description
=
"价格"
)
price
:
float
=
Field
(
...
,
description
=
"价格"
)
remark
:
str
=
Field
(
default
=
""
,
description
=
"备注"
)
remark
:
str
=
Field
(
default
=
""
,
description
=
"备注"
)
record_time
:
int
=
Field
(
default_factory
=
lambda
:
utc_now_timestamp
()
,
description
=
'记录时间'
)
record_time
:
int
=
Field
(
default_factory
=
utc_now_timestamp
,
description
=
'记录时间'
)
class
ExchangeBill
(
MyBaseModel
):
class
ExchangeBill
(
MyBaseModel
):
...
@@ -28,7 +28,7 @@ class ExchangeBill(MyBaseModel):
...
@@ -28,7 +28,7 @@ class ExchangeBill(MyBaseModel):
output_value
:
float
=
Field
(
...
,
description
=
"输出价值"
)
output_value
:
float
=
Field
(
...
,
description
=
"输出价值"
)
profit
:
float
=
Field
(
0
,
description
=
"置换产生的价差"
)
profit
:
float
=
Field
(
0
,
description
=
"置换产生的价差"
)
bill_type
:
BillType
=
BillType
.
exchange
bill_type
:
BillType
=
BillType
.
exchange
record_time
:
int
=
Field
(
default_factory
=
lambda
:
utc_now_timestamp
()
,
description
=
'记录时间'
)
record_time
:
int
=
Field
(
default_factory
=
utc_now_timestamp
,
description
=
'记录时间'
)
class
StakingBill
(
MyBaseModel
):
class
StakingBill
(
MyBaseModel
):
...
@@ -42,7 +42,7 @@ class StakingBill(MyBaseModel):
...
@@ -42,7 +42,7 @@ class StakingBill(MyBaseModel):
volume
:
float
=
Field
(
default
=
32
,
description
=
'数量'
)
volume
:
float
=
Field
(
default
=
32
,
description
=
'数量'
)
pub_key
:
str
=
Field
(
...
,
description
=
'节点key'
)
pub_key
:
str
=
Field
(
...
,
description
=
'节点key'
)
remark
:
str
=
Field
(
default
=
""
,
description
=
"备注"
)
remark
:
str
=
Field
(
default
=
""
,
description
=
"备注"
)
record_time
:
int
=
Field
(
default_factory
=
lambda
:
utc_now_timestamp
()
,
description
=
'记录时间'
)
record_time
:
int
=
Field
(
default_factory
=
utc_now_timestamp
,
description
=
'记录时间'
)
class
AdjustBill
(
MyBaseModel
):
class
AdjustBill
(
MyBaseModel
):
...
@@ -53,4 +53,4 @@ class AdjustBill(MyBaseModel):
...
@@ -53,4 +53,4 @@ class AdjustBill(MyBaseModel):
currency
:
str
=
Field
(
'USD'
,
description
=
'币种'
)
currency
:
str
=
Field
(
'USD'
,
description
=
'币种'
)
volume
:
float
=
Field
(
...
,
description
=
'资产数量'
)
volume
:
float
=
Field
(
...
,
description
=
'资产数量'
)
remark
:
str
=
Field
(
default
=
""
,
description
=
"备注"
)
remark
:
str
=
Field
(
default
=
""
,
description
=
"备注"
)
record_time
:
int
=
Field
(
default_factory
=
lambda
:
utc_now_timestamp
()
,
description
=
'记录时间'
)
record_time
:
int
=
Field
(
default_factory
=
utc_now_timestamp
,
description
=
'记录时间'
)
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