|
|
@@ -32,9 +32,9 @@ public class ${classInfo.className}Controller extends BaseController {
|
|
|
}
|
|
|
|
|
|
@ApiOperation(value = "删除")
|
|
|
- @DeleteMapping("/${primaryKeyCame}")
|
|
|
- public AjaxResult delete(@RequestParam String ${primaryKeyCame}) {
|
|
|
- return toAjax(${classInfo.className?uncap_first}Service.delete(${primaryKeyCame}));
|
|
|
+ @DeleteMapping("/{${primaryKeyCame}s}")
|
|
|
+ public AjaxResult delete(@RequestParam String[] ${primaryKeyCame}s) {
|
|
|
+ return toAjax(${classInfo.className?uncap_first}Service.delete(${primaryKeyCame}s));
|
|
|
}
|
|
|
|
|
|
@ApiOperation(value = "更新")
|
|
|
@@ -44,7 +44,7 @@ public class ${classInfo.className}Controller extends BaseController {
|
|
|
}
|
|
|
|
|
|
@ApiOperation(value = "单个")
|
|
|
- @GetMapping(value = {"/", "/${primaryKeyCame}"})
|
|
|
+ @GetMapping(value = {"/", "/{${primaryKeyCame}}"})
|
|
|
public AjaxResult getInfo(String ${primaryKeyCame}) {
|
|
|
${classInfo.className} info = ${classInfo.className?uncap_first}Service.getInfo(${primaryKeyCame});
|
|
|
AjaxResult ajax = AjaxResult.success();
|