This commit is contained in:
vipg
2025-11-11 18:16:10 +08:00
parent aefba7b6e1
commit 89838b60be
2 changed files with 10 additions and 0 deletions

View File

@@ -0,0 +1 @@
package logic

View File

@@ -17,6 +17,15 @@
---
分析这个项目,在 update.go 中完成以下需求:
1、接收 country_id,namecode 两个参数。
2、确认提交的 country_id 参数有不能为空,如果为空,则返回提示。
3、确认提交的 namecode 两个参数,必须有一个不能为空,如果都为空,则返回提示。
4、如果 name 不为空,开启事务保存到 name 中。
5、如果 code 不为空,开启事务保存到 code 中。
6、如果 namecode 都不为空,开启事务保存到 namecode 中。
---
分析这个项目,在 update.go 中完成以下需求:
1、接收 country_id,namecode 两个参数。
2、确认提交的 country_id 参数有不能为空,如果为空,则返回提示。
3、确认提交的 namecode 两个参数,必须有一个不能为空,如果都为空,则返回提示。