Finish authentication

This commit is contained in:
2023-10-06 14:52:03 +08:00
parent 79e65f0785
commit 03534e4fa9
14 changed files with 121 additions and 33 deletions

View File

@@ -1,11 +1,13 @@
package top.fatweb.api.service.permission
import top.fatweb.api.entity.permission.User
import top.fatweb.api.vo.LoginVo
import top.fatweb.api.vo.TokenVo
interface IAuthenticationService {
fun login(user: User): HashMap<String, String>
fun login(user: User): LoginVo
fun logout(token: String): Boolean
fun renewToken(token: String): HashMap<String, String>
fun renewToken(token: String): TokenVo
}