All Downloads are FREE. Search and download functionalities are using the official Maven repository.

templates.service.ftl Maven / Gradle / Ivy

package ${packageName}.service.${moduleName};

import com.lframework.starter.mybatis.resp.PageResult;
import com.lframework.starter.web.service.BaseService;
import ${packageName}.dto.${moduleName}.${bizName}.${className}Dto;
<#if create??>
import ${packageName}.vo.${moduleName}.${bizName}.Create${className}Vo;

<#if queryParams??>
import ${packageName}.vo.${moduleName}.${bizName}.Query${className}Vo;

<#if update??>
import ${packageName}.vo.${moduleName}.${bizName}.Update${className}Vo;

<#if importPackages??>
    <#list importPackages as p>
import ${p};
    

import java.util.Collection;
import java.util.List;

/**
 * ${classDescription} Service
<#if author??>
 * @author ${author}

 */
public interface I${className}Service extends BaseService {

    <#if queryParams??>
    /**
     * 查询列表
     * @return
     */
    PageResult${r"<"}${className}Dto${r">"} query(Integer pageIndex, Integer pageSize, Query${className}Vo vo);
    

    <#if queryParams??>
    /**
     * 查询列表
     * @param vo
     * @return
     */
    ${r"List<"}${className}Dto${r">"} query(Query${className}Vo vo);
    

    /**
     * 根据ID查询
     * @param ${keys[0].name}
     * @return
     */
    ${className}Dto getById(<#list keys as key>${key.type} ${key.name}<#if key_index != keys?size - 1>, );

    <#if create??>
    /**
     * 创建
     * @param vo
     * @return
     */
    ${create.keys[0].type} create(Create${className}Vo vo);
    

    <#if update??>
    /**
     * 修改
     * @param vo
     */
    void update(Update${className}Vo vo);
    

    <#if hasDelete>
    /**
     * 根据ID删除
     * @param ${keys[0].name}
     * @return
     */
    void deleteById(<#list keys as key>${key.type} ${key.name}<#if key_index != keys?size - 1>, );
    
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy