initial commit lets start
This commit is contained in:
@@ -0,0 +1,18 @@
|
||||
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()}
|
||||
|
||||
}
|
||||
Reference in New Issue
Block a user