20 lines
420 B
Go
20 lines
420 B
Go
package srequest
|
|
|
|
import "go.mongodb.org/mongo-driver/v2/bson"
|
|
|
|
type Reorder struct {
|
|
ParentRef bson.ObjectID `json:"parentRef"`
|
|
From int `json:"from"`
|
|
To int `json:"to"`
|
|
}
|
|
|
|
type ReorderX struct {
|
|
ObjectRef bson.ObjectID `json:"objectRef"`
|
|
To int `json:"to"`
|
|
}
|
|
|
|
type ReorderXDefault struct {
|
|
ReorderX `json:",inline"`
|
|
ParentRef bson.ObjectID `json:"parentRef"`
|
|
}
|