minor changes
This commit is contained in:
@@ -22,6 +22,14 @@ type DataNEWModel struct {
|
|||||||
Location string `json:"location" required:"true" validate:"required"`
|
Location string `json:"location" required:"true" validate:"required"`
|
||||||
}
|
}
|
||||||
|
|
||||||
|
type DataIO struct {
|
||||||
|
Counter uint `description:"Incremental number starting from 0"`
|
||||||
|
}
|
||||||
|
|
||||||
|
type DataObject struct {
|
||||||
|
ReferenceID primitive.ObjectID `json:"referenceID" description:"Data model ID"`
|
||||||
|
}
|
||||||
|
|
||||||
type DataModel struct {
|
type DataModel struct {
|
||||||
ID string `json:"ID" bson:"_id" required:"true" validate:"required"`
|
ID string `json:"ID" bson:"_id" required:"true" validate:"required"`
|
||||||
DataNEWModel `bson:",inline"`
|
DataNEWModel `bson:",inline"`
|
||||||
@@ -34,15 +42,6 @@ func (obj DataModel) getRtype() rtype.Rtype {
|
|||||||
func (model DataModel) getName() string {
|
func (model DataModel) getName() string {
|
||||||
return model.Name
|
return model.Name
|
||||||
}
|
}
|
||||||
|
|
||||||
type DataIO struct {
|
|
||||||
Counter uint `description:"Incremental number starting from 0"`
|
|
||||||
}
|
|
||||||
|
|
||||||
type DataObject struct {
|
|
||||||
ReferenceID primitive.ObjectID `json:"referenceID" description:"Data model ID"`
|
|
||||||
}
|
|
||||||
|
|
||||||
func (obj DataObject) getHost() *string {
|
func (obj DataObject) getHost() *string {
|
||||||
return nil // Host is DC only attribute
|
return nil // Host is DC only attribute
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user