test_class.declarator: mockMvc
test_class.modifier: @Autowired
      private
test_class.original_string: @Autowired
      private MockMvc mockMvc;
test_class.type: MockMvc
test_class.var_name: mockMvc
test_class.declarator: tokenFactory
test_class.modifier: @Autowired
      private
test_class.original_string: @Autowired
      private TokenFactory tokenFactory;
test_class.type: TokenFactory
test_class.var_name: tokenFactory
test_class.declarator: objectMapper
test_class.modifier: private
test_class.original_string: private ObjectMapper objectMapper;
test_class.type: ObjectMapper
test_class.var_name: objectMapper
test_class.declarator: accessToken
test_class.modifier: private
test_class.original_string: private OAuth2AccessToken accessToken;
test_class.type: OAuth2AccessToken
test_class.var_name: accessToken
test_class.file: lzpeng-boot-server/src/test/java/com/lzpeng/project/tool/controller/TableInfoControllerTest.java
test_class.identifier: TableInfoControllerTest
test_case.body: @Test
      public void testDelete() throws Exception {
          String id = "{}";
          mockMvc.perform(delete("/tool/tableInfo/1" + id)
                  .header(HttpHeaders.AUTHORIZATION, String.join(" ", accessToken.getTokenType(), accessToken.getValue()))
                  .contentType(MediaType.APPLICATION_JSON_UTF8) // 请求类型
                  .accept(MediaType.APPLICATION_JSON_UTF8)) // 响应类型
                  .andExpect(status().isOk());
      }
test_case.class_method_signature: TableInfoControllerTest.testDelete()
test_case.full_signature: @Test public void testDelete()
test_case.identifier: testDelete
test_case.invocations: andExpect perform accept contentType header delete join getTokenType getValue isOk status
test_case.modifiers: @Test public
test_case.parameters: ()
test_case.return: void
test_case.signature: void testDelete()
focal_class.declarator: MODULE_NAME = "tool"
focal_class.modifier: private static final
focal_class.original_string: private static final String MODULE_NAME = "tool";
focal_class.type: String
focal_class.var_name: MODULE_NAME
focal_class.declarator: CLASS_NAME = "tableInfo"
focal_class.modifier: private static final
focal_class.original_string: private static final String CLASS_NAME = "tableInfo";
focal_class.type: String
focal_class.var_name: CLASS_NAME
focal_class.declarator: LIST_PERM = MODULE_NAME + ":" +  CLASS_NAME + ":list"
focal_class.modifier: private static final
focal_class.original_string: private static final String LIST_PERM = MODULE_NAME + ":" +  CLASS_NAME + ":list";
focal_class.type: String
focal_class.var_name: LIST_PERM
focal_class.declarator: QUERY_PERM = MODULE_NAME + ":" +  CLASS_NAME + ":query"
focal_class.modifier: private static final
focal_class.original_string: private static final String QUERY_PERM = MODULE_NAME + ":" +  CLASS_NAME + ":query";
focal_class.type: String
focal_class.var_name: QUERY_PERM
focal_class.declarator: ADD_PERM = MODULE_NAME + ":" +  CLASS_NAME + ":add"
focal_class.modifier: private static final
focal_class.original_string: private static final String ADD_PERM = MODULE_NAME + ":" +  CLASS_NAME + ":add";
focal_class.type: String
focal_class.var_name: ADD_PERM
focal_class.declarator: DELETE_PERM = MODULE_NAME + ":" +  CLASS_NAME + ":delete"
focal_class.modifier: private static final
focal_class.original_string: private static final String DELETE_PERM = MODULE_NAME + ":" +  CLASS_NAME + ":delete";
focal_class.type: String
focal_class.var_name: DELETE_PERM
focal_class.declarator: EDIT_PERM = MODULE_NAME + ":" +  CLASS_NAME + ":edit"
focal_class.modifier: private static final
focal_class.original_string: private static final String EDIT_PERM = MODULE_NAME + ":" +  CLASS_NAME + ":edit";
focal_class.type: String
focal_class.var_name: EDIT_PERM
focal_class.declarator: EXPORT_PERM = MODULE_NAME + ":" +  CLASS_NAME + ":export"
focal_class.modifier: private static final
focal_class.original_string: private static final String EXPORT_PERM = MODULE_NAME + ":" +  CLASS_NAME + ":export";
focal_class.type: String
focal_class.var_name: EXPORT_PERM
focal_class.declarator: IMPORT_PERM = MODULE_NAME + ":" +  CLASS_NAME + ":import"
focal_class.modifier: private static final
focal_class.original_string: private static final String IMPORT_PERM = MODULE_NAME + ":" +  CLASS_NAME + ":import";
focal_class.type: String
focal_class.var_name: IMPORT_PERM
focal_class.declarator: tableInfoService
focal_class.modifier: protected
focal_class.original_string: protected TableInfoService tableInfoService;
focal_class.type: TableInfoService
focal_class.var_name: tableInfoService
focal_class.file: lzpeng-boot-server/src/main/java/com/lzpeng/project/tool/controller/TableInfoController.java
focal_class.identifier: TableInfoController
focal_class.class_method_signature: TableInfoController.setTableInfoService(TableInfoService tableInfoService)
focal_class.full_signature: @Autowired public void setTableInfoService(TableInfoService tableInfoService)
focal_class.identifier: setTableInfoService
focal_class.modifiers: @Autowired public
focal_class.parameters: (TableInfoService tableInfoService)
focal_class.return: void
focal_class.signature: void setTableInfoService(TableInfoService tableInfoService)
focal_class.class_method_signature: TableInfoController.getTableInfo()
focal_class.full_signature: @Override @GetMapping("/dict") @ApiOperation("获取表信息的数据字典") @PreAuthorize("hasAnyAuthority('" + LIST_PERM + "')") public Result<TableInfo> getTableInfo()
focal_class.identifier: getTableInfo
focal_class.modifiers: @Override @GetMapping("/dict") @ApiOperation("获取表信息的数据字典") @PreAuthorize("hasAnyAuthority('" + LIST_PERM + "')") public
focal_class.parameters: ()
focal_class.return: Result<TableInfo>
focal_class.signature: Result<TableInfo> getTableInfo()
focal_class.class_method_signature: TableInfoController.save(@Valid @RequestBody TableInfo model)
focal_class.full_signature: @Override @PostMapping @ApiOperation("保存表信息") @PreAuthorize("hasAnyAuthority('" + ADD_PERM + "')") public Result<TableInfo> save(@Valid @RequestBody TableInfo model)
focal_class.identifier: save
focal_class.modifiers: @Override @PostMapping @ApiOperation("保存表信息") @PreAuthorize("hasAnyAuthority('" + ADD_PERM + "')") public
focal_class.parameters: (@Valid @RequestBody TableInfo model)
focal_class.return: Result<TableInfo>
focal_class.signature: Result<TableInfo> save(@Valid @RequestBody TableInfo model)
focal_class.class_method_signature: TableInfoController.delete(@ApiParam(value = "主键id", required = true) @PathVariable("id") String id) {
focal_class.full_signature: @Override @DeleteMapping("/{id:^[a-zA-Z0-9]+_[a-zA-Z0-9]+_[a-zA-Z0-9]+$}") @ApiOperation("删除表信息") @PreAuthorize("hasAnyAuthority('" + DELETE_PERM + "')") public Result<Void> delete(@ApiParam(value = "主键id", required = true) @PathVariable("id") String id) {
focal_class.identifier: delete
focal_class.modifiers: @Override @DeleteMapping("/{id:^[a-zA-Z0-9]+_[a-zA-Z0-9]+_[a-zA-Z0-9]+$}") @ApiOperation("删除表信息") @PreAuthorize("hasAnyAuthority('" + DELETE_PERM + "')") public
focal_class.parameters: (@ApiParam(value = "主键id", required = true) @PathVariable("id") String id) {
focal_class.return: Result<Void>
focal_class.signature: Result<Void> delete(@ApiParam(value = "主键id", required = true) @PathVariable("id") String id) {
focal_class.class_method_signature: TableInfoController.update(@ApiParam(value = "主键id", required = true) @PathVariable("id") String id, @RequestBody TableInfo model) {
focal_class.full_signature: @Override @PutMapping("/{id:^[a-zA-Z0-9]+_[a-zA-Z0-9]+_[a-zA-Z0-9]+$}") @ApiOperation("更新表信息") @PreAuthorize("hasAnyAuthority('" + EDIT_PERM + "')") public Result<TableInfo> update(@ApiParam(value = "主键id", required = true) @PathVariable("id") String id, @RequestBody TableInfo model) {
focal_class.identifier: update
focal_class.modifiers: @Override @PutMapping("/{id:^[a-zA-Z0-9]+_[a-zA-Z0-9]+_[a-zA-Z0-9]+$}") @ApiOperation("更新表信息") @PreAuthorize("hasAnyAuthority('" + EDIT_PERM + "')") public
focal_class.parameters: (@ApiParam(value = "主键id", required = true) @PathVariable("id") String id, @RequestBody TableInfo model) {
focal_class.return: Result<TableInfo>
focal_class.signature: Result<TableInfo> update(@ApiParam(value = "主键id", required = true) @PathVariable("id") String id, @RequestBody TableInfo model) {
focal_class.class_method_signature: TableInfoController.findAll(TableInfo model)
focal_class.full_signature: @Override @GetMapping @ApiOperation("查询所有表信息") @PreAuthorize("hasAnyAuthority('" + QUERY_PERM + "')") public Result<List<TableInfo>> findAll(TableInfo model)
focal_class.identifier: findAll
focal_class.modifiers: @Override @GetMapping @ApiOperation("查询所有表信息") @PreAuthorize("hasAnyAuthority('" + QUERY_PERM + "')") public
focal_class.parameters: (TableInfo model)
focal_class.return: Result<List<TableInfo>>
focal_class.signature: Result<List<TableInfo>> findAll(TableInfo model)
focal_class.class_method_signature: TableInfoController.query(@ApiParam(value = "页码", required = true) @PathVariable("page") int page, @ApiParam(value = "每页数据条数", required = true) @PathVariable("size") int size, TableInfo model) {
focal_class.full_signature: @Override @GetMapping("/{page:[0-9]+}/{size:[0-9]+}") @ApiOperation("分页查询表信息列表") @PreAuthorize("hasAnyAuthority('" + QUERY_PERM + "')") public Result<QueryResult<TableInfo>> query(@ApiParam(value = "页码", required = true) @PathVariable("page") int page, @ApiParam(value = "每页数据条数", required = true) @PathVariable("size") int size, TableInfo model) {
focal_class.identifier: query
focal_class.modifiers: @Override @GetMapping("/{page:[0-9]+}/{size:[0-9]+}") @ApiOperation("分页查询表信息列表") @PreAuthorize("hasAnyAuthority('" + QUERY_PERM + "')") public
focal_class.parameters: (@ApiParam(value = "页码", required = true) @PathVariable("page") int page, @ApiParam(value = "每页数据条数", required = true) @PathVariable("size") int size, TableInfo model) {
focal_class.return: Result<QueryResult<TableInfo>>
focal_class.signature: Result<QueryResult<TableInfo>> query(@ApiParam(value = "页码", required = true) @PathVariable("page") int page, @ApiParam(value = "每页数据条数", required = true) @PathVariable("size") int size, TableInfo model) {
focal_class.class_method_signature: TableInfoController.findById(@ApiParam(value = "主键id", required = true) @PathVariable("id") String id) {
focal_class.full_signature: @Override @GetMapping("/{id:^[a-zA-Z0-9]+_[a-zA-Z0-9]+_[a-zA-Z0-9]+$}") @ApiOperation("根据ID查询表信息") @PreAuthorize("hasAnyAuthority('" + QUERY_PERM + "')") public Result<TableInfo> findById(@ApiParam(value = "主键id", required = true) @PathVariable("id") String id) {
focal_class.identifier: findById
focal_class.modifiers: @Override @GetMapping("/{id:^[a-zA-Z0-9]+_[a-zA-Z0-9]+_[a-zA-Z0-9]+$}") @ApiOperation("根据ID查询表信息") @PreAuthorize("hasAnyAuthority('" + QUERY_PERM + "')") public
focal_class.parameters: (@ApiParam(value = "主键id", required = true) @PathVariable("id") String id) {
focal_class.return: Result<TableInfo>
focal_class.signature: Result<TableInfo> findById(@ApiParam(value = "主键id", required = true) @PathVariable("id") String id) {
focal_class.class_method_signature: TableInfoController.batch(@RequestBody BatchModel<TableInfo> batch)
focal_class.full_signature: @Override @PostMapping("/batch") @ApiOperation("批量操作表信息") @PreAuthorize("hasAuthority('" + ADD_PERM +"') and hasAuthority('" + EDIT_PERM +"') and hasAuthority('" + DELETE_PERM +"')") public Result batch(@RequestBody BatchModel<TableInfo> batch)
focal_class.identifier: batch
focal_class.modifiers: @Override @PostMapping("/batch") @ApiOperation("批量操作表信息") @PreAuthorize("hasAuthority('" + ADD_PERM +"') and hasAuthority('" + EDIT_PERM +"') and hasAuthority('" + DELETE_PERM +"')") public
focal_class.parameters: (@RequestBody BatchModel<TableInfo> batch)
focal_class.return: Result
focal_class.signature: Result batch(@RequestBody BatchModel<TableInfo> batch)
focal_class.class_method_signature: TableInfoController.importData(MultipartFile file)
focal_class.full_signature: @Override @PostMapping("/import") @ApiOperation("从文件导入数据字典") @PreAuthorize("hasAnyAuthority('" + IMPORT_PERM + "')") public Result<List<TableInfo>> importData(MultipartFile file)
focal_class.identifier: importData
focal_class.modifiers: @Override @PostMapping("/import") @ApiOperation("从文件导入数据字典") @PreAuthorize("hasAnyAuthority('" + IMPORT_PERM + "')") public
focal_class.parameters: (MultipartFile file)
focal_class.return: Result<List<TableInfo>>
focal_class.signature: Result<List<TableInfo>> importData(MultipartFile file)
focal_class.class_method_signature: TableInfoController.exportData(@RequestBody(required = false) List<String> ids, HttpServletResponse response)
focal_class.full_signature: @Override @GetMapping("/export") @ApiOperation("导出数据字典到文件") @PreAuthorize("permitAll()") public void exportData(@RequestBody(required = false) List<String> ids, HttpServletResponse response)
focal_class.identifier: exportData
focal_class.modifiers: @Override @GetMapping("/export") @ApiOperation("导出数据字典到文件") @PreAuthorize("permitAll()") public
focal_class.parameters: (@RequestBody(required = false) List<String> ids, HttpServletResponse response)
focal_class.return: void
focal_class.signature: void exportData(@RequestBody(required = false) List<String> ids, HttpServletResponse response)
focal_class.superclass: extends BaseControllerImpl<TableInfo>
focal_method.body: @Override
      @DeleteMapping("/{id:^[a-zA-Z0-9]+_[a-zA-Z0-9]+_[a-zA-Z0-9]+$}")
      @ApiOperation("删除表信息")
      @PreAuthorize("hasAnyAuthority('" + DELETE_PERM + "')")
      public Result<Void> delete(@ApiParam(value = "主键id", required = true) @PathVariable("id") String id) {
          return super.delete(id);
      }
focal_method.class_method_signature: TableInfoController.delete(@ApiParam(value = "主键id", required = true) @PathVariable("id") String id) {
focal_method.full_signature: @Override @DeleteMapping("/{id:^[a-zA-Z0-9]+_[a-zA-Z0-9]+_[a-zA-Z0-9]+$}") @ApiOperation("删除表信息") @PreAuthorize("hasAnyAuthority('" + DELETE_PERM + "')") public Result<Void> delete(@ApiParam(value = "主键id", required = true) @PathVariable("id") String id) {
focal_method.identifier: delete
focal_method.invocations: delete
focal_method.modifiers: @Override @DeleteMapping("/{id:^[a-zA-Z0-9]+_[a-zA-Z0-9]+_[a-zA-Z0-9]+$}") @ApiOperation("删除表信息") @PreAuthorize("hasAnyAuthority('" + DELETE_PERM + "')") public
focal_method.parameters: (@ApiParam(value = "主键id", required = true) @PathVariable("id") String id) {
focal_method.return: Result<Void>
focal_method.signature: Result<Void> delete(@ApiParam(value = "主键id", required = true) @PathVariable("id") String id) {