From 1d92b8945e92bf050bdd1c7a5f183afa90d76d0d Mon Sep 17 00:00:00 2001 From: LittleSheep Date: Mon, 10 Feb 2025 00:11:29 +0800 Subject: [PATCH] :bug: Try to fix bugs --- pkg/internal/http/api/videos_api.go | 9 +++++---- 1 file changed, 5 insertions(+), 4 deletions(-) diff --git a/pkg/internal/http/api/videos_api.go b/pkg/internal/http/api/videos_api.go index 4299094..ed1ef91 100644 --- a/pkg/internal/http/api/videos_api.go +++ b/pkg/internal/http/api/videos_api.go @@ -1,6 +1,9 @@ package api import ( + "strconv" + "time" + "git.solsynth.dev/hypernet/interactive/pkg/internal/database" "git.solsynth.dev/hypernet/interactive/pkg/internal/gap" "git.solsynth.dev/hypernet/interactive/pkg/internal/http/exts" @@ -13,8 +16,6 @@ import ( "github.com/gofiber/fiber/v2" jsoniter "github.com/json-iterator/go" "github.com/samber/lo" - "strconv" - "time" ) func createVideo(c *fiber.Ctx) error { @@ -28,7 +29,7 @@ func createVideo(c *fiber.Ctx) error { Video string `json:"video" validate:"required"` Alias *string `json:"alias"` Title string `json:"title" validate:"required"` - Description *string `json:"description" validate:"max=4096"` + Description *string `json:"description"` Location *string `json:"location"` Thumbnail *string `json:"thumbnail"` Subtitles map[string]string `json:"subtitles"` @@ -116,7 +117,7 @@ func editVideo(c *fiber.Ctx) error { Video string `json:"video" validate:"required"` Alias *string `json:"alias"` Title string `json:"title" validate:"required"` - Description *string `json:"description" validate:"max=4096"` + Description *string `json:"description"` Location *string `json:"location"` Thumbnail *string `json:"thumbnail"` Subtitles map[string]string `json:"subtitles"`