From ea02a2a9a8219d44b103f0a31cf9fc81ff8495e1 Mon Sep 17 00:00:00 2001 From: liujiandao <274878379@qq.com> Date: 星期六, 23 九月 2023 16:57:48 +0800 Subject: [PATCH] 产品列表添加类型名称 --- controllers/location.go | 3 +++ 1 files changed, 3 insertions(+), 0 deletions(-) diff --git a/controllers/location.go b/controllers/location.go index 595a2ba..682c1f0 100644 --- a/controllers/location.go +++ b/controllers/location.go @@ -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)) } -- Gitblit v1.8.0