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

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

View File

@@ -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