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
a1524550
Commit
a1524550
authored
Mar 29, 2023
by
杨明橙
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
调整账户 添加份额字段
parent
f011e512
Changes
2
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
4 additions
and
0 deletions
+4
-0
bill.py
model/bill.py
+2
-0
bill.py
schema/bill.py
+2
-0
No files found.
model/bill.py
View file @
a1524550
...
...
@@ -52,5 +52,7 @@ class AdjustBill(MyBaseModel):
fund_id
:
str
=
Field
(
...
,
description
=
'基金id'
)
currency
:
str
=
Field
(
'USD'
,
description
=
'币种'
)
volume
:
float
=
Field
(
...
,
description
=
'资产数量'
)
fund_share
:
float
=
Field
(
...
,
description
=
"基金份额"
)
remark
:
str
=
Field
(
default
=
""
,
description
=
"备注"
)
record_time
:
int
=
Field
(
default_factory
=
utc_now_timestamp
,
description
=
'记录时间'
)
schema/bill.py
View file @
a1524550
...
...
@@ -86,6 +86,8 @@ class CreateAdjustBill(BaseModel):
fund_id
:
str
=
Field
(
...
,
description
=
'基金id'
)
currency
:
str
=
Field
(
'USD'
,
description
=
'币种'
)
volume
:
float
=
Field
(
...
,
description
=
'资产数量'
)
fund_share
:
float
=
Field
(
...
,
description
=
"基金份额"
)
remark
:
str
=
Field
(
default
=
""
,
description
=
"备注"
)
record_time
:
int
=
Field
(
default_factory
=
lambda
:
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