1
0
mirror of https://github.com/mattermost/focalboard.git synced 2024-12-18 09:35:25 +02:00
focalboard/server/model/sharing.go
2021-01-12 16:52:25 -08:00

21 lines
389 B
Go

package model
import (
"encoding/json"
"io"
)
type Sharing struct {
ID string `json:"id"`
Enabled bool `json:"enabled"`
Token string `json:"token"`
ModifiedBy string `json:"modifiedBy"`
UpdateAt int64 `json:"update_at,omitempty"`
}
func SharingFromJSON(data io.Reader) Sharing {
var sharing Sharing
json.NewDecoder(data).Decode(&sharing)
return sharing
}