Merge remote-tracking branch 'origin/dev' into dev

This commit is contained in:
Vanessa 2025-03-10 16:41:19 +08:00
commit 389162703f
5 changed files with 15 additions and 4 deletions

File diff suppressed because one or more lines are too long

View file

@ -244,6 +244,7 @@ func setFileAnnotation(c *gin.Context) {
ret.Msg = err.Error()
return
}
model.IncSync()
}

View file

@ -87,6 +87,8 @@ func globalCopyFiles(c *gin.Context) {
return
}
}
model.IncSync()
}
func copyFile(c *gin.Context) {
@ -132,6 +134,8 @@ func copyFile(c *gin.Context) {
ret.Data = map[string]interface{}{"closeTimeout": 5000}
return
}
model.IncSync()
}
func getFile(c *gin.Context) {
@ -320,6 +324,8 @@ func renameFile(c *gin.Context) {
ret.Msg = err.Error()
return
}
model.IncSync()
}
func removeFile(c *gin.Context) {
@ -357,6 +363,8 @@ func removeFile(c *gin.Context) {
ret.Msg = err.Error()
return
}
model.IncSync()
}
func putFile(c *gin.Context) {
@ -442,6 +450,8 @@ func putFile(c *gin.Context) {
ret.Msg = err.Error()
return
}
model.IncSync()
}
func millisecond2Time(t int64) time.Time {

View file

@ -10,7 +10,7 @@ require (
github.com/88250/epub v0.0.0-20230830085737-c19055cd1f48
github.com/88250/go-humanize v0.0.0-20240424102817-4f78fac47ea7
github.com/88250/gulu v1.2.3-0.20250227144607-7f4570b0d689
github.com/88250/lute v1.7.7-0.20250310031429-b63f50e26c46
github.com/88250/lute v1.7.7-0.20250310044047-1b5c5c16b1d3
github.com/88250/vitess-sqlparser v0.0.0-20210205111146-56a2ded2aba1
github.com/ClarkThan/ahocorasick v0.0.0-20231011042242-30d1ef1347f4
github.com/ConradIrwin/font v0.2.1

View file

@ -14,8 +14,8 @@ github.com/88250/go-sqlite3 v1.14.13-0.20231214121541-e7f54c482950 h1:Pa5hMiBceT
github.com/88250/go-sqlite3 v1.14.13-0.20231214121541-e7f54c482950/go.mod h1:NyWgC/yNuGj7Q9rpYnZvas74GogHl5/Z4A/KQRfk6bU=
github.com/88250/gulu v1.2.3-0.20250227144607-7f4570b0d689 h1:39y5g7vnFAIcXhTN3IXPk7h2xBhC4a9hBTykDhHJqRY=
github.com/88250/gulu v1.2.3-0.20250227144607-7f4570b0d689/go.mod h1:c8uVw25vW2W4dhJ/j4iYsX5H1hc19spim266jO5x2hU=
github.com/88250/lute v1.7.7-0.20250310031429-b63f50e26c46 h1:KgC5MrkZIm5EFsCVuDYV4lwYfcDq/0c5JiIGxFRuubQ=
github.com/88250/lute v1.7.7-0.20250310031429-b63f50e26c46/go.mod h1:WYyUw//5yVw9BJnoVjx7rI/3szsISxNZCYGOqTIrV0o=
github.com/88250/lute v1.7.7-0.20250310044047-1b5c5c16b1d3 h1:QoRh1vo/F+g+v+oxJSp3jpcN/QWmnyV7LcyFR/v7ofA=
github.com/88250/lute v1.7.7-0.20250310044047-1b5c5c16b1d3/go.mod h1:WYyUw//5yVw9BJnoVjx7rI/3szsISxNZCYGOqTIrV0o=
github.com/88250/pdfcpu v0.3.14-0.20241201033812-5a93b7586a01 h1:AcFe63RXjIh1XtX/dc4Es3U8bYKjlEkvavHd1nFBOHM=
github.com/88250/pdfcpu v0.3.14-0.20241201033812-5a93b7586a01/go.mod h1:fVfOloBzs2+W2VJCCbq60XIxc3yJHAZ0Gahv1oO0gyI=
github.com/88250/vitess-sqlparser v0.0.0-20210205111146-56a2ded2aba1 h1:48T899JQDwyyRu9yXHePYlPdHtpJfrJEUGBMH3SMBWY=