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
43b96ec1
Commit
43b96ec1
authored
Mar 24, 2023
by
陈涛
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
增加测试环境配置文件
parent
51af1633
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
28 additions
and
4 deletions
+28
-4
TEST.py
configs/TEST.py
+12
-0
main.py
main.py
+4
-1
bill.py
model/bill.py
+12
-3
No files found.
configs/TEST.py
0 → 100644
View file @
43b96ec1
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'
main.py
View file @
43b96ec1
...
@@ -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
=
''
...
...
model/bill.py
View file @
43b96ec1
...
@@ -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
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