You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
41 lines
940 B
41 lines
940 B
|
2 months ago
|
package com.youlai.boot.codegen.service;
|
||
|
|
|
||
|
|
import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
|
||
|
|
import com.youlai.boot.codegen.model.query.TableQuery;
|
||
|
|
import com.youlai.boot.codegen.model.vo.CodegenPreviewVO;
|
||
|
|
import com.youlai.boot.codegen.model.vo.TablePageVO;
|
||
|
|
|
||
|
|
import java.util.List;
|
||
|
|
|
||
|
|
/**
|
||
|
|
* 代码生成配置接口
|
||
|
|
*
|
||
|
|
* @author Ray
|
||
|
|
* @since 2.10.0
|
||
|
|
*/
|
||
|
|
public interface CodegenService {
|
||
|
|
|
||
|
|
/**
|
||
|
|
* 获取数据表分页列表
|
||
|
|
*
|
||
|
|
* @param queryParams 查询参数
|
||
|
|
* @return
|
||
|
|
*/
|
||
|
|
Page<TablePageVO> getTablePage(TableQuery queryParams);
|
||
|
|
|
||
|
|
/**
|
||
|
|
* 获取预览生成代码
|
||
|
|
*
|
||
|
|
* @param tableName 表名
|
||
|
|
* @return
|
||
|
|
*/
|
||
|
|
List<CodegenPreviewVO> getCodegenPreviewData(String tableName, String pageType, String type);
|
||
|
|
|
||
|
|
/**
|
||
|
|
* 下载代码
|
||
|
|
* @param tableNames 表名
|
||
|
|
* @return
|
||
|
|
*/
|
||
|
|
byte[] downloadCode(String[] tableNames, String pageType, String type);
|
||
|
|
}
|