fixed bson/ObjectId
Cette révision appartient à :
Parent
e7d32edee0
révision
2002bb1804
@ -11,16 +11,14 @@ type IdGenerator interface {
|
||||
}
|
||||
|
||||
// ObjectId
|
||||
type objectId struct {
|
||||
bson.ObjectId
|
||||
}
|
||||
type objectId struct {}
|
||||
|
||||
func (id *objectId) Id() string {
|
||||
return id.Hex()
|
||||
return bson.NewObjectId().Hex()
|
||||
}
|
||||
|
||||
func NewObjectId() IdGenerator {
|
||||
return &objectId{bson.NewObjectId()}
|
||||
return &objectId{}
|
||||
}
|
||||
|
||||
// AutoIncId
|
||||
|
Chargement…
Référencer dans un nouveau ticket
Block a user