2022-02-02 13:57:25 +08:00
|
|
|
package ${basePackage}.module.${table.moduleName}.service.${table.businessName};
|
2021-02-06 21:18:43 +08:00
|
|
|
|
|
|
|
import java.util.*;
|
|
|
|
import javax.validation.*;
|
2022-02-02 22:10:24 +08:00
|
|
|
import ${basePackage}.module.${table.moduleName}.controller.${sceneEnum.basePackage}.${table.businessName}.vo.*;
|
2022-02-02 13:57:25 +08:00
|
|
|
import ${basePackage}.module.${table.moduleName}.dal.dataobject.${table.businessName}.${table.className}DO;
|
2021-02-06 21:18:43 +08:00
|
|
|
import ${PageResultClassName};
|
|
|
|
|
|
|
|
/**
|
2021-02-11 23:02:53 +08:00
|
|
|
* ${table.classComment} Service 接口
|
|
|
|
*
|
|
|
|
* @author ${table.author}
|
|
|
|
*/
|
2021-02-06 21:18:43 +08:00
|
|
|
public interface ${table.className}Service {
|
|
|
|
|
|
|
|
/**
|
|
|
|
* 创建${table.classComment}
|
|
|
|
*
|
|
|
|
* @param createReqVO 创建信息
|
2021-02-06 23:52:26 +08:00
|
|
|
* @return 编号
|
2021-02-06 21:18:43 +08:00
|
|
|
*/
|
2022-02-02 22:10:24 +08:00
|
|
|
${primaryColumn.javaType} create${simpleClassName}(@Valid ${sceneEnum.prefixClass}${table.className}CreateReqVO createReqVO);
|
2021-02-06 21:18:43 +08:00
|
|
|
|
|
|
|
/**
|
|
|
|
* 更新${table.classComment}
|
|
|
|
*
|
|
|
|
* @param updateReqVO 更新信息
|
|
|
|
*/
|
2022-02-02 22:10:24 +08:00
|
|
|
void update${simpleClassName}(@Valid ${sceneEnum.prefixClass}${table.className}UpdateReqVO updateReqVO);
|
2021-02-06 21:18:43 +08:00
|
|
|
|
|
|
|
/**
|
|
|
|
* 删除${table.classComment}
|
|
|
|
*
|
|
|
|
* @param id 编号
|
|
|
|
*/
|
|
|
|
void delete${simpleClassName}(${primaryColumn.javaType} id);
|
|
|
|
|
|
|
|
/**
|
|
|
|
* 获得${table.classComment}
|
|
|
|
*
|
|
|
|
* @param id 编号
|
2021-02-06 23:52:26 +08:00
|
|
|
* @return ${table.classComment}
|
2021-02-06 21:18:43 +08:00
|
|
|
*/
|
|
|
|
${table.className}DO get${simpleClassName}(${primaryColumn.javaType} id);
|
|
|
|
|
|
|
|
/**
|
|
|
|
* 获得${table.classComment}列表
|
|
|
|
*
|
|
|
|
* @param ids 编号
|
2021-02-06 23:52:26 +08:00
|
|
|
* @return ${table.classComment}列表
|
2021-02-06 21:18:43 +08:00
|
|
|
*/
|
|
|
|
List<${table.className}DO> get${simpleClassName}List(Collection<${primaryColumn.javaType}> ids);
|
|
|
|
|
|
|
|
/**
|
|
|
|
* 获得${table.classComment}分页
|
|
|
|
*
|
|
|
|
* @param pageReqVO 分页查询
|
2021-02-06 23:52:26 +08:00
|
|
|
* @return ${table.classComment}分页
|
2021-02-06 21:18:43 +08:00
|
|
|
*/
|
2022-02-02 22:10:24 +08:00
|
|
|
PageResult<${table.className}DO> get${simpleClassName}Page(${sceneEnum.prefixClass}${table.className}PageReqVO pageReqVO);
|
2021-02-06 21:18:43 +08:00
|
|
|
|
2021-02-11 23:02:53 +08:00
|
|
|
/**
|
|
|
|
* 获得${table.classComment}列表, 用于 Excel 导出
|
|
|
|
*
|
|
|
|
* @param exportReqVO 查询条件
|
2021-04-11 17:22:56 +08:00
|
|
|
* @return ${table.classComment}列表
|
2021-02-11 23:02:53 +08:00
|
|
|
*/
|
2022-02-02 22:10:24 +08:00
|
|
|
List<${table.className}DO> get${simpleClassName}List(${sceneEnum.prefixClass}${table.className}ExportReqVO exportReqVO);
|
2021-02-11 23:02:53 +08:00
|
|
|
|
2023-11-07 20:43:53 +08:00
|
|
|
}
|