Files
sendico/api/pkg/model/object.go
2026-01-31 00:26:42 +01:00

21 lines
457 B
Go

package model
import (
"github.com/tech/sendico/pkg/mservice"
"go.mongodb.org/mongo-driver/v2/bson"
)
type TypeBound struct {
Type mservice.Type `bson:"type" json:"type"`
}
type ObjectRefs struct {
TypeBound `bson:"inline" json:"inline"`
Refs []bson.ObjectID `bson:"refs,omitempty" json:"refs,omitempty"`
}
type ObjectRef struct {
TypeBound `bson:"inline" json:"inline"`
Ref bson.ObjectID `bson:"ref,omitempty" json:"ref,omitempty"`
}