Commit 55e9a6cd authored by confusion's avatar confusion

添加查询多个节点收益接口

parent 513baca8
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='绑定节点',
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment