package ${packageName}.service;

import com.baomidou.mybatisplus.core.metadata.IPage;
import com.baomidou.mybatisplus.extension.service.IService;
import ${packageName}.entity .${ClassName};

/**
 * ${functionName}Service接口
 *
 * @author ${author}
 * @since  ${datetime}
 */
public interface I${ClassName}Service extends IService<${ClassName}Entity> {
    /**
     * 查询${functionName}
     * @param ${pkColumn.javaField} ${functionName}主键
     * @return ${functionName}
     */
        ${ClassName}Entity select${ClassName}By${pkColumn.capJavaField}(${pkColumn.javaType} ${pkColumn.javaField});

    /**
     * 查询${functionName}列表
     * @param ${className} ${functionName}
     * @return ${functionName}集合
     */
    IPage<${ClassName}Entity> select${ClassName}ByPage(${ClassName}Entity ${className});

    /**
     * 新增${functionName}
     * @param ${className} ${functionName}
     * @return 结果
     */
    boolean create(${ClassName}Entity ${className});

    /**
     * 修改${functionName}
     * @param ${className} ${functionName}
     * @return 结果
     */
    boolean update(${ClassName}Entity ${className});

    /**
     * 批量删除${functionName}
     *
     * @param ${pkColumn.javaField}s 需要删除的${functionName}主键集合
     * @return 结果
     */
    int delete${ClassName}By${pkColumn.capJavaField}s(${pkColumn.javaType}[] ${pkColumn.javaField}s);

    /**
     * 删除${functionName}信息
     *
     * @param ${pkColumn.javaField} ${functionName}主键
     * @return 结果
     */
    int delete${ClassName}By${pkColumn.capJavaField}(${pkColumn.javaType} ${pkColumn.javaField});
}
