mirror of
https://github.com/crawlab-team/crawlab.git
synced 2026-01-23 17:31:11 +01:00
14 lines
217 B
Go
14 lines
217 B
Go
package models
|
|
|
|
import (
|
|
"go.mongodb.org/mongo-driver/bson/primitive"
|
|
)
|
|
|
|
type BaseModel struct {
|
|
Id primitive.ObjectID `json:"_id" bson:"_id"`
|
|
}
|
|
|
|
func (d *BaseModel) GetId() (id primitive.ObjectID) {
|
|
return d.Id
|
|
}
|