From 70c0602970568650d5cb03ccb4255bdcbc1aab44 Mon Sep 17 00:00:00 2001 From: zhengkunwang <31820853+zhengkunwang223@users.noreply.github.com> Date: Thu, 9 Nov 2023 21:56:06 +0800 Subject: [PATCH] =?UTF-8?q?fix:=20=E8=A7=A3=E5=86=B3=E7=BD=91=E7=AB=99?= =?UTF-8?q?=E4=BF=9D=E5=AD=98=E8=AE=BE=E7=BD=AE=E6=8A=A5=E9=94=99=E7=9A=84?= =?UTF-8?q?=E9=97=AE=E9=A2=98=20(#2864)?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- backend/app/dto/request/nginx.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/backend/app/dto/request/nginx.go b/backend/app/dto/request/nginx.go index 88c583f13..8a0529f27 100644 --- a/backend/app/dto/request/nginx.go +++ b/backend/app/dto/request/nginx.go @@ -14,7 +14,7 @@ type NginxScopeReq struct { type NginxConfigUpdate struct { Scope dto.NginxKey `json:"scope"` - Operate string `json:"operate" validate:"required;oneof=add update delete"` + Operate string `json:"operate" validate:"required,oneof=add update delete"` WebsiteID uint `json:"websiteId" validate:"required"` Params interface{} `json:"params"` }