From a512773f11f0854c010bcf03a0786b14506eaa76 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E5=BE=90=E6=B6=9B?= Date: Tue, 6 Sep 2022 11:13:34 +0800 Subject: [PATCH] =?UTF-8?q?fix(park):=E4=BF=AE=E5=A4=8D=E5=88=9B=E5=BB=BA?= =?UTF-8?q?=E5=92=8C=E4=BF=AE=E6=94=B9=E5=9B=AD=E5=8C=BA=E7=9A=84=E6=97=B6?= =?UTF-8?q?=E5=80=99=E5=9B=AD=E5=8C=BA=E4=BD=8F=E6=88=B7=E6=95=B0=E9=87=8F?= =?UTF-8?q?=E4=B8=8D=E8=83=BD=E8=A2=AB=E4=BF=9D=E5=AD=98=E7=9A=84=E9=97=AE?= =?UTF-8?q?=E9=A2=98=E3=80=82?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- controller/park.go | 20 ++++++++++---------- 1 file changed, 10 insertions(+), 10 deletions(-) diff --git a/controller/park.go b/controller/park.go index 6cf64a5..384cdc1 100644 --- a/controller/park.go +++ b/controller/park.go @@ -69,16 +69,16 @@ func listAllParksUnderSpecificUser(c *gin.Context) { } type _ParkInfoFormData struct { - Name string `json:"name" form:"name"` - Region *string `json:"region" form:"region"` - Address *string `json:"address" form:"address"` - Contact *string `json:"contact" form:"contact"` - Phone *string `json:"phone" from:"phone"` - Area decimal.NullDecimal `json:"area" from:"area"` - Capacity decimal.NullDecimal `json:"capacity" from:"capacity"` - Tenement decimal.NullDecimal `json:"tenement" from:"tenement"` - Category int `json:"category" form:"category"` - Submeter int `json:"submeter" form:"submeter"` + Name string `json:"name" form:"name"` + Region *string `json:"region" form:"region"` + Address *string `json:"address" form:"address"` + Contact *string `json:"contact" form:"contact"` + Phone *string `json:"phone" from:"phone"` + Area decimal.NullDecimal `json:"area" from:"area"` + Capacity decimal.NullDecimal `json:"capacity" from:"capacity"` + TenementQuantity decimal.NullDecimal `json:"tenement" from:"tenement"` + Category int `json:"category" form:"category"` + Submeter int `json:"submeter" form:"submeter"` } func createNewPark(c *gin.Context) {