mirror of
https://github.com/m1k1o/neko.git
synced 2024-07-24 14:40:50 +12:00
add plugins to member profile.
This commit is contained in:
parent
d5425ea457
commit
52642dbeb6
@ -9,16 +9,21 @@ var (
|
|||||||
)
|
)
|
||||||
|
|
||||||
type MemberProfile struct {
|
type MemberProfile struct {
|
||||||
Name string `json:"name"`
|
Name string `json:"name"`
|
||||||
IsAdmin bool `json:"is_admin"`
|
|
||||||
CanLogin bool `json:"can_login"`
|
// permissions
|
||||||
CanConnect bool `json:"can_connect"`
|
IsAdmin bool `json:"is_admin"`
|
||||||
CanWatch bool `json:"can_watch"`
|
CanLogin bool `json:"can_login"`
|
||||||
CanHost bool `json:"can_host"`
|
CanConnect bool `json:"can_connect"`
|
||||||
CanShareMedia bool `json:"can_share_media"`
|
CanWatch bool `json:"can_watch"`
|
||||||
CanAccessClipboard bool `json:"can_access_clipboard"`
|
CanHost bool `json:"can_host"`
|
||||||
SendsInactiveCursor bool `json:"sends_inactive_cursor"`
|
CanShareMedia bool `json:"can_share_media"`
|
||||||
CanSeeInactiveCursors bool `json:"can_see_inactive_cursors"`
|
CanAccessClipboard bool `json:"can_access_clipboard"`
|
||||||
|
SendsInactiveCursor bool `json:"sends_inactive_cursor"`
|
||||||
|
CanSeeInactiveCursors bool `json:"can_see_inactive_cursors"`
|
||||||
|
|
||||||
|
// plugin scope
|
||||||
|
Plugins map[string]any `json:"plugins"`
|
||||||
}
|
}
|
||||||
|
|
||||||
type MemberProvider interface {
|
type MemberProvider interface {
|
||||||
|
Loading…
Reference in New Issue
Block a user