commit | author | age
|
9bcb19
|
1 |
/* |
I |
2 |
Copyright [2020] [https://www.xiaonuo.vip] |
|
3 |
|
|
4 |
Licensed under the Apache License, Version 2.0 (the "License"); |
|
5 |
you may not use this file except in compliance with the License. |
|
6 |
You may obtain a copy of the License at |
|
7 |
|
|
8 |
http://www.apache.org/licenses/LICENSE-2.0 |
|
9 |
|
|
10 |
Unless required by applicable law or agreed to in writing, software |
|
11 |
distributed under the License is distributed on an "AS IS" BASIS, |
|
12 |
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. |
|
13 |
See the License for the specific language governing permissions and |
|
14 |
limitations under the License. |
|
15 |
|
|
16 |
Snowy采用APACHE LICENSE 2.0开源协议,您在使用过程中,需要注意以下几点: |
|
17 |
|
|
18 |
1.请不要删除和修改根目录下的LICENSE文件。 |
|
19 |
2.请不要删除和修改Snowy源码头部的版权声明。 |
|
20 |
3.请保留源码和相关描述文件的项目出处,作者声明等。 |
|
21 |
4.分发源码时候,请注明软件出处 https://gitee.com/xiaonuobase/snowy |
|
22 |
5.在修改包名,模块名称,项目代码等时,请注明软件出处 https://gitee.com/xiaonuobase/snowy |
|
23 |
6.若您的项目无法满足以上几点,可申请商业授权,获取Snowy商业授权许可,请在官网购买授权,地址为 https://www.xiaonuo.vip |
|
24 |
*/ |
|
25 |
package vip.xiaonuo.generate.modular.param; |
|
26 |
|
|
27 |
import lombok.Data; |
|
28 |
import vip.xiaonuo.core.pojo.base.param.BaseParam; |
|
29 |
|
|
30 |
import javax.validation.constraints.NotEmpty; |
|
31 |
import java.util.List; |
|
32 |
|
|
33 |
/** |
|
34 |
* 代码生成详细配置参数类 |
|
35 |
* |
|
36 |
* @author yubaoshan |
|
37 |
* @date 2021-02-06 20:19:49 |
|
38 |
*/ |
|
39 |
@Data |
|
40 |
public class SysCodeGenerateConfigParam extends BaseParam { |
|
41 |
|
|
42 |
/** |
|
43 |
* 主键 |
|
44 |
*/ |
|
45 |
private Long id; |
|
46 |
|
|
47 |
/** |
|
48 |
* 代码生成主表ID |
|
49 |
*/ |
|
50 |
private Long codeGenId; |
|
51 |
|
|
52 |
/** |
|
53 |
* 数据库字段名 |
|
54 |
*/ |
|
55 |
private String columnName; |
|
56 |
|
|
57 |
/** |
|
58 |
* java类字段名 |
|
59 |
*/ |
|
60 |
private String javaName; |
|
61 |
|
|
62 |
/** |
|
63 |
* 字段描述 |
|
64 |
*/ |
|
65 |
private String columnComment; |
|
66 |
|
|
67 |
/** |
|
68 |
* java类型 |
|
69 |
*/ |
|
70 |
private String javaType; |
|
71 |
|
|
72 |
/** |
|
73 |
* 作用类型(字典) |
|
74 |
*/ |
|
75 |
private String effectType; |
|
76 |
|
|
77 |
/** |
|
78 |
* 字典code |
|
79 |
*/ |
|
80 |
private String dictTypeCode; |
|
81 |
|
|
82 |
/** |
|
83 |
* 列表是否缩进(字典) |
|
84 |
*/ |
|
85 |
private String whetherRetract; |
|
86 |
|
|
87 |
/** |
|
88 |
* 是否必填(字典) |
|
89 |
*/ |
|
90 |
private String whetherRequired; |
|
91 |
|
|
92 |
/** |
|
93 |
* 是否是查询条件 |
|
94 |
*/ |
|
95 |
private String queryWhether; |
|
96 |
|
|
97 |
/** |
|
98 |
* 查询方式 |
|
99 |
*/ |
|
100 |
private String queryType; |
|
101 |
|
|
102 |
/** |
|
103 |
* 列表展示 |
|
104 |
*/ |
|
105 |
private String whetherTable; |
|
106 |
|
|
107 |
/** |
|
108 |
* 增改 |
|
109 |
*/ |
|
110 |
private String whetherAddUpdate; |
|
111 |
|
|
112 |
/** |
|
113 |
* 主外键 |
|
114 |
*/ |
|
115 |
public String columnKey; |
|
116 |
|
|
117 |
/** |
|
118 |
* 主外键名称 |
|
119 |
*/ |
|
120 |
public String columnKeyName; |
|
121 |
|
|
122 |
/** |
|
123 |
* 数据库中类型(物理类型) |
|
124 |
*/ |
|
125 |
public String dataType; |
|
126 |
|
|
127 |
/** |
|
128 |
* 是否是通用字段 |
|
129 |
*/ |
|
130 |
public String whetherCommon; |
|
131 |
|
|
132 |
/** |
|
133 |
* 代码生成配置列表 |
|
134 |
*/ |
|
135 |
@NotEmpty(message = "代码生成配置列表,请检查sysCodeGenerateConfigParamList参数", groups = {edit.class}) |
|
136 |
private List<SysCodeGenerateConfigParam> sysCodeGenerateConfigParamList; |
|
137 |
|
|
138 |
} |