Mono repo -> Master (#22553)
Combines the following repositories into one: https://github.com/mattermost/mattermost-server https://github.com/mattermost/mattermost-webapp https://github.com/mattermost/focalboard https://github.com/mattermost/mattermost-plugin-playbooks
Этот коммит содержится в:
39
server/boards/model/sharing.go
Обычный файл
39
server/boards/model/sharing.go
Обычный файл
@@ -0,0 +1,39 @@
|
||||
// Copyright (c) 2015-present Mattermost, Inc. All Rights Reserved.
|
||||
// See LICENSE.txt for license information.
|
||||
|
||||
package model
|
||||
|
||||
import (
|
||||
"encoding/json"
|
||||
"io"
|
||||
)
|
||||
|
||||
// Sharing is sharing information for a root block
|
||||
// swagger:model
|
||||
type Sharing struct {
|
||||
// ID of the root block
|
||||
// required: true
|
||||
ID string `json:"id"`
|
||||
|
||||
// Is sharing enabled
|
||||
// required: true
|
||||
Enabled bool `json:"enabled"`
|
||||
|
||||
// Access token
|
||||
// required: true
|
||||
Token string `json:"token"`
|
||||
|
||||
// ID of the user who last modified this
|
||||
// required: true
|
||||
ModifiedBy string `json:"modifiedBy"`
|
||||
|
||||
// Updated time in miliseconds since the current epoch
|
||||
// required: true
|
||||
UpdateAt int64 `json:"update_at,omitempty"`
|
||||
}
|
||||
|
||||
func SharingFromJSON(data io.Reader) Sharing {
|
||||
var sharing Sharing
|
||||
_ = json.NewDecoder(data).Decode(&sharing)
|
||||
return sharing
|
||||
}
|
||||
Ссылка в новой задаче
Block a user