This commit is contained in:
2026-08-16 01:19:10 +08:00
parent c4b114762b
commit c554152f4f
43 changed files with 1311 additions and 318 deletions
+2 -2
View File
@@ -242,10 +242,10 @@ func (h *Dictionary) Path(c *gin.Context) {
httpx.Fail(c, "字典详情ID格式错误")
return
}
item, err := h.service.DictionaryDetail(c.Request.Context(), uint(id))
path, err := h.service.DictionaryPath(c.Request.Context(), uint(id))
if err != nil {
httpx.Fail(c, "获取失败")
return
}
httpx.Write(c, httpx.CodeSuccess, gin.H{"path": item.Path}, "获取成功")
httpx.Write(c, httpx.CodeSuccess, gin.H{"path": path}, "获取成功")
}