All Downloads are FREE. Search and download functionalities are using the official Maven repository.

io.github.wslxm.springbootplus2.manage.gc.service.GenerationService Maven / Gradle / Ivy

There is a newer version: 2.3.0
Show newest version
package io.github.wslxm.springbootplus2.manage.gc.service;

import io.github.wslxm.springbootplus2.manage.gc.model.dto.GenerateDto;

import java.util.Map;


/**
 * 代码生成调用层service
 * @author wangsong
 * @mail [email protected]
 * @date 2022/8/21 0021 9:11
 * @version 1.0.0
 */
public interface GenerationService {


    /**
     * 生成预览(生成 服务端+layui+vue代码预览)
     *
     * @param generateDto generateDto
     * @return java.util.Map
     * @version 1.0.0
     */
    Map preview(GenerateDto generateDto);


    /**
     * 生成代码(服务端代码,直接生成到对应目录,注意覆盖问题)
     *
     * @param generateDto generateDto
     * @return java.util.Map
     * @version 1.0.0
     */
    Map generateCode(GenerateDto generateDto);


    /**
     * 生成 vue 代码(直接下载)
     *
     * @param generateDto generateDto
     * @return void
     * @version 1.0.0
     */
    void generateCodeVue(GenerateDto generateDto);


    /**
     * 生成 java + vue 代码(直接下载)
     *
     * @param generateDto
     */
    void generateCodeJavaAndVue(GenerateDto generateDto);

    /**
     * 获取生成路径(服务端+前端)
     *
     * @param dataSourceId 数据源配置id
     * @param tableName tableName
     * @return java.util.Map
     * @version 1.0.0
     */
    Map getPath(String tableName, String dataSourceId);

}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy