feat(park):修改园区信息功能已经完成。

This commit is contained in:
徐涛
2022-08-15 21:01:56 +08:00
parent 1bc87f7ca2
commit ddda0ac196
4 changed files with 60 additions and 3 deletions

View File

@@ -16,3 +16,11 @@ func (_ParkService) SaveNewPark(park model.Park) error {
}
return nil
}
func (_ParkService) UpdateParkInfo(park *model.Park) error {
_, err := global.DBConn.ID(park.Id).Cols("name", "abbr", "region", "address", "contact", "phone", "capacity", "tenement_quantity", "category", "meter_04kv_type").Update(park)
if err != nil {
return err
}
return nil
}