mirror of
https://github.com/siyuan-note/siyuan.git
synced 2025-12-17 07:00:12 +01:00
This commit is contained in:
parent
db5d0962ba
commit
48b36d929f
2 changed files with 8 additions and 5 deletions
|
|
@ -70,7 +70,10 @@ func diffRepoSnapshots(c *gin.Context) {
|
||||||
}
|
}
|
||||||
|
|
||||||
ret.Data = map[string]interface{}{
|
ret.Data = map[string]interface{}{
|
||||||
"diff": diff,
|
"addsLeft": diff.AddsLeft,
|
||||||
|
"updatesLeft": diff.UpdatesLeft,
|
||||||
|
"updatesRight": diff.UpdatesRight,
|
||||||
|
"removesRight": diff.RemovesRight,
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
||||||
|
|
@ -128,10 +128,10 @@ func OpenRepoSnapshotDoc(fileID string) (id, rootID, content string, isLargeDoc
|
||||||
}
|
}
|
||||||
|
|
||||||
type LeftRightDiff struct {
|
type LeftRightDiff struct {
|
||||||
AddsLeft []*DiffFile
|
AddsLeft []*DiffFile `json:"addsLeft"`
|
||||||
UpdatesLeft []*DiffFile
|
UpdatesLeft []*DiffFile `json:"updatesLeft"`
|
||||||
UpdatesRight []*DiffFile
|
UpdatesRight []*DiffFile `json:"updatesRight"`
|
||||||
RemovesRight []*DiffFile
|
RemovesRight []*DiffFile `json:"removesRight"`
|
||||||
}
|
}
|
||||||
|
|
||||||
type DiffFile struct {
|
type DiffFile struct {
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue