package ${package.Service};

<% if(isNotEmpty(controllerMethods.page)){  %>
import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
<% } %>
<% if(isNotEmpty(controllerMethods.create) || isNotEmpty(controllerMethods.update)){ %>
import ${entityPath}.dto.${table.entityName}Dto;
<% } %>
<% if(isNotEmpty(controllerMethods.page) || isNotEmpty(controllerMethods.list)){  %>
import ${entityPath}.dto.${table.entityName}SelectDto;
<% } %>
<% if(isNotEmpty(controllerMethods.page) || isNotEmpty(controllerMethods.list)){  %>
import ${entityPath}.vo.${table.entityName}Vo;
<% } %>

<% if(isNotEmpty(controllerMethods.list) || isNotEmpty(controllerMethods.delete)){  %>
import java.util.List;
<% } %>

/**
 * <p>
 * ${table.comment!} 服务类
 * </p>
 *
 * @author ${author}
 * @since ${date}
 */
public interface ${table.serviceName} {

    <% if(isNotEmpty(controllerMethods.list)){  %>
    /**
     * ${table.comment!}列表
     */
    List<${table.entityName}Vo> getList(${table.entityName}SelectDto dto);

    <% } %>
    <% if(isNotEmpty(controllerMethods.page)){  %>
    /**
     * ${table.comment!}分页
     */
    Page<${table.entityName}Vo> getPage(${table.entityName}SelectDto dto);

    <% } %>
    <% if(isNotEmpty(controllerMethods.detail)){ %>
    /**
     * ${table.comment!}明细
     */
    ${table.entityName}Vo getDetail(Long id);

    <% } %>
    <% if(isNotEmpty(controllerMethods.create)){ %>
    /**
     * ${table.comment!}新增
     */
    void add(${table.entityName}Dto dto);

    <% } %>
    <% if(isNotEmpty(controllerMethods.update)){ %>
    /**
     * ${table.comment!}编辑
     */
    void edit(${table.entityName}Dto dto);

    <% } %>
    <% if(isNotEmpty(controllerMethods.delete)){ %>
    /**
     * ${table.comment!}删除
     */
    void delete(List<Long> idList);

    <% } %>
}
