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
package ${package.Service}
import ${package.Entity}.${entity};
import ${superServiceClassPackage};
import ${cfg.paging};
import ${cfg.pageParamPath};
import ${cfg.queryVoPath};
/**
* <p>
* $!{table.comment} 服务接口
* </p>
*
* @author ${author}
* @since ${date}
*/
#if(${kotlin})
interface ${table.serviceName} : ${superServiceClass}<${entity}>
#else
public interface ${table.serviceName} extends ${superServiceClass}<${entity}> {
#if(${cfg.generatorStrategy} != 'SIMPLE')
#if(${cfg.generatorStrategy} == 'ALL')
/**
* 保存
*
* @param ${cfg.entityObjectName}
* @return
* @throws Exception
*/
boolean save${entity}(${entity} ${cfg.entityObjectName}) throws Exception;
/**
* 修改
*
* @param ${cfg.entityObjectName}
* @return
* @throws Exception
*/
boolean update${entity}(${entity} ${cfg.entityObjectName}) throws Exception;
/**
* 删除
*
* @param id
* @return
* @throws Exception
*/
boolean delete${entity}(Long id) throws Exception;
#end
/**
* 根据ID获取查询对象
*
* @param id
* @return
* @throws Exception
*/
${entity}QueryVo get${entity}ById(Serializable id) throws Exception;
/**
* 获取分页对象
*
* @param ${cfg.entityObjectName}PageParam
* @return
* @throws Exception
*/
Paging<${entity}QueryVo> get${entity}PageList(${entity}PageParam ${cfg.entityObjectName}PageParam) throws Exception;
#end
}
#end