feat: 网元参数配置可用属性数据用缓存

This commit is contained in:
TsMask committed 2024-06-26 10:20:35 +08:00
1 parent 0b4ca287ef
commit 93123fa686
4 files changed
+115 -1

No files matched your search

@@ -156,6 +156,20 @@ func (s *NeConfigController) Remove(c *gin.Context) {
c.JSON(200, result.OkMsg(msg))
}
// 网元参数配置可用属性值列表指定网元类型全部无分页
//
// GET /list/:neType
func (s *NeConfigController) ListByNeType(c *gin.Context) {
language := ctx.AcceptLanguage(c)
neType := c.Param("neType")
if neType == "" {
c.JSON(400, result.CodeMsg(400, i18n.TKey(language, "app.common.err400")))
return
}
data := s.neConfigService.SelectNeConfigByNeType(neType)
c.JSON(200, result.OkData(data))
}
// 网元参数配置数据信息
//
// GET /data