templates.crud.service.ftl Maven / Gradle / Ivy
package ${cfg.packageName}.service.${cfg.folderName}.service;
import com.baomidou.mybatisplus.core.metadata.IPage;
import ${cfg.packageName}.common.page.PageParam;
import ${cfg.packageName}.common.entity.${cfg.folderName}.${entity};
import ${cfg.packageName}.common.dto.${cfg.folderName}.${entity?replace('Entity','Dto')};
import ${cfg.packageName}.common.vo.${cfg.folderName}.${entity?replace('Entity','Vo')};
import ${superServiceClassPackage};
/**
*
* ${table.comment!} 服务类
*
*
* @author ${author}
* @since ${date}
*/
<#if kotlin>
interface ${table.serviceName} : ${superServiceClass}<${entity}>
<#else>
public interface ${table.serviceName} extends ${superServiceClass}<${entity}> {
<#if !cfg.isView>
${entity?replace('Entity','Vo')} create(${entity?replace('Entity','Dto')} ${entity?replace('Entity','Dto') ? uncap_first});
${entity?replace('Entity','Vo')} editById(${entity?replace('Entity','Dto')} ${entity?replace('Entity','Dto') ? uncap_first});
${entity?replace('Entity','Vo')} findById(Long id);
#if>
IPage<${entity?replace('Entity','Vo')}> queryByPage(PageParam pageParam, ${entity?replace('Entity','Dto')} dto);
}
#if>