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

import com.schisandra.auth.infra.basic.entity.SchisandraAuthRolePermission;

import java.util.List;

/**
 *  表服务接口
 *
 * @author landaiqing
 * @since 2024-06-02 00:14:38
 */
public interface SchisandraAuthRolePermissionService {

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

    /**
     * 新增数据
     *
     * @param schisandraAuthRolePermission 实例对象
     * @return 实例对象
     */
    int insert(SchisandraAuthRolePermission schisandraAuthRolePermission);

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

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


    List<SchisandraAuthRolePermission> queryByRoleId(SchisandraAuthRolePermission schisandraAuthRolePermission);
}
