jiangshuai
2023-09-22 34e1e9dbc7a750048c0825b8f91b07ed526ae577
controllers/location.go
@@ -35,7 +35,7 @@
      util.ResponseFormat(c, code.RequestParamError, "创建失败")
      return
   }
   util.ResponseFormat(c, code.RequestParamError, "创建成功")
   util.ResponseFormat(c, code.Success, "创建成功")
}
// GetLocationList
@@ -60,6 +60,9 @@
      util.ResponseFormat(c, code.RequestParamError, "查找失败")
      return
   }
   for _, location := range list {
      location.JointName = location.ParentId + "/" + location.Name
   }
   util.ResponseFormatList(c, code.Success, list, int(total))
}