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