Files
2026-08-28 17:59:35 +02:00

19 lines
276 B
Go

package models
import (
"encoding/xml"
"github.com/google/uuid"
)
type ObjectId struct {
XMLName xml.Name `xml:"ObjectId"`
Value string `xml:",chardata"`
}
func NewObjectId() *ObjectId {
id := uuid.New()
return &ObjectId{Value: id.String()}
}