This commit is contained in:
vipg
2025-11-11 17:43:03 +08:00
parent 6411e96a59
commit 47e9aa27bd
6 changed files with 118 additions and 23 deletions

6
backend/提示词条.md Normal file
View File

@@ -0,0 +1,6 @@
分析这个项目,在 create.go 中完成以下需求:
1、接收 namecode 两个参数。
2、确认提交的 namecode 两个参数不能为空,如果有空,则返回提示。
3、第二步通过后在 country 表中,通过: "INSERT INTO "country" DEFAULT VALUES RETURNING id" 获得ID。
4、通过 3 中的 id开启事务保存到 name 和 code 的表中。