mirai/backend/mirai-console/src/permission/Permittee.kt

28 lines
968 B
Kotlin
Raw Normal View History

2020-09-06 14:24:50 +08:00
/*
2020-10-28 13:35:15 +08:00
* Copyright 2019-2020 Mamoe Technologies and contributors.
2020-09-06 14:24:50 +08:00
*
* 此源代码的使用受 GNU AFFERO GENERAL PUBLIC LICENSE version 3 许可证的约束, 可以在以下链接找到该许可证.
2020-10-28 13:35:15 +08:00
* Use of this source code is governed by the GNU AFFERO GENERAL PUBLIC LICENSE version 3 license that can be found through the following link.
2020-09-06 14:24:50 +08:00
*
* https://github.com/mamoe/mirai/blob/master/LICENSE
*/
2020-09-07 21:59:15 +08:00
@file:Suppress("NOTHING_TO_INLINE", "unused", "MemberVisibilityCanBePrivate")
2020-09-06 14:24:50 +08:00
package net.mamoe.mirai.console.permission
2020-09-07 21:59:15 +08:00
import net.mamoe.mirai.console.command.CommandSender
2020-09-07 12:12:27 +08:00
/**
* 可被赋予权限的对象, '被许可人'.
2020-09-07 21:59:15 +08:00
*
* 被许可人自身不持有拥有的权限列表, 而是拥有 [PermitteeId], 标识自己的身份, [权限服务][PermissionService] 处理.
2020-09-07 12:12:27 +08:00
*
* **注意**: 请不要自主实现 [Permittee]
2020-09-07 21:59:15 +08:00
*
* @see CommandSender
*/
@PermissionImplementation
public interface Permittee {
public val permitteeId: PermitteeId
2020-09-08 21:35:30 +08:00
}