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 ...@@ -17,7 +17,10 @@ from tools.jwt_tools import get_identify_key
from tools.scheduler import create_scheduler from tools.scheduler import create_scheduler
if settings.env != 'LOCAL': if settings.env != 'LOCAL':
openapi_prefix = '/coinsdataapiv2' openapi_prefix = '/pyfund'
debug = False
elif settings.name == "TEST":
openapi_prefix = '/pyfund'
debug = False debug = False
else: else:
openapi_prefix = '' openapi_prefix = ''
......
...@@ -14,8 +14,8 @@ class BillType(str, Enum): ...@@ -14,8 +14,8 @@ class BillType(str, Enum):
exchange = "exchange" exchange = "exchange"
# 质押 # 质押
staking = "staking" staking = "staking"
# 其他 # 调整
other = "other" adjust = "adjust"
# 接口传入模型 # 接口传入模型
...@@ -68,4 +68,13 @@ class CreateStaking(BaseModel): ...@@ -68,4 +68,13 @@ class CreateStaking(BaseModel):
class StakingBill(BaseCreateModel): class StakingBill(BaseCreateModel):
"""质押账目""" """质押账目"""
user_id: str user_id: str
bill_type: BillType = Field(default=BillType.staking, description='账目类型') bill_type: BillType = Field(default=BillType.staking, description='账目类型')
\ No newline at end of file
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