package com.schisandra.auth.infra.basic.service;

import com.schisandra.auth.infra.basic.entity.SchisandraAuthPermission;
import org.springframework.data.domain.Page;
import org.springframework.data.domain.PageRequest;

import java.util.List;

/**
 * (SchisandraAuthPermission)表服务接口
 *
 * @author makejava
 * @since 2024-04-11 13:00:10
 */
public interface SchisandraAuthPermissionService {

    /**
     * 通过ID查询单条数据
     *
     * @param id 主键
     * @return 实例对象
     */
    SchisandraAuthPermission queryById(Long id);


    /**
     * 新增数据
     *
     * @param schisandraAuthPermission 实例对象
     * @return 实例对象
     */
    SchisandraAuthPermission insert(SchisandraAuthPermission schisandraAuthPermission);

    /**
     * 修改数据
     *
     * @param schisandraAuthPermission 实例对象
     * @return int
     */
    int update(SchisandraAuthPermission schisandraAuthPermission);

    /**
     * 通过主键删除数据
     *
     * @param id 主键
     * @return 是否成功
     */
    boolean deleteById(Long id);

    List<SchisandraAuthPermission> queryListByIds(List<Long> permissionIdList);
}
