clean and change type
Build and Publish / Metadata (push) Successful in 9s
Build and Publish / BuildAndDeployAmd64 (push) Successful in 1m27s
Build and Publish / BuildAndDeployArm64 (push) Successful in 4m24s

This commit is contained in:
2025-10-15 18:21:16 +02:00
parent 8456184973
commit c61adb3b9d
7 changed files with 6 additions and 5 deletions
+5 -4
View File
@@ -41,12 +41,13 @@ func listCartFiles(dir string) ([]CartFileInfo, error) {
continue
}
name := e.Name()
var id int64
var idStr string
var id uint64
var parseErr error
parts := strings.Split(name, ".")
if len(parts) > 1 && parts[1] == "events" {
idStr := parts[0]
id, parseErr = strconv.ParseInt(idStr, 10, 64)
idStr = parts[0]
id, parseErr = strconv.ParseUint(idStr, 10, 64)
} else {
continue
}
@@ -59,7 +60,7 @@ func listCartFiles(dir string) ([]CartFileInfo, error) {
continue
}
out = append(out, CartFileInfo{
ID: uint64(id),
ID: idStr,
CartId: cart.CartId(id),
Size: info.Size(),
Modified: info.ModTime(),
+1 -1
View File
@@ -17,7 +17,7 @@ import (
)
type CartFileInfo struct {
ID uint64 `json:"id"`
ID string `json:"id"`
CartId cart.CartId `json:"cartId"`
Size int64 `json:"size"`
Modified time.Time `json:"modified"`
BIN
View File
Binary file not shown.
BIN
View File
Binary file not shown.
BIN
View File
Binary file not shown.
BIN
View File
Binary file not shown.
Binary file not shown.