fix(park):修复创建和修改园区的时候园区住户数量不能被保存的问题。

This commit is contained in:
徐涛 2022-09-06 11:13:34 +08:00
parent c4ab500235
commit a512773f11

View File

@ -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) {