fix: 修改目录结构
Gitea Action for docker build runtime / build-runtime (push) Waiting to run Details
Gitea Action for docker build / build-app (push) Has been cancelled Details

This commit is contained in:
chenwj113 2024-06-02 12:46:05 +08:00
parent dad5d2aaa5
commit 7dfc9ff205
9 changed files with 11 additions and 13 deletions

View File

@ -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

View File

@ -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

View File

@ -50,8 +50,6 @@ def create_app():
from src.api import example
app.include_router(example.router, tags=["API示例"], prefix="/example")
return app

View File

@ -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

View File

@ -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

View File

@ -1,4 +1,4 @@
from src.biz import execute_sql
from src.service import execute_sql
def get_user_by_id(user_id):