Commit 43b96ec1 authored by 陈涛's avatar 陈涛

增加测试环境配置文件

parent 51af1633
from configs import env, make_dburi
class Settings:
env = env
name = '测试环境'
mongodb_uri = make_dburi(schema='mongodb', sock_path='13.115.26.128:27018', user_name='root', pwd='ETHQig66tzxoZc+wuIPEUTMVsY')
# mongodb = mongodb_url('127.0.0.1:27017')
redis_uri = make_dburi(schema='redis', sock_path='13.115.26.128:6379', pwd='MukAzxGMOL2')
# api
identify_jwt = 'https://apit.matrixone.io/identity/.well-known/openid-configuration/jwks'
......@@ -17,7 +17,10 @@ from tools.jwt_tools import get_identify_key
from tools.scheduler import create_scheduler
if settings.env != 'LOCAL':
openapi_prefix = '/coinsdataapiv2'
openapi_prefix = '/pyfund'
debug = False
elif settings.name == "TEST":
openapi_prefix = '/pyfund'
debug = False
else:
openapi_prefix = ''
......
......@@ -14,8 +14,8 @@ class BillType(str, Enum):
exchange = "exchange"
# 质押
staking = "staking"
# 其他
other = "other"
# 调整
adjust = "adjust"
# 接口传入模型
......@@ -69,3 +69,12 @@ class StakingBill(BaseCreateModel):
"""质押账目"""
user_id: str
bill_type: BillType = Field(default=BillType.staking, description='账目类型')
class CreateAdjustBill(BaseCreateModel):
pass
class AdjustBill(BaseCreateModel):
user_id: str
bill_type: BillType = Field(default=BillType.adjust, description='账目类型')
\ No newline at end of file
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