Start adding context resources to communications
These will contain URIs for anything related to the communication
This commit is contained in:
parent
0301545df9
commit
b5bc54b7f4
1 changed files with 6 additions and 0 deletions
|
|
@ -33,6 +33,7 @@ type communicationLog struct {
|
|||
User string `json:"user"`
|
||||
}
|
||||
type communication struct {
|
||||
Context []resourceStub `json:"context"`
|
||||
Created time.Time `json:"created"`
|
||||
ID string `json:"id"`
|
||||
Log []communicationLog `json:"log"`
|
||||
|
|
@ -50,6 +51,11 @@ type communicationStub struct {
|
|||
Type string `json:"type"`
|
||||
URI string `json:"uri"`
|
||||
}
|
||||
type resourceStub struct {
|
||||
Created time.Time `json:"created"`
|
||||
Type string `json:"type"`
|
||||
URI string `json:"uri"`
|
||||
}
|
||||
|
||||
func toImageURLs(m map[string][]uuid.UUID, id string) []string {
|
||||
uuids, ok := m[id]
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue