20 lines
635 B
Go
20 lines
635 B
Go
package locationoccurrences
|
|
|
|
import locationregistry "gitea.maximumdirect.net/eric/notarius/internal/modules/dnd/locations/registry"
|
|
|
|
type extractionResponse struct {
|
|
Occurrences []occurrenceResponse `json:"occurrences"`
|
|
}
|
|
|
|
type occurrenceResponse struct {
|
|
Name string `json:"name"`
|
|
RegistryRefs []locationregistry.RegistryRef `json:"registry_refs"`
|
|
Kind string `json:"kind"`
|
|
SourceRefs []occurrenceSourceRefResponse `json:"source_refs"`
|
|
}
|
|
|
|
type occurrenceSourceRefResponse struct {
|
|
StartUnitID int `json:"start_unit_id"`
|
|
EndUnitID int `json:"end_unit_id"`
|
|
}
|