fix: 修改目录结构
This commit is contained in:
parent
dad5d2aaa5
commit
7dfc9ff205
|
|
@ -5,16 +5,16 @@ lifetime_seconds=3600
|
|||
[mysql]
|
||||
username=root
|
||||
password=123456
|
||||
host=192.168.2.94
|
||||
host=mysql
|
||||
port=3306
|
||||
database=admgs_v2
|
||||
database=test
|
||||
|
||||
|
||||
[redis]
|
||||
redis_host=192.168.2.94
|
||||
redis_host=redis
|
||||
redis_port=6379
|
||||
|
||||
[rabbitmq]
|
||||
rabbitmq_host=192.168.2.94
|
||||
rabbitmq_host=rabbitmq
|
||||
rabbitmq_user=root
|
||||
rabbitmq_password=123123
|
||||
|
|
@ -5,16 +5,16 @@ lifetime_seconds=3600
|
|||
[mysql]
|
||||
username=root
|
||||
password=123456
|
||||
host=192.168.2.94
|
||||
host=mysql
|
||||
port=3306
|
||||
database=admgs_v2
|
||||
database=test
|
||||
|
||||
|
||||
[redis]
|
||||
redis_host=192.168.2.94
|
||||
redis_host=redis
|
||||
redis_port=6379
|
||||
|
||||
[rabbitmq]
|
||||
rabbitmq_host=192.168.2.94
|
||||
rabbitmq_host=rabbitmq
|
||||
rabbitmq_user=root
|
||||
rabbitmq_password=123123
|
||||
2
main.py
2
main.py
|
|
@ -50,8 +50,6 @@ def create_app():
|
|||
from src.api import example
|
||||
app.include_router(example.router, tags=["API示例"], prefix="/example")
|
||||
|
||||
|
||||
|
||||
return app
|
||||
|
||||
|
||||
|
|
|
|||
|
|
@ -3,7 +3,7 @@ aioredis==2.0.1
|
|||
aiomysql==0.1.1
|
||||
bcrypt==4.0.1
|
||||
email-validator==1.3.1
|
||||
fastapi==0.89.1
|
||||
fastapi==0.111.0
|
||||
fastapi-plugins==0.11.0
|
||||
FastAPI-SQLAlchemy==0.2.1
|
||||
pydantic==1.10.4
|
||||
|
|
|
|||
|
|
@ -7,7 +7,7 @@ from fastapi.security import OAuth2PasswordBearer
|
|||
from fastapi_plugins import depends_redis
|
||||
from pydantic import BaseModel
|
||||
|
||||
from src.biz.example import get_user_by_id
|
||||
from src.service.example import get_user_by_id
|
||||
from src.dtos import response
|
||||
from src.dtos.example import UserExampleListPagesResult
|
||||
|
||||
|
|
|
|||
|
|
@ -1,4 +1,4 @@
|
|||
from src.biz import execute_sql
|
||||
from src.service import execute_sql
|
||||
|
||||
|
||||
def get_user_by_id(user_id):
|
||||
Loading…
Reference in New Issue