Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Sign in
Toggle navigation
F
fund_report
Project
Project
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Packages
Packages
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
彭熊
fund_report
Commits
9bb3ffbc
Commit
9bb3ffbc
authored
Jan 22, 2021
by
李宗熹
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
一年内无净值更新的基金不提供评价
parent
b85464ee
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
13 additions
and
6 deletions
+13
-6
fund.py
app/controller/fund.py
+13
-6
No files found.
app/controller/fund.py
View file @
9bb3ffbc
...
@@ -30,10 +30,17 @@ class FundEvaluation(Resource):
...
@@ -30,10 +30,17 @@ class FundEvaluation(Resource):
self
.
parser
.
add_argument
(
'fund_id'
,
type
=
str
,
required
=
True
,
help
=
'基金id不能为空'
)
self
.
parser
.
add_argument
(
'fund_id'
,
type
=
str
,
required
=
True
,
help
=
'基金id不能为空'
)
self
.
parser
.
add_argument
(
'type'
,
type
=
int
,
required
=
True
,
help
=
'基金类型不能为空'
)
self
.
parser
.
add_argument
(
'type'
,
type
=
int
,
required
=
True
,
help
=
'基金类型不能为空'
)
args
=
self
.
parser
.
parse_args
()
args
=
self
.
parser
.
parse_args
()
try
:
data
=
single_evaluation
(
fund_id
=
args
.
get
(
'fund_id'
),
invest_type
=
args
.
get
(
'type'
))
data
=
single_evaluation
(
fund_id
=
args
.
get
(
'fund_id'
),
invest_type
=
args
.
get
(
'type'
))
resp
=
{
resp
=
{
"statusCode"
:
"0000"
,
"statusCode"
:
"0000"
,
"message"
:
"成功"
,
"message"
:
"成功"
,
"attributes"
:
data
"attributes"
:
data
}
}
except
:
resp
=
{
"statusCode"
:
"9999"
,
"message"
:
"该基金最近一年无净值更新,暂不提供该基金评价。"
,
"attributes"
:
""
}
return
resp
return
resp
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