Make lead creation and invalidation for public reports work
The only thing wrong at this point that I can tell is that address aren't being correctly populated when I reverse geocode.
This commit is contained in:
parent
3e1b56a266
commit
e2af49a323
27 changed files with 821 additions and 365 deletions
|
|
@ -1294,12 +1294,18 @@ func (e *Imagedatatype) Scan(value any) error {
|
|||
|
||||
// Enum values for Leadtype
|
||||
const (
|
||||
LeadtypeGreenPool Leadtype = "green-pool"
|
||||
LeadtypeUnknown Leadtype = "unknown"
|
||||
LeadtypeGreenPool Leadtype = "green-pool"
|
||||
LeadtypePublicreportNuisance Leadtype = "publicreport-nuisance"
|
||||
LeadtypePublicreportWater Leadtype = "publicreport-water"
|
||||
)
|
||||
|
||||
func AllLeadtype() []Leadtype {
|
||||
return []Leadtype{
|
||||
LeadtypeUnknown,
|
||||
LeadtypeGreenPool,
|
||||
LeadtypePublicreportNuisance,
|
||||
LeadtypePublicreportWater,
|
||||
}
|
||||
}
|
||||
|
||||
|
|
@ -1311,7 +1317,10 @@ func (e Leadtype) String() string {
|
|||
|
||||
func (e Leadtype) Valid() bool {
|
||||
switch e {
|
||||
case LeadtypeGreenPool:
|
||||
case LeadtypeUnknown,
|
||||
LeadtypeGreenPool,
|
||||
LeadtypePublicreportNuisance,
|
||||
LeadtypePublicreportWater:
|
||||
return true
|
||||
default:
|
||||
return false
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue