From 9c05a29aa408837775cb0678bfbddff5e9116ead Mon Sep 17 00:00:00 2001 From: xianyaowen <2311651249@qq.com> Date: Mon, 21 Sep 2026 17:13:31 +0800 Subject: [PATCH 01/16] =?UTF-8?q?=E4=B8=8A=E4=BC=A0=E6=96=87=E4=BB=B6?= =?UTF-8?q?=E8=87=B3=E3=80=8C/=E3=80=8D?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- main.py | 38 ++++++++++++++++++++++++++++++++++++++ 1 file changed, 38 insertions(+) create mode 100644 main.py diff --git a/main.py b/main.py new file mode 100644 index 0000000..3b5aa26 --- /dev/null +++ b/main.py @@ -0,0 +1,38 @@ +from fastapi import FastAPI +import uvicorn +from starlette.middleware.cors import CORSMiddleware +from tortoise.contrib.fastapi import register_tortoise + +from api import api_router +from common.exception_handler import setup_exceptions + +from common.result import Result +from settings import TORTOISE_ORM + +app = FastAPI() + +# 跨域配置 CORS +app.add_middleware( + CORSMiddleware, + allow_origins=["*"], # 允许所有源 + allow_methods=["*"], # 允许所有 HTTP 方法 + allow_headers=["*"], # 允许所有请求头 +) + + +# 配置路由 +app.include_router(api_router) +# 注册orm +register_tortoise(app, config=TORTOISE_ORM, add_exception_handlers=True, generate_schemas=True) +# 注册异常处理器 +setup_exceptions(app) + + +@app.get("/") +async def root(): + return Result.success() + + +if __name__ == "__main__": + uvicorn.run("main:app", host='0.0.0.0',reload=True, port=9090) + From 0e23e04f9d935a7984b6b858bfd5d5f4595e37a6 Mon Sep 17 00:00:00 2001 From: xingliu0721 <17608431+xingliu0721@user.noreply.gitee.com> Date: Mon, 21 Sep 2026 19:25:23 +0800 Subject: [PATCH 02/16] =?UTF-8?q?=E6=8F=90=E4=BA=A4=E6=B5=8B=E8=AF=95?= =?UTF-8?q?=E6=95=B0=E6=8D=AE?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- happypoker | 1 + 1 file changed, 1 insertion(+) create mode 160000 happypoker diff --git a/happypoker b/happypoker new file mode 160000 index 0000000..3b688db --- /dev/null +++ b/happypoker @@ -0,0 +1 @@ +Subproject commit 3b688dbc97c747bd045642a5d7f944f91c94a597 From 8bd0bdf61586a13cb00ee3dc7d3058d463ba46aa Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E7=AE=80=E6=96=87=E7=91=9E?= <17608442+jianwenrui@user.noreply.gitee.com> Date: Mon, 21 Sep 2026 19:45:54 +0800 Subject: [PATCH 03/16] =?UTF-8?q?=E7=AE=80=E7=9A=84=E6=8F=90=E4=BA=A4?= =?UTF-8?q?=E6=B5=8B=E8=AF=95?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- jian_commit.txt | 1 + 1 file changed, 1 insertion(+) create mode 100644 jian_commit.txt diff --git a/jian_commit.txt b/jian_commit.txt new file mode 100644 index 0000000..dd61377 --- /dev/null +++ b/jian_commit.txt @@ -0,0 +1 @@ +提交提交提交 \ No newline at end of file From b78d6264af41030618637b3455d2bb5eb9896c23 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E5=AD=99=E7=A2=A7=E8=95=BE?= <17608254+sunbilei@user.noreply.gitee.com> Date: Mon, 21 Sep 2026 19:47:09 +0800 Subject: [PATCH 04/16] 111 --- sbl.txt | 1 + 1 file changed, 1 insertion(+) create mode 100644 sbl.txt diff --git a/sbl.txt b/sbl.txt new file mode 100644 index 0000000..a804973 --- /dev/null +++ b/sbl.txt @@ -0,0 +1 @@ +gjgdgdg \ No newline at end of file From 456375bc91c99e159f9d255e1363ef259fbfb995 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E7=AE=80=E6=96=87=E7=91=9E?= <17608442+jianwenrui@user.noreply.gitee.com> Date: Mon, 21 Sep 2026 19:56:55 +0800 Subject: [PATCH 05/16] =?UTF-8?q?=E8=AF=A5=E6=96=87=E4=BB=B6=E4=BF=AE?= =?UTF-8?q?=E6=94=B9=E4=BA=86=E7=AC=AC=E4=B8=80=E8=A1=8C?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- requirements_1.txt | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/requirements_1.txt b/requirements_1.txt index 6b7c026..c496d85 100644 --- a/requirements_1.txt +++ b/requirements_1.txt @@ -1,4 +1,4 @@ -# FastAPI 核心框架(保留你指定的版本) +# FastAPI 核心框架(保留你指定的版本) %简文瑞埋下的一个冲突 fastapi~=0.124.2 # ASGI 服务器(带standard扩展,适配最新版) uvicorn[standard]~=0.38.0 From f43cd76a6db3154aece417070787300a103c6339 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E7=AE=80=E6=96=87=E7=91=9E?= <17608442+jianwenrui@user.noreply.gitee.com> Date: Mon, 21 Sep 2026 20:05:34 +0800 Subject: [PATCH 06/16] =?UTF-8?q?=E6=B5=8B=E8=AF=95=E5=86=B2=E7=AA=81?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- sbl.txt | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/sbl.txt b/sbl.txt index a804973..137a0a1 100644 --- a/sbl.txt +++ b/sbl.txt @@ -1 +1 @@ -gjgdgdg \ No newline at end of file +我改了 \ No newline at end of file From 791905fa2cfb950fab70893f1438df09467dbf08 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E5=BC=A0=E6=89=AC=E5=9D=A4?= <906176381@qq.com> Date: Mon, 21 Sep 2026 20:27:25 +0800 Subject: [PATCH 07/16] =?UTF-8?q?akun=E6=96=B0=E5=A2=9E=E4=BA=86=E4=B8=80?= =?UTF-8?q?=E4=B8=AA=E6=96=87=E4=BB=B6?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- akun_new.txt | 1 + 1 file changed, 1 insertion(+) create mode 100644 akun_new.txt diff --git a/akun_new.txt b/akun_new.txt new file mode 100644 index 0000000..e3b50df --- /dev/null +++ b/akun_new.txt @@ -0,0 +1 @@ +这是akun新增的说明文件 From cfbad17943402a23853c9a5ffcbda3fe58212116 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E7=AE=80=E6=96=87=E7=91=9E?= <17608442+jianwenrui@user.noreply.gitee.com> Date: Mon, 21 Sep 2026 20:31:25 +0800 Subject: [PATCH 08/16] =?UTF-8?q?=E5=86=B2=E7=AA=81=E6=B5=8B=E8=AF=952?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- sbl.txt | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/sbl.txt b/sbl.txt index 137a0a1..63ff4b0 100644 --- a/sbl.txt +++ b/sbl.txt @@ -1 +1 @@ -我改了 \ No newline at end of file +我又改了 \ No newline at end of file From 1037eeb6390675f5654b0cdde2f90a1c9b46ad89 Mon Sep 17 00:00:00 2001 From: akun <906176381@qq.com> Date: Mon, 21 Sep 2026 20:38:30 +0800 Subject: [PATCH 09/16] =?UTF-8?q?=E5=88=A0=E9=99=A4=20akun=5Fnew.txt?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- akun_new.txt | 1 - 1 file changed, 1 deletion(-) delete mode 100644 akun_new.txt diff --git a/akun_new.txt b/akun_new.txt deleted file mode 100644 index e3b50df..0000000 --- a/akun_new.txt +++ /dev/null @@ -1 +0,0 @@ -这是akun新增的说明文件 From 9652af15b3e542972e59929e4a5e05fa159a874d Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E5=BC=A0=E6=89=AC=E5=9D=A4?= <906176381@qq.com> Date: Mon, 21 Sep 2026 20:40:49 +0800 Subject: [PATCH 10/16] =?UTF-8?q?akun=E4=BF=AE=E6=94=B9=E4=BA=86=E5=86=B2?= =?UTF-8?q?=E7=AA=81=E6=BC=94=E7=A4=BA=E6=96=87=E4=BB=B6?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- conflict_demo.txt | 1 + 1 file changed, 1 insertion(+) create mode 100644 conflict_demo.txt diff --git a/conflict_demo.txt b/conflict_demo.txt new file mode 100644 index 0000000..753db7a --- /dev/null +++ b/conflict_demo.txt @@ -0,0 +1 @@ +这是akun修改的内容 From 7514490604807f0a5a1760ada8be89c1a7fa6605 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E5=BC=A0=E6=89=AC=E5=9D=A4?= <906176381@qq.com> Date: Mon, 21 Sep 2026 20:42:59 +0800 Subject: [PATCH 11/16] =?UTF-8?q?akun=E4=BF=AE=E6=94=B9=E4=BA=86=E5=86=B2?= =?UTF-8?q?=E7=AA=81=E6=96=87=E4=BB=B6?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- conflict_demo.txt | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/conflict_demo.txt b/conflict_demo.txt index 753db7a..f43c0db 100644 --- a/conflict_demo.txt +++ b/conflict_demo.txt @@ -1 +1 @@ -这是akun修改的内容 +这是akun修改的冲突行 From 5635d83203db4b3398d2dd0350cd207a6f3b7f89 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E5=BC=A0=E6=89=AC=E5=9D=A4?= <906176381@qq.com> Date: Mon, 21 Sep 2026 20:43:19 +0800 Subject: [PATCH 12/16] =?UTF-8?q?=E6=9D=8E=E5=9B=9B=E4=BF=AE=E6=94=B9?= =?UTF-8?q?=E4=BA=86=E5=86=B2=E7=AA=81=E6=96=87=E4=BB=B6?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- conflict_demo.txt | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/conflict_demo.txt b/conflict_demo.txt index f43c0db..88daadf 100644 --- a/conflict_demo.txt +++ b/conflict_demo.txt @@ -1 +1 @@ -这是akun修改的冲突行 +这是李四修改的冲突行 From 8f578fd31c82c9983d55f279db5c6797f55f5dce Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E5=BC=A0=E6=89=AC=E5=9D=A4?= <906176381@qq.com> Date: Mon, 21 Sep 2026 20:44:17 +0800 Subject: [PATCH 13/16] =?UTF-8?q?akun=E4=BF=AE=E6=94=B9=E4=BA=86=E5=86=B2?= =?UTF-8?q?=E7=AA=81=E8=A1=8C?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- conflict_demo.txt | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/conflict_demo.txt b/conflict_demo.txt index 88daadf..6a98a10 100644 --- a/conflict_demo.txt +++ b/conflict_demo.txt @@ -1 +1 @@ -这是李四修改的冲突行 +Akun wrote this line From ca02511d21d51c3d7a2180eaea50b898b824a104 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E5=BC=A0=E6=89=AC=E5=9D=A4?= <906176381@qq.com> Date: Mon, 21 Sep 2026 20:44:45 +0800 Subject: [PATCH 14/16] =?UTF-8?q?=E6=9D=8E=E5=9B=9B=E4=BF=AE=E6=94=B9?= =?UTF-8?q?=E4=BA=86=E5=86=B2=E7=AA=81=E8=A1=8C?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- conflict_demo.txt | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/conflict_demo.txt b/conflict_demo.txt index 6a98a10..c8a2007 100644 --- a/conflict_demo.txt +++ b/conflict_demo.txt @@ -1 +1 @@ -Akun wrote this line +Lisi wrote this line From f99e6bd264cbb213fb5a160ab333226e4cff5fa1 Mon Sep 17 00:00:00 2001 From: akun <906176381@qq.com> Date: Mon, 21 Sep 2026 20:46:32 +0800 Subject: [PATCH 15/16] =?UTF-8?q?=E5=88=A0=E9=99=A4=20conflict=5Fdemo.txt?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- conflict_demo.txt | 1 - 1 file changed, 1 deletion(-) delete mode 100644 conflict_demo.txt diff --git a/conflict_demo.txt b/conflict_demo.txt deleted file mode 100644 index c8a2007..0000000 --- a/conflict_demo.txt +++ /dev/null @@ -1 +0,0 @@ -Lisi wrote this line From 9103fccb97efdc25cf71c4edeb69dde1fd2ba739 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E7=AE=80=E6=96=87=E7=91=9E?= <17608442+jianwenrui@user.noreply.gitee.com> Date: Mon, 21 Sep 2026 21:07:20 +0800 Subject: [PATCH 16/16] =?UTF-8?q?=E5=86=B2=E7=AA=81=E6=B5=8B=E8=AF=95?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- sbl.txt | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/sbl.txt b/sbl.txt index 63ff4b0..34a8605 100644 --- a/sbl.txt +++ b/sbl.txt @@ -1 +1 @@ -我又改了 \ No newline at end of file +冲突测试 \ No newline at end of file