新增了针对 mac 地址屏蔽webui 导航栏的接口

This commit is contained in:
eafonyang
2026-10-10 17:11:54 +08:00
parent 0aad0f9c1d
commit 4711c262c9
9 changed files with 298 additions and 1 deletions
+37
View File
@@ -0,0 +1,37 @@
/*
Navicat Premium Dump SQL
Source Server : localhost
Source Server Type : MySQL
Source Server Version : 90600 (9.6.0)
Source Host : localhost:3306
Source Schema : audio
Target Server Type : MySQL
Target Server Version : 90600 (9.6.0)
File Encoding : 65001
Date: 09/10/2026 10:00:00
*/
SET NAMES utf8mb4;
SET FOREIGN_KEY_CHECKS = 0;
-- ----------------------------
-- Table structure for nav_hidden_config
-- 一行 = 一个 MAC 命中后要隐藏的固定导航入口,hidden_keys 为逗号分隔的 nav key
-- nav key 取值: community | hpEq | home | effects | myAi
-- mac 统一存储为大写冒号格式,如 40:D9:5A:D8:06:9C
-- ----------------------------
DROP TABLE IF EXISTS `nav_hidden_config`;
CREATE TABLE `nav_hidden_config` (
`id` int NOT NULL AUTO_INCREMENT,
`mac` varchar(100) CHARACTER SET utf8mb4 COLLATE utf8mb4_0900_ai_ci NOT NULL DEFAULT '',
`hidden_keys` varchar(255) CHARACTER SET utf8mb4 COLLATE utf8mb4_0900_ai_ci NOT NULL DEFAULT '',
`model` varchar(50) CHARACTER SET utf8mb4 COLLATE utf8mb4_0900_ai_ci NULL DEFAULT NULL,
`create_at` datetime NOT NULL DEFAULT CURRENT_TIMESTAMP,
PRIMARY KEY (`id`) USING BTREE,
INDEX `idx_mac`(`mac` ASC) USING BTREE
) ENGINE = InnoDB CHARACTER SET = utf8mb4 COLLATE = utf8mb4_0900_ai_ci ROW_FORMAT = DYNAMIC;
SET FOREIGN_KEY_CHECKS = 1;