package com.ltkj.web.controller.api;
|
|
import com.ltkj.common.core.domain.AjaxResult;
|
import com.ltkj.web.config.wordUtil.ITableService;
|
import io.swagger.annotations.Api;
|
import io.swagger.annotations.ApiOperation;
|
import lombok.extern.slf4j.Slf4j;
|
import org.springframework.beans.factory.annotation.Autowired;
|
import org.springframework.web.bind.annotation.GetMapping;
|
import org.springframework.web.bind.annotation.RequestMapping;
|
import org.springframework.web.bind.annotation.RestController;
|
|
@Slf4j
|
@RestController
|
@RequestMapping("/api")
|
//@Api(tags = "AAAAAAAAAAAAAAA导出数据库")
|
public class TableController {
|
|
@Autowired
|
ITableService tableService;
|
|
@GetMapping(value = "/tableToWord", produces = "application/json;charset=utf-8", name = "导出数据库表信息生成Word")
|
//@ApiOperation(value = "导出数据库表信息生成Word", httpMethod = "GET", response = AjaxResult.class, notes = "导出数据库表信息生成Word")
|
public AjaxResult tableToWord() {
|
try {
|
return AjaxResult.success("导出数据库表信息生成Word成功", tableService.getTableInfo());
|
} catch (Exception e) {
|
return AjaxResult.error(e.getMessage());
|
}
|
}
|
}
|