package cn.stylefeng.guns.gen.core.generator.base.model; import cn.stylefeng.guns.gen.core.enums.GenDownloadEnum; import lombok.Data; import java.util.Map; /** * 代码生成所需要的上下文参数 * * @author fengshuonan * @date 2018-12-12-4:30 PM */ @Data public class ContextParam { /** * jdbc连接的驱动名称 */ private String jdbcDriver; /** * 数据库连接的url */ private String jdbcUrl; /** * 数据库用户名 */ private String jdbcUserName; /** * 数据库连接的密码 */ private String jdbcPassword; /** * 代码生成路径 */ private String outputPath = "temp"; /** * 项目的包路径 */ private String proPackage; /** * 代码生成作者 */ private String author = "fengshuonan"; /** * 模块名称 */ private String modularName; /** * 是否开启swagger注解 */ private Boolean swagger = false; /** * 是否生成远程接口 */ private Boolean remote = true; /** * 修改和编辑页面是否弹框展示(key为tableName) */ private Map jumpTypeMap; /** * 代码生成的路径 */ private GenDownloadEnum genDownloadEnum; public String getJdbcDriver() { return jdbcDriver; } public void setJdbcDriver(String jdbcDriver) { this.jdbcDriver = jdbcDriver; } public String getJdbcUrl() { return jdbcUrl; } public void setJdbcUrl(String jdbcUrl) { this.jdbcUrl = jdbcUrl; } public String getJdbcUserName() { return jdbcUserName; } public void setJdbcUserName(String jdbcUserName) { this.jdbcUserName = jdbcUserName; } public String getJdbcPassword() { return jdbcPassword; } public void setJdbcPassword(String jdbcPassword) { this.jdbcPassword = jdbcPassword; } public String getOutputPath() { return outputPath; } public void setOutputPath(String outputPath) { this.outputPath = outputPath; } public String getProPackage() { return proPackage; } public void setProPackage(String proPackage) { this.proPackage = proPackage; } public String getAuthor() { return author; } public void setAuthor(String author) { this.author = author; } public String getModularName() { return modularName; } public void setModularName(String modularName) { this.modularName = modularName; } public Boolean getSwagger() { return swagger; } public void setSwagger(Boolean swagger) { this.swagger = swagger; } public Boolean getRemote() { return remote; } public void setRemote(Boolean remote) { this.remote = remote; } public Map getJumpTypeMap() { return jumpTypeMap; } public void setJumpTypeMap(Map jumpTypeMap) { this.jumpTypeMap = jumpTypeMap; } public GenDownloadEnum getGenDownloadEnum() { return genDownloadEnum; } public void setGenDownloadEnum(GenDownloadEnum genDownloadEnum) { this.genDownloadEnum = genDownloadEnum; } }