提交 | 用户 | 时间
|
8286c6
|
1 |
package cn.stylefeng.guns.gen.core.generator.base.model; |
懒 |
2 |
|
|
3 |
import cn.stylefeng.guns.gen.core.enums.GenDownloadEnum; |
|
4 |
import lombok.Data; |
|
5 |
|
|
6 |
import java.util.Map; |
|
7 |
|
|
8 |
/** |
|
9 |
* 代码生成所需要的上下文参数 |
|
10 |
* |
|
11 |
* @author fengshuonan |
|
12 |
* @date 2018-12-12-4:30 PM |
|
13 |
*/ |
|
14 |
@Data |
|
15 |
public class ContextParam { |
|
16 |
|
|
17 |
/** |
|
18 |
* jdbc连接的驱动名称 |
|
19 |
*/ |
|
20 |
private String jdbcDriver; |
|
21 |
|
|
22 |
/** |
|
23 |
* 数据库连接的url |
|
24 |
*/ |
|
25 |
private String jdbcUrl; |
|
26 |
|
|
27 |
/** |
|
28 |
* 数据库用户名 |
|
29 |
*/ |
|
30 |
private String jdbcUserName; |
|
31 |
|
|
32 |
/** |
|
33 |
* 数据库连接的密码 |
|
34 |
*/ |
|
35 |
private String jdbcPassword; |
|
36 |
|
|
37 |
/** |
|
38 |
* 代码生成路径 |
|
39 |
*/ |
|
40 |
private String outputPath = "temp"; |
|
41 |
|
|
42 |
/** |
|
43 |
* 项目的包路径 |
|
44 |
*/ |
|
45 |
private String proPackage; |
|
46 |
|
|
47 |
/** |
|
48 |
* 代码生成作者 |
|
49 |
*/ |
|
50 |
private String author = "fengshuonan"; |
|
51 |
|
|
52 |
/** |
|
53 |
* 模块名称 |
|
54 |
*/ |
|
55 |
private String modularName; |
|
56 |
|
|
57 |
/** |
|
58 |
* 是否开启swagger注解 |
|
59 |
*/ |
|
60 |
private Boolean swagger = false; |
|
61 |
|
|
62 |
/** |
|
63 |
* 是否生成远程接口 |
|
64 |
*/ |
|
65 |
private Boolean remote = true; |
|
66 |
|
|
67 |
/** |
|
68 |
* 修改和编辑页面是否弹框展示(key为tableName) |
|
69 |
*/ |
|
70 |
private Map<String, Boolean> jumpTypeMap; |
|
71 |
|
|
72 |
/** |
|
73 |
* 代码生成的路径 |
|
74 |
*/ |
|
75 |
private GenDownloadEnum genDownloadEnum; |
|
76 |
|
|
77 |
public String getJdbcDriver() { |
|
78 |
return jdbcDriver; |
|
79 |
} |
|
80 |
|
|
81 |
public void setJdbcDriver(String jdbcDriver) { |
|
82 |
this.jdbcDriver = jdbcDriver; |
|
83 |
} |
|
84 |
|
|
85 |
public String getJdbcUrl() { |
|
86 |
return jdbcUrl; |
|
87 |
} |
|
88 |
|
|
89 |
public void setJdbcUrl(String jdbcUrl) { |
|
90 |
this.jdbcUrl = jdbcUrl; |
|
91 |
} |
|
92 |
|
|
93 |
public String getJdbcUserName() { |
|
94 |
return jdbcUserName; |
|
95 |
} |
|
96 |
|
|
97 |
public void setJdbcUserName(String jdbcUserName) { |
|
98 |
this.jdbcUserName = jdbcUserName; |
|
99 |
} |
|
100 |
|
|
101 |
public String getJdbcPassword() { |
|
102 |
return jdbcPassword; |
|
103 |
} |
|
104 |
|
|
105 |
public void setJdbcPassword(String jdbcPassword) { |
|
106 |
this.jdbcPassword = jdbcPassword; |
|
107 |
} |
|
108 |
|
|
109 |
public String getOutputPath() { |
|
110 |
return outputPath; |
|
111 |
} |
|
112 |
|
|
113 |
public void setOutputPath(String outputPath) { |
|
114 |
this.outputPath = outputPath; |
|
115 |
} |
|
116 |
|
|
117 |
public String getProPackage() { |
|
118 |
return proPackage; |
|
119 |
} |
|
120 |
|
|
121 |
public void setProPackage(String proPackage) { |
|
122 |
this.proPackage = proPackage; |
|
123 |
} |
|
124 |
|
|
125 |
public String getAuthor() { |
|
126 |
return author; |
|
127 |
} |
|
128 |
|
|
129 |
public void setAuthor(String author) { |
|
130 |
this.author = author; |
|
131 |
} |
|
132 |
|
|
133 |
public String getModularName() { |
|
134 |
return modularName; |
|
135 |
} |
|
136 |
|
|
137 |
public void setModularName(String modularName) { |
|
138 |
this.modularName = modularName; |
|
139 |
} |
|
140 |
|
|
141 |
public Boolean getSwagger() { |
|
142 |
return swagger; |
|
143 |
} |
|
144 |
|
|
145 |
public void setSwagger(Boolean swagger) { |
|
146 |
this.swagger = swagger; |
|
147 |
} |
|
148 |
|
|
149 |
public Boolean getRemote() { |
|
150 |
return remote; |
|
151 |
} |
|
152 |
|
|
153 |
public void setRemote(Boolean remote) { |
|
154 |
this.remote = remote; |
|
155 |
} |
|
156 |
|
|
157 |
public Map<String, Boolean> getJumpTypeMap() { |
|
158 |
return jumpTypeMap; |
|
159 |
} |
|
160 |
|
|
161 |
public void setJumpTypeMap(Map<String, Boolean> jumpTypeMap) { |
|
162 |
this.jumpTypeMap = jumpTypeMap; |
|
163 |
} |
|
164 |
|
|
165 |
public GenDownloadEnum getGenDownloadEnum() { |
|
166 |
return genDownloadEnum; |
|
167 |
} |
|
168 |
|
|
169 |
public void setGenDownloadEnum(GenDownloadEnum genDownloadEnum) { |
|
170 |
this.genDownloadEnum = genDownloadEnum; |
|
171 |
} |
|
172 |
} |