package ${package}.service;

import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import com.baomidou.mybatisplus.core.metadata.IPage;
import com.baomidou.mybatisplus.extension.service.IService;
import ${package}.model.dto.${classUppercaseName}Dto;
import ${package}.model.entity.${classUppercaseName}Entity;
import ${package}.model.vo.${classUppercaseName}Vo;
import com.auth.common.model.common.result.PageResult;
import com.auth.common.model.common.result.Result;
import com.auth.common.model.common.result.ResultCodeEnum;
import java.util.List;

/**
 * <p>
 * ${comment} 服务类
 * </p>
 *
 * @author Bunny
 * @since ${date}
 */
public interface ${classUppercaseName}Service extends IService<${classUppercaseName}Entity> {

    /**
     * 分页查询${comment}
     *
     * @return ${comment}分页结果 {@link ${classUppercaseName}Vo}
     */
    PageResult<${classUppercaseName}Vo> get${classUppercaseName}Page(Page<${classUppercaseName}Entity> pageParams, ${classUppercaseName}Dto dto);

    /**
     * 根据id查询${comment}详情
     *
     * @param id 主键
     * @return ${comment}详情 ${classUppercaseName}Vo}
     */
    ${classUppercaseName}Vo getById(Long id);

    /**
     * 添加${comment}
     *
     * @param dto {@link ${classUppercaseName}Dto} 添加表单
     */
    void create(${classUppercaseName}Dto dto);

    /**
     * 更新${comment}
     *
     * @param dto {@link ${classUppercaseName}Dto} 更新表单
     */
    void update(${classUppercaseName}Dto dto);

    /**
     * 删除|批量删除${comment}类型
     *
     * @param ids 删除id列表
     */
    void batchDelete(List<Long> ids);
}
