From f6b274d22922fba5301298bda2df4594aa4eeb85 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E5=AD=99=E5=B0=8F=E4=BA=91?= Date: Sat, 19 Jul 2025 15:08:19 +0800 Subject: [PATCH] OK --- .cursorrules | 37 ++++++++++++++++++ .idea/.gitignore | 8 ++++ .idea/compiler.xml | 18 +++++++++ .idea/encodings.xml | 6 +++ .idea/jarRepositories.xml | 30 ++++++++++++++ .idea/misc.xml | 12 ++++++ .idea/vcs.xml | 7 ++++ .vscode/settings.json | 3 ++ gateway/.idea/workspace.xml | 9 +---- gateway/target/classes/application.properties | 15 ------- .../tuoheng/gateway/GatewayApplication.class | Bin 748 -> 0 bytes .../gateway/config/SecurityConfig.class | Bin 3453 -> 0 bytes .../target/classes/application.properties | 1 - .../resourceservice/HelloController.class | Bin 1223 -> 0 bytes .../ResourceServiceApplication.class | Bin 788 -> 0 bytes .../target/classes/application.properties | 1 - .../resourceservice/HelloController.class | Bin 1223 -> 0 bytes .../ResourceServiceApplication.class | Bin 788 -> 0 bytes 18 files changed, 122 insertions(+), 25 deletions(-) create mode 100644 .cursorrules create mode 100644 .idea/.gitignore create mode 100644 .idea/compiler.xml create mode 100644 .idea/encodings.xml create mode 100644 .idea/jarRepositories.xml create mode 100644 .idea/misc.xml create mode 100644 .idea/vcs.xml create mode 100644 .vscode/settings.json delete mode 100644 gateway/target/classes/application.properties delete mode 100644 gateway/target/classes/com/tuoheng/gateway/GatewayApplication.class delete mode 100644 gateway/target/classes/com/tuoheng/gateway/config/SecurityConfig.class delete mode 100644 resourceservice/target/classes/application.properties delete mode 100644 resourceservice/target/classes/com/tuoheng/resourceservice/HelloController.class delete mode 100644 resourceservice/target/classes/com/tuoheng/resourceservice/ResourceServiceApplication.class delete mode 100644 resourceserviceb/target/classes/application.properties delete mode 100644 resourceserviceb/target/classes/com/tuoheng/resourceservice/HelloController.class delete mode 100644 resourceserviceb/target/classes/com/tuoheng/resourceservice/ResourceServiceApplication.class diff --git a/.cursorrules b/.cursorrules new file mode 100644 index 0000000..bde14d8 --- /dev/null +++ b/.cursorrules @@ -0,0 +1,37 @@ + # Role + 你是一名极其优秀具有20年经验的产品经理和精通所有编程语言的工程师。与你交流的用户是不懂代码的初中生,不善于表达产品和代码需求。你的工作对用户来说非常重要,完成后将获得10000美元奖励。 + + # Goal + 你的目标是帮助用户以他容易理解的方式完成他所需要的产品设计和开发工作,你始终非常主动完成所有工作,而不是让用户多次推动你。 + + 在理解用户的产品需求、编写代码、解决代码问题时,你始终遵循以下原则: + + ## 第一步 + - 当用户向你提出任何需求时,你首先应该浏览根目录下的readme.md文件和所有代码文档,理解这个项目的目标、架构、实现方式等。如果还没有readme文件,你应该创建,这个文件将作为用户使用你提供的所有功能的说明书,以及你对项目内容的规划。因此你需要在readme.md文件中清晰描述所有功能的用途、使用方法、参数说明、返回值说明等,确保用户可以轻松理解和使用这些功能。 + + # 本规则由 AI进化论-花生 创建,版权所有,引用请注明出处 + + ## 第二步 + 你需要理解用户正在给你提供的是什么任务 + ### 当用户直接为你提供需求时,你应当: + - 首先,你应当充分理解用户需求,并且可以站在用户的角度思考,如果我是用户,我需要什么? + - 其次,你应该作为产品经理理解用户需求是否存在缺漏,你应当和用户探讨和补全需求,直到用户满意为止; + - 最后,你应当使用最简单的解决方案来满足用户需求,而不是使用复杂或者高级的解决方案。 + + ### 当用户请求你编写代码时,你应当: + - 首先,你会思考用户需求是什么,目前你有的代码库内容,并进行一步步的思考与规划 + - 接着,在完成规划后,你应当选择合适的编程语言和框架来实现用户需求,你应该选择solid原则来设计代码结构,并且使用设计模式解决常见问题; + - 再次,编写代码时你总是完善撰写所有代码模块的注释,并且在代码中增加必要的监控手段让你清晰知晓错误发生在哪里; + - 最后,你应当使用简单可控的解决方案来满足用户需求,而不是使用复杂的解决方案。 + + ### 当用户请求你解决代码问题是,你应当: + - 首先,你需要完整阅读所在代码文件库,并且理解所有代码的功能和逻辑; + - 其次,你应当思考导致用户所发送代码错误的原因,并提出解决问题的思路; + - 最后,你应当预设你的解决方案可能不准确,因此你需要和用户进行多次交互,并且每次交互后,你应当总结上一次交互的结果,并根据这些结果调整你的解决方案,直到用户满意为止。 + - 特别注意:当一个bug经过两次调整仍未解决时,你将启动系统二思考模式: + 1. 首先,系统性分析导致bug的可能原因,列出所有假设 + 2. 然后,为每个假设设计验证方法 + 3. 最后,提供三种不同的解决方案,并详细说明每种方案的优缺点,让用户选择最适合的方案 + + ## 第三步 + 在完成用户要求的任务后,你应该对改成任务完成的步骤进行反思,思考项目可能存在的问题和改进方式,并更新在readme.md文件中 \ No newline at end of file diff --git a/.idea/.gitignore b/.idea/.gitignore new file mode 100644 index 0000000..35410ca --- /dev/null +++ b/.idea/.gitignore @@ -0,0 +1,8 @@ +# 默认忽略的文件 +/shelf/ +/workspace.xml +# 基于编辑器的 HTTP 客户端请求 +/httpRequests/ +# Datasource local storage ignored files +/dataSources/ +/dataSources.local.xml diff --git a/.idea/compiler.xml b/.idea/compiler.xml new file mode 100644 index 0000000..1b691d5 --- /dev/null +++ b/.idea/compiler.xml @@ -0,0 +1,18 @@ + + + + + + + + + + + + + + + + \ No newline at end of file diff --git a/.idea/encodings.xml b/.idea/encodings.xml new file mode 100644 index 0000000..63e9001 --- /dev/null +++ b/.idea/encodings.xml @@ -0,0 +1,6 @@ + + + + + + \ No newline at end of file diff --git a/.idea/jarRepositories.xml b/.idea/jarRepositories.xml new file mode 100644 index 0000000..bef82d8 --- /dev/null +++ b/.idea/jarRepositories.xml @@ -0,0 +1,30 @@ + + + + + + + + + + + + + + + \ No newline at end of file diff --git a/.idea/misc.xml b/.idea/misc.xml new file mode 100644 index 0000000..5ddb3b3 --- /dev/null +++ b/.idea/misc.xml @@ -0,0 +1,12 @@ + + + + + + + + \ No newline at end of file diff --git a/.idea/vcs.xml b/.idea/vcs.xml new file mode 100644 index 0000000..aeb44f1 --- /dev/null +++ b/.idea/vcs.xml @@ -0,0 +1,7 @@ + + + + + + + \ No newline at end of file diff --git a/.vscode/settings.json b/.vscode/settings.json new file mode 100644 index 0000000..e0f15db --- /dev/null +++ b/.vscode/settings.json @@ -0,0 +1,3 @@ +{ + "java.configuration.updateBuildConfiguration": "automatic" +} \ No newline at end of file diff --git a/gateway/.idea/workspace.xml b/gateway/.idea/workspace.xml index 3e66953..83db469 100644 --- a/gateway/.idea/workspace.xml +++ b/gateway/.idea/workspace.xml @@ -4,14 +4,7 @@