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
package ${package.Service};
import ${package.Entity}.${entity};
import ${superServiceClassPackage};
/**
* <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
#end
}
#end