1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
package cn.chnmuseum.party.common.mybatis;
import java.io.File;
/**
* 生成器常量
**/
public interface GeneratorConstant {
/**
* 用户目录
*/
String USER_DIR = "user.dir";
/**
* java目录 src/main/java
*/
String JAVA_DIR = File.separator + "src" + File.separator + "main" + File.separator + "java";
/**
* resources目录 src/main/resources
*/
String RESOURCES_DIR = File.separator + "src" + File.separator + "main" + File.separator + "resources";
/**
* mapper目录 src/main/resources/mapper
*/
String MAPPER_DIR = RESOURCES_DIR + File.separator + "mapper";
/**
* 参数
*/
String PARAM = "param";
/**
* 分页参数
*/
String PAGE_PARAM = "PageParam";
/**
* VO
*/
String VO = "vo";
/**
* 查询VO
*/
String QUERY_VO = "QueryVo";
/**
* Service
*/
String SERVICE = "Service";
/**
* Mapper
*/
String MAPPER = "Mapper";
/**
* Mapper XML template路径
*/
String MAPPER_XML_TEMPLATE_PATH = File.separator + "templates" + File.separator + "mapper.xml.vm";
/**
* 分页参数 template路径
*/
String PAGE_PARAM_TEMPLATE_PATH = File.separator + "templates" + File.separator + "pageParam.java.vm";
/**
* 查询VO template路径
*/
String QUERY_VO_TEMPLATE_PATH = File.separator + "templates" + File.separator + "queryVo.java.vm";
/**
* 乐观锁属性名称
*/
String VERSION = "VERSION";
/**
* 逻辑删除属性名称
*/
String DELETED = "ENABLED_FLAG";
/**
* Service名称
*/
String SERVICE_NAME = "%sService";
/**
* 自定义继承的Entity类全称,带包名
*/
String SUPER_ENTITY_CLASS = "io.geekidea.springbootplus.framework.common.entity.BaseEntity";
/**
* 自定义继承的Controller类全称,带包名
*/
String SUPER_CONTROLLER_CLASS = "io.geekidea.springbootplus.framework.common.controller.BaseController";
/**
* 自定义继承的Service类全称,带包名
*/
String SUPER_SERVICE_CLASS = "io.geekidea.springbootplus.framework.common.service.BaseService";
/**
* 自定义继承的ServiceImpl类全称,带包名
*/
String SUPER_SERVICE_IMPL_CLASS = "io.geekidea.springbootplus.framework.common.service.impl.BaseServiceImpl";
/**
* 分页参数父类全称,带包名
*/
String SUPER_PAGE_PARAM_CLASS = "io.geekidea.springbootplus.framework.core.pagination.BasePageParam";
/**
* 分页排序参数父类全称,带包名
*/
String SUPER_PAGE_ORDER_PARAM_CLASS = "io.geekidea.springbootplus.framework.core.pagination.BasePageOrderParam";
/**
* 公共id参数类全称,带包名
*/
String ID_PARAM_CLASS = "io.geekidea.springbootplus.framework.common.param.IdParam";
/**
* 分页对象类全称,带包名
*/
String PAGING_CLASS = "io.geekidea.springbootplus.framework.core.pagination.Paging";
/**
* 分页信息类全称,带包名
*/
String PAGE_INFO_CLASS = "io.geekidea.springbootplus.framework.core.pagination.PageInfo";
/**
* 公共结果类全称,带包名
*/
String API_RESULT_CLASS = "io.geekidea.springbootplus.framework.common.api.ApiResult";
/**
* 分组验证Add.class类路径
*/
String VALIDATOR_ADD_PACKAGE = "io.geekidea.springbootplus.framework.core.validator.groups.Add";
/**
* 分组验证Update.class类路径
*/
String VALIDATOR_UPDATE_PACKAGE = "io.geekidea.springbootplus.framework.core.validator.groups.Update";
}