Emit updated events for communication resources on mark
This commit is contained in:
parent
633abd19a9
commit
d992eee560
2 changed files with 9 additions and 2 deletions
|
|
@ -89,6 +89,7 @@ type ResourceType int
|
|||
|
||||
const (
|
||||
TypeUnknown = iota
|
||||
TypeCommunication
|
||||
TypeFileCSV
|
||||
TypeNoteAudio
|
||||
TypeNoteImage
|
||||
|
|
@ -151,6 +152,8 @@ func Send(env Envelope) {
|
|||
}
|
||||
func resourceString(t ResourceType) string {
|
||||
switch t {
|
||||
case TypeCommunication:
|
||||
return "sync:communication"
|
||||
case TypeFileCSV:
|
||||
return "sync:filecsv"
|
||||
case TypeNoteAudio:
|
||||
|
|
@ -179,6 +182,8 @@ func resourceString(t ResourceType) string {
|
|||
}
|
||||
func makeURI(t ResourceType, id string) string {
|
||||
switch t {
|
||||
case TypeCommunication:
|
||||
return config.MakeURLNidus("/api/communication/%s", id)
|
||||
case TypeFileCSV:
|
||||
return config.MakeURLNidus("/api/upload/%s", id)
|
||||
case TypeNoteAudio:
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue