24 lines
579 B
Kotlin
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?
|
|
}
|