mirror of
https://github.com/m1k1o/neko.git
synced 2025-06-02 10:52:41 +02:00
new MemberProfile & session refactor.
This commit is contained in:
parent
220e162f42
commit
0d2f3405bb
4 changed files with 122 additions and 62 deletions
|
@ -12,14 +12,15 @@ type MemberCreatePayload struct {
|
|||
}
|
||||
|
||||
type MemberDataPayload struct {
|
||||
ID string `json:"id"`
|
||||
Secret string `json:"secret,omitempty"`
|
||||
Name string `json:"name"`
|
||||
IsAdmin bool `json:"is_admin"`
|
||||
//Enabled bool `json:"enabled"`
|
||||
//CanControl bool `json:"can_control"`
|
||||
//CanWatch bool `json:"can_watch"`
|
||||
//ClipboardAccess bool `json:"clipboard_access"`
|
||||
ID string `json:"id"`
|
||||
Secret string `json:"secret,omitempty"`
|
||||
Name string `json:"name"`
|
||||
IsAdmin bool `json:"is_admin"`
|
||||
CanLogin bool `json:"can_login"`
|
||||
CanConnect bool `json:"can_connect"`
|
||||
CanWatch bool `json:"can_watch"`
|
||||
CanHost bool `json:"can_host"`
|
||||
CanAccessClipboard bool `json:"can_access_clipboard"`
|
||||
}
|
||||
|
||||
func (h *MembersHandler) membersCreate(w http.ResponseWriter, r *http.Request) {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue