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
55e9a6cd
Commit
55e9a6cd
authored
Apr 03, 2023
by
confusion
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
添加查询多个节点收益接口
parent
513baca8
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
2 additions
and
9 deletions
+2
-9
node.py
api/node.py
+2
-9
No files found.
api/node.py
View file @
55e9a6cd
import
re
from
typing
import
List
from
typing
import
List
from
motor.core
import
AgnosticCollection
from
motor.core
import
AgnosticCollection
import
dependencies
import
dependencies
from
exception.api
import
APIError
from
exception.api
import
APIError
from
exception.db
import
ExistDataError
,
NotFundError
from
exception.db
import
ExistDataError
,
NotFundError
...
@@ -18,14 +19,6 @@ from tools.jwt_tools import User
...
@@ -18,14 +19,6 @@ from tools.jwt_tools import User
router
=
APIRouter
()
router
=
APIRouter
()
def
str_not_numbers
(
string_with_numbers
:
str
)
->
bool
:
flag
=
True
regex_pattern
=
r"^\d+$"
if
re
.
match
(
regex_pattern
,
string_with_numbers
):
flag
=
False
return
flag
@
router
.
post
(
'/'
,
@
router
.
post
(
'/'
,
response_model
=
BaseResponse
,
response_model
=
BaseResponse
,
summary
=
'绑定节点'
,
summary
=
'绑定节点'
,
...
...
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