mirror of
https://github.com/crawlab-team/crawlab.git
synced 2026-01-30 18:00:56 +01:00
feat: added modules
This commit is contained in:
17
core/interfaces/model_extra_value.go
Normal file
17
core/interfaces/model_extra_value.go
Normal file
@@ -0,0 +1,17 @@
|
||||
package interfaces
|
||||
|
||||
import (
|
||||
"go.mongodb.org/mongo-driver/bson/primitive"
|
||||
)
|
||||
|
||||
type ExtraValue interface {
|
||||
Model
|
||||
GetValue() (v interface{})
|
||||
SetValue(v interface{})
|
||||
GetObjectId() (oid primitive.ObjectID)
|
||||
SetObjectId(oid primitive.ObjectID)
|
||||
GetModel() (m string)
|
||||
SetModel(m string)
|
||||
GetType() (t string)
|
||||
SetType(t string)
|
||||
}
|
||||
Reference in New Issue
Block a user