add
This commit is contained in:
@@ -17,19 +17,18 @@
|
||||
---
|
||||
分析这个项目,在 update.go 中完成以下需求:
|
||||
|
||||
1、接收 country_id,name,code 两个参数。
|
||||
1、接收 country_id,name,code 参数。
|
||||
2、确认提交的 country_id 参数有不能为空,如果为空,则返回提示。
|
||||
3、确认提交的 name,code 两个参数,必须有一个不能为空,如果都为空,则返回提示。
|
||||
4、如果 name 不为空,开启事务保存到 name 中。
|
||||
5、如果 code 不为空,开启事务保存到 code 中。
|
||||
6、如果 name,code 都不为空,开启事务保存到 name,code 中。
|
||||
---
|
||||
分析这个项目,在 update.go 中完成以下需求:
|
||||
分析这个项目,在 read.go 中完成以下需求:
|
||||
|
||||
1、接收 country_id,name,code 两个参数。
|
||||
2、确认提交的 country_id 参数有不能为空,如果为空,则返回提示。
|
||||
3、确认提交的 name,code 两个参数,必须有一个不能为空,如果都为空,则返回提示。
|
||||
4、如果 name 不为空,开启事务保存到 name 中。
|
||||
5、如果 code 不为空,开启事务保存到 code 中。
|
||||
6、如果 name,code 都不为空,开启事务保存到 name,code 中。
|
||||
1、接收 country_id,name,code,page,page_size 参数。
|
||||
2、确认提交的 country_id,name,code 必须有一个不能为空,如果都为空,则返回提示。
|
||||
3、确认提交的 page,page_size, 如果为空,则 page 默认为 1,page_size 默认为20。
|
||||
3、根据参数去 country_info_view 中查找数据,并做分页查询。
|
||||
4、将查找的数据分页返回。
|
||||
---
|
||||
Reference in New Issue
Block a user