Add authentication

This commit is contained in:
2023-10-05 21:11:22 +08:00
parent 78de04713f
commit 8e5375ab30
24 changed files with 580 additions and 15 deletions

View File

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