From 709c345201d484cb2291bb4db3b11fb516d18ef6 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E8=80=97=E5=AD=90?= Date: Tue, 1 Apr 2025 17:18:30 +0800 Subject: [PATCH] =?UTF-8?q?fix:=20=E5=85=81=E8=AE=B8=E4=BF=AE=E6=94=B9?= =?UTF-8?q?=E4=B8=8A=E4=BC=A0=E7=9A=84=E8=AF=81=E4=B9=A6?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- internal/http/request/cert.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/internal/http/request/cert.go b/internal/http/request/cert.go index fc1c69c1..8588b986 100644 --- a/internal/http/request/cert.go +++ b/internal/http/request/cert.go @@ -16,7 +16,7 @@ type CertCreate struct { type CertUpdate struct { ID uint `form:"id" json:"id" validate:"required|exists:certs,id"` - Type string `form:"type" json:"type" validate:"required|in:P256,P384,2048,3072,4096"` + Type string `form:"type" json:"type" validate:"required|in:P256,P384,2048,3072,4096,upload"` Domains []string `form:"domains" json:"domains" validate:"required|isSlice"` Cert string `form:"cert" json:"cert"` Key string `form:"key" json:"key"`