Files
oxygen-api/src/main/kotlin/top/fatweb/api/mapper/permission/RoleMapper.kt
2023-11-15 18:06:51 +08:00

24 lines
579 B
Kotlin

package top.fatweb.api.mapper.permission
import com.baomidou.mybatisplus.core.mapper.BaseMapper
import com.baomidou.mybatisplus.core.metadata.IPage
import org.apache.ibatis.annotations.Mapper
import top.fatweb.api.entity.permission.Role
/**
* <p>
* 角色表 Mapper 接口
* </p>
*
* @author FatttSnake
* @since 2023-10-25
*/
@Mapper
interface RoleMapper : BaseMapper<Role> {
fun selectPage(page: IPage<Long>, searchName: String?, searchRegex: Boolean): IPage<Long>
fun getWithPowerByList(roleIds: List<Long>): List<Role>?
fun selectOne(id: Long): Role?
}