add
This commit is contained in:
6
backend/提示词条.md
Normal file
6
backend/提示词条.md
Normal file
@@ -0,0 +1,6 @@
|
||||
分析这个项目,在 create.go 中完成以下需求:
|
||||
|
||||
1、接收 name,code 两个参数。
|
||||
2、确认提交的 name,code 两个参数不能为空,如果有空,则返回提示。
|
||||
3、第二步通过后,在 country 表中,通过: "INSERT INTO "country" DEFAULT VALUES RETURNING id" 获得ID。
|
||||
4、通过 3 中的 id,开启事务保存到 name 和 code 的表中。
|
||||
Reference in New Issue
Block a user