Blame view

src/main/resources/codegen/java/service/service.vm 1.95 KB
aaf762e7   YunaiV   1. 调整 codegen 的模板
1
  package ${basePackage}.modules.${table.moduleName}.service.${table.businessName};
2210ed5c   YunaiV   增加 service 模板
2
3
4
  
  import java.util.*;
  import javax.validation.*;
aaf762e7   YunaiV   1. 调整 codegen 的模板
5
6
  import ${basePackage}.modules.${table.moduleName}.controller.${table.businessName}.vo.*;
  import ${basePackage}.modules.${table.moduleName}.dal.dataobject.${table.businessName}.${table.className}DO;
2210ed5c   YunaiV   增加 service 模板
7
8
9
  import ${PageResultClassName};
  
  /**
eb3d0386   YunaiV   代码生成器,增加 excel 导出功能
10
11
12
13
   * ${table.classComment} Service 接口
   *
   * @author ${table.author}
   */
2210ed5c   YunaiV   增加 service 模板
14
15
16
17
18
19
  public interface ${table.className}Service {
  
      /**
       * 创建${table.classComment}
       *
       * @param createReqVO 创建信息
5442f652   YunaiV   整理 vm 模板
20
       * @return 编号
2210ed5c   YunaiV   增加 service 模板
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
       */
      ${primaryColumn.javaType} create${simpleClassName}(@Valid ${table.className}CreateReqVO createReqVO);
  
      /**
       * 更新${table.classComment}
       *
       * @param updateReqVO 更新信息
       */
      void update${simpleClassName}(@Valid ${table.className}UpdateReqVO updateReqVO);
  
      /**
       * 删除${table.classComment}
       *
       * @param id 编号
       */
      void delete${simpleClassName}(${primaryColumn.javaType} id);
  
      /**
       * 获得${table.classComment}
       *
       * @param id 编号
5442f652   YunaiV   整理 vm 模板
42
       * @return ${table.classComment}
2210ed5c   YunaiV   增加 service 模板
43
44
45
46
47
48
49
       */
      ${table.className}DO get${simpleClassName}(${primaryColumn.javaType} id);
  
      /**
       * 获得${table.classComment}列表
       *
       * @param ids 编号
5442f652   YunaiV   整理 vm 模板
50
       * @return ${table.classComment}列表
2210ed5c   YunaiV   增加 service 模板
51
52
53
54
55
56
57
       */
      List<${table.className}DO> get${simpleClassName}List(Collection<${primaryColumn.javaType}> ids);
  
      /**
       * 获得${table.classComment}分页
       *
       * @param pageReqVO 分页查询
5442f652   YunaiV   整理 vm 模板
58
       * @return ${table.classComment}分页
2210ed5c   YunaiV   增加 service 模板
59
       */
8cfb8265   YunaiV   代码预览的功能,完成
60
      PageResult<${table.className}DO> get${simpleClassName}Page(${table.className}PageReqVO pageReqVO);
2210ed5c   YunaiV   增加 service 模板
61
  
eb3d0386   YunaiV   代码生成器,增加 excel 导出功能
62
63
64
65
      /**
       * 获得${table.classComment}列表, 用于 Excel 导出
       *
       * @param exportReqVO 查询条件
7760e163   YunaiV   初始化短信日志的 CRUD 代码
66
       * @return ${table.classComment}列表
eb3d0386   YunaiV   代码生成器,增加 excel 导出功能
67
68
69
       */
      List<${table.className}DO> get${simpleClassName}List(${table.className}ExportReqVO exportReqVO);
  
2210ed5c   YunaiV   增加 service 模板
70
  }