懒羊羊
2023-08-30 71e81ed1d12e4d69f53c8ad9e066650ad4186293
提交 | 用户 | 时间
71e81e 1 package ${package.Service};
2
3 import cn.stylefeng.guns.base.pojo.page.LayuiPageInfo;
4 import ${package.Entity}.${entity};
5 import ${package.EntitySpecParams}.${entity}Param;
6 import ${package.EntitySpecResult}.${entity}Result;
7 import ${superServiceClassPackage};
8
9 import java.util.List;
10
11 /**
12  * <p>
13  * $!{table.comment} 服务类
14  * </p>
15  *
16  * @author ${author}
17  * @since ${date}
18  */
19 #if(${kotlin})
20 interface ${table.serviceName} : ${superServiceClass}<${entity}>
21 #else
22 public interface ${table.serviceName} extends ${superServiceClass}<${entity}> {
23
24     /**
25      * 新增
26      *
27      * @author ${author}
28      * @Date ${date}
29      */
30     void add(${entity}Param param);
31
32     /**
33      * 删除
34      *
35      * @author ${author}
36      * @Date ${date}
37      */
38     void delete(${entity}Param param);
39
40     /**
41      * 更新
42      *
43      * @author ${author}
44      * @Date ${date}
45      */
46     void update(${entity}Param param);
47
48     /**
49      * 查询单条数据,Specification模式
50      *
51      * @author ${author}
52      * @Date ${date}
53      */
54     ${entity}Result findBySpec(${entity}Param param);
55
56     /**
57      * 查询列表,Specification模式
58      *
59      * @author ${author}
60      * @Date ${date}
61      */
62     List<${entity}Result> findListBySpec(${entity}Param param);
63
64     /**
65      * 查询分页数据,Specification模式
66      *
67      * @author ${author}
68      * @Date ${date}
69      */
70      LayuiPageInfo findPageBySpec(${entity}Param param);
71
72 }
73 #end