package com.zsc.bill.modules.system.service;

import com.baomidou.mybatisplus.extension.service.IService;
import com.zsc.bill.modules.system.dto.AuthorityDto;
import com.zsc.bill.modules.system.entity.Authority;

import java.util.Set;

/**
 * @author zhuang
 */
public interface AuthorityService extends IService<Authority> {

    Authority create(AuthorityDto authorityDto);

    Boolean update(AuthorityDto authorityDto,Long id);

    Boolean toggle(Long id);

    Set<Authority> selectAuthoritiesByRoleId(Long roleId);
}
