kick out geopoint useless
This commit is contained in:
		@@ -10,7 +10,6 @@ import (
 | 
				
			|||||||
	"cloud.o-forge.io/core/oc-lib/models/utils"
 | 
						"cloud.o-forge.io/core/oc-lib/models/utils"
 | 
				
			||||||
	"cloud.o-forge.io/core/oc-lib/tools"
 | 
						"cloud.o-forge.io/core/oc-lib/tools"
 | 
				
			||||||
	"github.com/biter777/countries"
 | 
						"github.com/biter777/countries"
 | 
				
			||||||
	"github.com/marcinwyszynski/geopoint"
 | 
					 | 
				
			||||||
)
 | 
					)
 | 
				
			||||||
 | 
					
 | 
				
			||||||
// AbstractResource is the struct containing all of the attributes commons to all ressources
 | 
					// AbstractResource is the struct containing all of the attributes commons to all ressources
 | 
				
			||||||
@@ -119,14 +118,18 @@ func verifyAuthAction[T ResourceInstanceITF](baseInstance []T, request *tools.AP
 | 
				
			|||||||
	return instances
 | 
						return instances
 | 
				
			||||||
}
 | 
					}
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					type GeoPoint struct {
 | 
				
			||||||
 | 
						Latitude  float64 `json:"latitude,omitempty" bson:"latitude,omitempty"`
 | 
				
			||||||
 | 
						Longitude float64 `json:"longitude,omitempty" bson:"longitude,omitempty"`
 | 
				
			||||||
 | 
					}
 | 
				
			||||||
 | 
					
 | 
				
			||||||
type ResourceInstance[T ResourcePartnerITF] struct {
 | 
					type ResourceInstance[T ResourcePartnerITF] struct {
 | 
				
			||||||
	UUID     string                `json:"id,omitempty" bson:"id,omitempty"`
 | 
						UUID           string                `json:"id,omitempty" bson:"id,omitempty"`
 | 
				
			||||||
	Name     string                `json:"name,omitempty" bson:"name,omitempty"`
 | 
						Name           string                `json:"name,omitempty" bson:"name,omitempty"`
 | 
				
			||||||
	Location geopoint.GeoPoint     `json:"location,omitempty" bson:"location,omitempty"`
 | 
						Location       GeoPoint              `json:"location,omitempty" bson:"location,omitempty"`
 | 
				
			||||||
	Country  countries.CountryCode `json:"country,omitempty" bson:"country,omitempty"`
 | 
						Country        countries.CountryCode `json:"country,omitempty" bson:"country,omitempty"`
 | 
				
			||||||
	// Url            string                `json:"url,omitempty" bson:"url,omitempty"`
 | 
						AccessProtocol string                `json:"access_protocol,omitempty" bson:"access_protocol,omitempty"`
 | 
				
			||||||
	AccessProtocol string `json:"access_protocol,omitempty" bson:"access_protocol,omitempty"`
 | 
						Partnerships   []T                   `json:"partner_resource,omitempty" bson:"partner_resource,omitempty"`
 | 
				
			||||||
	Partnerships   []T    `json:"partner_resource,omitempty" bson:"partner_resource,omitempty"`
 | 
					 | 
				
			||||||
}
 | 
					}
 | 
				
			||||||
 | 
					
 | 
				
			||||||
func (ri *ResourceInstance[T]) GetID() string {
 | 
					func (ri *ResourceInstance[T]) GetID() string {
 | 
				
			||||||
 
 | 
				
			|||||||
		Reference in New Issue
	
	Block a user