@RestController @RequestMapping(value="/system/gen") public class ToolGenTableController extends Object
| 构造器和说明 |
|---|
ToolGenTableController() |
| 限定符和类型 | 方法和说明 |
|---|---|
Result |
add(SysGenTable sysGenTable)
新增保存
|
void |
batchGenCode(javax.servlet.http.HttpServletResponse response,
String tables)
批量生成代码
|
Result |
detail(Long id)
详情页
|
Result |
edit(SysGenTable sysGenTable)
修改保存
|
void |
export(javax.servlet.http.HttpServletResponse response,
SysGenTable sysGenTable)
导出接口
|
Result |
list(SysGenTable sysGenTable,
Integer pageNo,
Integer pageSize)
分页查询
|
Result |
preview(Long tableId)
预览代码
|
Result |
remove(Long[] ids)
删除接口
|
Result |
synchDb(String tableName)
同步数据库
|
@OperateLog(title="\u4ee3\u7801\u751f\u6210\u4e1a\u52a1", businessType=DETAIL) @PreAuthorize(value="@auth.hasAuthority(\'system:gen:query\')") @GetMapping(value="{id}") public Result detail(@PathVariable Long id)
@OperateLog(title="\u4ee3\u7801\u751f\u6210\u4e1a\u52a1", businessType=LIST) @PreAuthorize(value="@auth.hasAuthority(\'system:gen:list\')") @GetMapping(value="/list") public Result list(SysGenTable sysGenTable, @RequestParam(name="pageNum",defaultValue="1") Integer pageNo, @RequestParam(name="pageSize",defaultValue="10") Integer pageSize)
sysGenTable - 分页查询筛选条件pageNo - 页码pageSize - 每页的数量@OperateLog(title="\u4ee3\u7801\u751f\u6210\u4e1a\u52a1", businessType=INSERT) @PreAuthorize(value="@auth.hasAuthority(\'system:gen:add\')") @PostMapping public Result add(@Validated @RequestBody SysGenTable sysGenTable)
@OperateLog(title="\u4ee3\u7801\u751f\u6210\u4e1a\u52a1", businessType=UPDATE) @PreAuthorize(value="@auth.hasAuthority(\'system:gen:edit\')") @PutMapping public Result edit(@Validated @RequestBody SysGenTable sysGenTable)
@OperateLog(title="\u4ee3\u7801\u751f\u6210\u4e1a\u52a1", businessType=DELETE) @PreAuthorize(value="@auth.hasAuthority(\'system:gen:remove\')") @DeleteMapping(value="/{ids}") public Result remove(@PathVariable Long[] ids)
@OperateLog(title="\u4ee3\u7801\u751f\u6210\u4e1a\u52a1", businessType=EXPORT) @PreAuthorize(value="@auth.hasAuthority(\'system:gen:export\')") @PostMapping(value="/export") public void export(javax.servlet.http.HttpServletResponse response, SysGenTable sysGenTable) throws Exception
Exception@OperateLog(title="\u4ee3\u7801\u751f\u6210\u4e1a\u52a1", businessType=DETAIL) @PreAuthorize(value="@auth.hasAuthority(\'system:gen:preview\')") @GetMapping(value="/preview/{tableId}") public Result preview(@PathVariable(value="tableId") Long tableId) throws IOException
IOException@PreAuthorize(value="@auth.hasAuthority(\'system:gen:edit\')") @OperateLog(title="\u540c\u6b65\u6570\u636e\u5e93", businessType=UPDATE) @GetMapping(value="/synchDb/{tableName}") public Result synchDb(@PathVariable(value="tableName") String tableName)
@PreAuthorize(value="@auth.hasAuthority(\'system:gen:code\')") @OperateLog(title="\u4ee3\u7801\u751f\u6210", businessType=GENCODE) @GetMapping(value="/batchGenCode") public void batchGenCode(javax.servlet.http.HttpServletResponse response, String tables) throws IOException
IOExceptionCopyright © 2023. All rights reserved.