-- ============================================================
-- adminUI 总后台菜单补充 - 外呼租户定价管理(voiceApiTenant)
-- 挂载到 通信管理(2400) 分组下，在通话接口管理后面
-- ============================================================

-- 外呼租户定价管理 (menu_id=2414)
INSERT INTO fs_menu (menu_id, menu_name, parent_id, order_num, path, component, menu_type, icon, visible, status, is_frame, is_cache, create_by, create_time, remark)
VALUES (2414, '外呼租户定价', 2400, 3, 'voiceApiTenant', 'admin/voiceApiTenant/index', 'C', 'el-icon-money', '0', '0', 0, 0, 'admin', NOW(), '外呼接口-租户定价管理');

-- 外呼租户定价按钮权限
INSERT INTO fs_menu (menu_id, menu_name, parent_id, order_num, path, component, menu_type, perms, icon, visible, status, is_frame, is_cache, create_by, create_time)
VALUES
(24141, '定价查询', 2414, 1, '', '', 'F', 'company:companyVoiceApi:list', '#', '0', '0', 0, 0, 'admin', NOW()),
(24142, '定价编辑', 2414, 2, '', '', 'F', 'company:companyVoiceApi:edit', '#', '0', '0', 0, 0, 'admin', NOW());

-- 将新菜单关联到admin角色(role_id=1)
INSERT INTO fs_role_menu (role_id, menu_id) VALUES
(1, 2414),
(1, 24141),
(1, 24142);
