feat: list Creator-owned continuity items
CI / test (push) Failing after 14m51s

This commit is contained in:
m
2026-08-16 15:54:30 +03:00
parent 6a5550b7b0
commit 2877571bb3
6 changed files with 111 additions and 1 deletions
+22
View File
@@ -0,0 +1,22 @@
package main
import (
"fmt"
"strconv"
)
const (
defaultListLimit = 25
maximumListLimit = 100
)
func parseListLimit(raw string) (int, error) {
if raw == "" {
return defaultListLimit, nil
}
limit, err := strconv.Atoi(raw)
if err != nil || limit < 1 || limit > maximumListLimit {
return 0, fmt.Errorf("limit must be between 1 and %d", maximumListLimit)
}
return limit, nil
}