Add power to login

This commit is contained in:
2023-10-25 18:25:28 +08:00
parent 979d1d8fb8
commit 2a364cfcfe
6 changed files with 119 additions and 11 deletions

View File

@@ -2,6 +2,7 @@ package top.fatweb.api.mapper.permission
import com.baomidou.mybatisplus.core.mapper.BaseMapper
import org.apache.ibatis.annotations.Mapper
import org.apache.ibatis.annotations.Param
import top.fatweb.api.entity.permission.User
/**
@@ -13,4 +14,6 @@ import top.fatweb.api.entity.permission.User
* @since 2023-10-04
*/
@Mapper
interface UserMapper : BaseMapper<User>
interface UserMapper : BaseMapper<User> {
fun getOneWithPowerByUsername(@Param("username")username: String): User?
}