pub.codex.core.controller.CodexcController Maven / Gradle / Ivy
package pub.codex.core.controller;
import com.alibaba.fastjson.JSON;
import org.apache.commons.io.IOUtils;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.util.StringUtils;
import org.springframework.web.bind.annotation.*;
import pub.codex.common.column.ControllerColumn;
import pub.codex.common.column.InfoColumn;
import pub.codex.common.db.jdbc.TableDao;
import pub.codex.common.models.CodexResult;
import pub.codex.common.utils.BaseUtil;
import pub.codex.common.utils.TranslateUtil;
import pub.codex.core.provider.ConfigProvider;
import pub.codex.core.template.stream.template.TableCodexTemplateStream;
import javax.servlet.http.HttpServletRequest;
import javax.servlet.http.HttpServletResponse;
import java.io.ByteArrayOutputStream;
import java.io.IOException;
import java.util.ArrayList;
import java.util.List;
import java.util.Map;
import java.util.zip.ZipOutputStream;
@RestController
public class CodexcController {
@Autowired
private ConfigProvider configProvider;
@Autowired
private TableDao tableDao;
@Autowired
private TableCodexTemplateStream tableCodexTemplateStream;
/**
* codex基础信息查询
*
* @return
*/
@GetMapping("/codex/data")
public CodexResult codex() {
List