parent
0a63e1f593
commit
8f17a3661e
10 changed files with 135 additions and 49 deletions
13
pkg/model/lock.go
Normal file
13
pkg/model/lock.go
Normal file
|
@ -0,0 +1,13 @@
|
|||
package model
|
||||
|
||||
import "time"
|
||||
|
||||
type Lock struct {
|
||||
Created time.Time `json:"Created"`
|
||||
Id string `json:"ID"`
|
||||
Info string `json:"Info"`
|
||||
Operation string `json:"Operation"`
|
||||
Path string `json:"Path"`
|
||||
Version string `json:"Version"`
|
||||
Who string `json:"Who"`
|
||||
}
|
|
@ -9,7 +9,7 @@ import (
|
|||
type State struct {
|
||||
Created time.Time
|
||||
Id uuid.UUID
|
||||
Lock *string
|
||||
Lock *Lock
|
||||
Path string
|
||||
Updated time.Time
|
||||
}
|
||||
|
|
|
@ -12,6 +12,6 @@ type Version struct {
|
|||
Created time.Time
|
||||
Data json.RawMessage
|
||||
Id uuid.UUID
|
||||
Lock *string
|
||||
Lock *Lock
|
||||
StateId uuid.UUID
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue