mirror of
https://github.com/mamoe/mirai.git
synced 2025-02-13 20:02:57 +08:00
Install serializer for PermissionImpl, make PermissionImpl final
This commit is contained in:
parent
9b3c7c1902
commit
900eac58b4
@ -9,6 +9,8 @@
|
||||
|
||||
package net.mamoe.mirai.console.permission
|
||||
|
||||
import kotlinx.serialization.Serializable
|
||||
|
||||
|
||||
/**
|
||||
* 一个权限节点
|
||||
@ -23,8 +25,9 @@ public interface Permission {
|
||||
/**
|
||||
* [Permission] 的简单实现
|
||||
*/
|
||||
@Serializable
|
||||
@ExperimentalPermission
|
||||
public open class PermissionImpl(
|
||||
public class PermissionImpl(
|
||||
override val id: PermissionId,
|
||||
override val description: String,
|
||||
override val base: PermissionId?
|
||||
|
Loading…
Reference in New Issue
Block a user