Create report platform layer

Rework phone subscription at the database layer so that we have a
seprate phone status and subscriptions to district communications.
This commit is contained in:
Eli Ribble 2026-01-31 20:08:08 +00:00
parent cbcd998803
commit a9b0a55f20
No known key found for this signature in database
34 changed files with 4844 additions and 257 deletions

View file

@ -10,6 +10,7 @@ import (
"github.com/Gleipnir-Technology/nidus-sync/db/enums"
"github.com/Gleipnir-Technology/nidus-sync/db/models"
"github.com/Gleipnir-Technology/nidus-sync/html"
"github.com/Gleipnir-Technology/nidus-sync/platform/report"
"github.com/aarondl/opt/omit"
"github.com/aarondl/opt/omitnull"
"github.com/rs/zerolog/log"
@ -84,7 +85,7 @@ func postNuisance(w http.ResponseWriter, r *http.Request) {
source_description := r.PostFormValue("source-description")
additional_info := r.PostFormValue("additional-info")
public_id, err := GenerateReportID()
public_id, err := report.GenerateReportID()
if err != nil {
respondError(w, "Failed to create quick report public ID", err, http.StatusInternalServerError)
return