1. 优化代码生成器的模板

2. 增加 API 正常日志的 API 接口
This commit is contained in:
YunaiV
2021-02-27 01:29:18 +08:00
parent 7a87fdbd79
commit 0678fb7ca0
19 changed files with 485 additions and 22 deletions

View File

@ -52,7 +52,7 @@ public class ${table.className}Controller {
return success(true);
}
@DeleteMapping("/delete")
@DeleteMapping("/delete")
@ApiOperation("删除${table.classComment}")
@ApiImplicitParam(name = "id", value = "编号", required = true)
@PreAuthorize("@ss.hasPermission('${permissionPrefix}:delete')")

View File

@ -74,12 +74,12 @@ public class ${table.className}ServiceImpl implements ${table.className}Service
@Override
public PageResult<${table.className}DO> get${simpleClassName}Page(${table.className}PageReqVO pageReqVO) {
return ${classNameVar}Mapper.selectPage(pageReqVO);
return ${classNameVar}Mapper.selectPage(pageReqVO);
}
@Override
public List<${table.className}DO> get${simpleClassName}List(${table.className}ExportReqVO exportReqVO) {
return ${classNameVar}Mapper.selectList(exportReqVO);
return ${classNameVar}Mapper.selectList(exportReqVO);
}
}