Commit 01a8c82e authored by 陈涛's avatar 陈涛

判断节点用正则

parent 55e9a6cd
......@@ -12,7 +12,7 @@ class NodeStatus(str, Enum):
# 接口请求模型 创建
class BindNode(BaseModel):
pub_key: str = Field(..., description='绑定的key')
pub_key: str = Field(..., regex=r".*\D+", description='绑定的key')
fund_id: str = Field(..., description='绑定基金的ID')
currency: str = Field(default='ETH', description='节点需要质押的币种')
volume: float = Field(default=32, description='节点需要质押的币种数量')
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