优化
This commit is contained in:
@@ -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}, "获取成功")
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user