chore(webui): prepare lock code for webui force unlock
Some checks failed
main / main (push) Failing after 20s
main / deploy (push) Has been skipped
main / publish (push) Has been skipped

#13
This commit is contained in:
Julien Dessaux 2025-05-02 00:26:32 +02:00
parent 0a63e1f593
commit 8f17a3661e
Signed by: adyxax
GPG key ID: F92E51B86E07177E
10 changed files with 135 additions and 49 deletions

13
pkg/model/lock.go Normal file
View 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"`
}

View file

@ -9,7 +9,7 @@ import (
type State struct {
Created time.Time
Id uuid.UUID
Lock *string
Lock *Lock
Path string
Updated time.Time
}

View file

@ -12,6 +12,6 @@ type Version struct {
Created time.Time
Data json.RawMessage
Id uuid.UUID
Lock *string
Lock *Lock
StateId uuid.UUID
}