chore: track root project files and subrepos
This commit is contained in:
@@ -0,0 +1,10 @@
|
||||
-- =============================================================
|
||||
-- la_sms_upload 扩展来电记录字段
|
||||
-- 说明:
|
||||
-- 1. 保持短信验证码链路继续使用 type=1/2、status=0/1
|
||||
-- 2. 来电记录复用同表,type 使用 11/13/15 表示已接/未接/拒接
|
||||
-- 3. status=2 表示来电记录“不适用验证码状态”
|
||||
-- =============================================================
|
||||
|
||||
ALTER TABLE `la_sms_upload`
|
||||
MODIFY COLUMN `status` tinyint unsigned NOT NULL DEFAULT '0' COMMENT '0=待验证 1=已使用 2=不适用';
|
||||
@@ -0,0 +1,53 @@
|
||||
-- =============================================================
|
||||
-- APP 版本管理:建表 + 菜单 + 权限节点
|
||||
-- 表前缀:la_
|
||||
-- 说明:使用项目本身管理 APP 版本(替代 uni-admin 升级中心)
|
||||
-- =============================================================
|
||||
|
||||
-- ----------------------------
|
||||
-- 1. 创建版本管理表
|
||||
-- ----------------------------
|
||||
DROP TABLE IF EXISTS `la_app_version`;
|
||||
CREATE TABLE `la_app_version` (
|
||||
`id` int unsigned NOT NULL AUTO_INCREMENT,
|
||||
`version_name` varchar(32) NOT NULL DEFAULT '' COMMENT '版本号,如 1.0.12',
|
||||
`version_code` int unsigned NOT NULL DEFAULT 0 COMMENT '版本数字,如 1012',
|
||||
`min_version_code` int unsigned NOT NULL DEFAULT 0 COMMENT '原生最低版本号(wgt时使用,低于此值的整包不允许热更)',
|
||||
`platform` tinyint NOT NULL DEFAULT 1 COMMENT '平台 1=Android 2=iOS',
|
||||
`package_type` tinyint NOT NULL DEFAULT 1 COMMENT '包类型 1=wgt热更 2=apk整包 3=ipa/AppStore',
|
||||
`update_type` tinyint NOT NULL DEFAULT 1 COMMENT '升级类型 1=普通(可跳过) 2=强制 3=静默',
|
||||
`download_url` varchar(500) NOT NULL DEFAULT '' COMMENT '下载地址(wgt/apk链接 或 AppStore链接)',
|
||||
`title` varchar(100) NOT NULL DEFAULT '' COMMENT '更新标题',
|
||||
`update_content` text COMMENT '更新内容(支持换行)',
|
||||
`status` tinyint NOT NULL DEFAULT 1 COMMENT '状态 0=禁用 1=启用',
|
||||
`create_time` int unsigned DEFAULT NULL,
|
||||
`update_time` int unsigned DEFAULT NULL,
|
||||
`delete_time` int unsigned DEFAULT NULL,
|
||||
PRIMARY KEY (`id`),
|
||||
KEY `idx_platform_status` (`platform`, `status`),
|
||||
KEY `idx_version_code` (`version_code`)
|
||||
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COMMENT='APP版本管理';
|
||||
|
||||
|
||||
-- ----------------------------
|
||||
-- 2. 注册后台菜单(pid=158 应用管理)
|
||||
-- ----------------------------
|
||||
-- 父菜单:版本管理 (M)
|
||||
INSERT INTO `la_system_menu` (`id`, `pid`, `type`, `name`, `icon`, `paths`, `perms`, `component`, `selected`, `params`, `sort`, `is_cache`, `is_show`, `is_disable`, `create_time`, `update_time`)
|
||||
VALUES (542, 158, 'M', '版本管理', 'el-icon-Coin', 'version', '', '', '', '', 110, 0, 1, 0, UNIX_TIMESTAMP(), UNIX_TIMESTAMP());
|
||||
|
||||
-- 子菜单:版本列表 (C)
|
||||
INSERT INTO `la_system_menu` (`id`, `pid`, `type`, `name`, `icon`, `paths`, `perms`, `component`, `selected`, `params`, `sort`, `is_cache`, `is_show`, `is_disable`, `create_time`, `update_time`)
|
||||
VALUES (543, 542, 'C', '版本列表', 'el-icon-Document', 'lists', 'app.appVersion/lists', 'app/version/lists/index', '', '', 0, 0, 1, 0, UNIX_TIMESTAMP(), UNIX_TIMESTAMP());
|
||||
|
||||
-- 子菜单:版本添加/编辑 (C)(隐藏菜单,仅做路由)
|
||||
INSERT INTO `la_system_menu` (`id`, `pid`, `type`, `name`, `icon`, `paths`, `perms`, `component`, `selected`, `params`, `sort`, `is_cache`, `is_show`, `is_disable`, `create_time`, `update_time`)
|
||||
VALUES (544, 542, 'C', '版本添加/编辑', 'el-icon-Edit', 'lists/edit', 'app.appVersion/add:edit', 'app/version/lists/edit', 'version/lists', '', 0, 0, 0, 0, UNIX_TIMESTAMP(), UNIX_TIMESTAMP());
|
||||
|
||||
-- 权限节点:新增 / 编辑 / 删除 / 详情 / 修改状态
|
||||
INSERT INTO `la_system_menu` (`id`, `pid`, `type`, `name`, `icon`, `paths`, `perms`, `component`, `selected`, `params`, `sort`, `is_cache`, `is_show`, `is_disable`, `create_time`, `update_time`) VALUES
|
||||
(545, 543, 'A', '新增', '', '', 'app.appVersion/add', '', '', '', 0, 0, 1, 0, UNIX_TIMESTAMP(), UNIX_TIMESTAMP()),
|
||||
(546, 543, 'A', '编辑', '', '', 'app.appVersion/edit', '', '', '', 0, 0, 1, 0, UNIX_TIMESTAMP(), UNIX_TIMESTAMP()),
|
||||
(547, 543, 'A', '删除', '', '', 'app.appVersion/delete', '', '', '', 0, 0, 1, 0, UNIX_TIMESTAMP(), UNIX_TIMESTAMP()),
|
||||
(548, 543, 'A', '详情', '', '', 'app.appVersion/detail', '', '', '', 0, 0, 1, 0, UNIX_TIMESTAMP(), UNIX_TIMESTAMP()),
|
||||
(549, 543, 'A', '修改状态', '', '', 'app.appVersion/updateStatus', '', '', '', 0, 0, 1, 0, UNIX_TIMESTAMP(), UNIX_TIMESTAMP());
|
||||
@@ -0,0 +1,72 @@
|
||||
-- ============================================
|
||||
-- 联赛配置表 la_league
|
||||
-- 来源: 懂球帝 API /data/tab/list 接口
|
||||
-- ============================================
|
||||
|
||||
DROP TABLE IF EXISTS `la_league`;
|
||||
|
||||
CREATE TABLE `la_league` (
|
||||
`id` int unsigned NOT NULL AUTO_INCREMENT COMMENT '自增主键',
|
||||
`tab_id` int NOT NULL DEFAULT 0 COMMENT '懂球帝 tab ID(原始 id)',
|
||||
`league_id` int NOT NULL DEFAULT 0 COMMENT '懂球帝联赛 ID',
|
||||
`label` varchar(50) NOT NULL DEFAULT '' COMMENT '联赛显示名称',
|
||||
`type` varchar(50) NOT NULL DEFAULT '' COMMENT '类型标识: league/important/lottery',
|
||||
`sport_type` tinyint unsigned NOT NULL DEFAULT 1 COMMENT '运动类型: 1=足球 2=篮球 3=网球 4=电竞 5=综合',
|
||||
`api` varchar(500) NOT NULL DEFAULT '' COMMENT '懂球帝 API 地址',
|
||||
`icon` varchar(500) NOT NULL DEFAULT '' COMMENT '联赛图标 URL',
|
||||
`sort` int NOT NULL DEFAULT 0 COMMENT '排序权重(越小越靠前)',
|
||||
`is_show` tinyint unsigned NOT NULL DEFAULT 1 COMMENT '是否显示: 0=隐藏 1=显示',
|
||||
`extra_data` json DEFAULT NULL COMMENT '额外数据(如 calendar 等)',
|
||||
`create_time` int unsigned NOT NULL DEFAULT 0 COMMENT '创建时间',
|
||||
`update_time` int unsigned NOT NULL DEFAULT 0 COMMENT '更新时间',
|
||||
`delete_time` int unsigned DEFAULT NULL COMMENT '删除时间',
|
||||
PRIMARY KEY (`id`),
|
||||
UNIQUE KEY `uk_tab_id` (`tab_id`),
|
||||
KEY `idx_league_id` (`league_id`),
|
||||
KEY `idx_type` (`type`),
|
||||
KEY `idx_sort` (`sort`),
|
||||
KEY `idx_sport_type` (`sport_type`)
|
||||
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_general_ci COMMENT='联赛配置表';
|
||||
|
||||
|
||||
-- ============================================
|
||||
-- 插入数据
|
||||
-- ============================================
|
||||
|
||||
INSERT INTO `la_league` (`tab_id`, `league_id`, `label`, `type`, `sport_type`, `api`, `sort`, `is_show`, `extra_data`, `create_time`, `update_time`) VALUES
|
||||
-- === 聚合分类 ===
|
||||
(10, 0, '重要', 'important', 5, 'https://api.dongqiudi.com/data/tab/new/important', 278, 1, NULL, UNIX_TIMESTAMP(), UNIX_TIMESTAMP()),
|
||||
(12, 0, '全球', 'lottery', 5, 'https://api.dongqiudi.com/data/tab/new/lottery', 279, 1, NULL, UNIX_TIMESTAMP(), UNIX_TIMESTAMP()),
|
||||
(70, 0, '足球', 'important', 1, 'https://api.dongqiudi.com/data/tab/new/soccer', 281, 1, NULL, UNIX_TIMESTAMP(), UNIX_TIMESTAMP()),
|
||||
(69, 0, '篮球', 'important', 2, 'https://api.dongqiudi.com/data/tab/new/basketball', 282, 1, NULL, UNIX_TIMESTAMP(), UNIX_TIMESTAMP()),
|
||||
(107, 0, '网球', 'important', 3, 'https://api.dongqiudi.com/data/tab/new/tennis', 283, 1, '{"calendar":{"icon":"https://img1.dongqiudi.com/fastdfs7/M00/35/44/rBUC6GhrdLGANtZqAAAmY4Lwmkg879.png","scheme":"dongqiudi:///url/https://topic.dongqiudi.com/webapp/tennisCalendar/tennisCalendar.html"}}', UNIX_TIMESTAMP(), UNIX_TIMESTAMP()),
|
||||
(65, 0, '电竞', 'important', 4, 'https://api.dongqiudi.com/data/tab/new/esport', 284, 1, NULL, UNIX_TIMESTAMP(), UNIX_TIMESTAMP()),
|
||||
(106, 0, '体坛', 'important', 5, 'https://api.dongqiudi.com/data/tab/new/sport', 285, 1, NULL, UNIX_TIMESTAMP(), UNIX_TIMESTAMP()),
|
||||
|
||||
-- === 足球联赛 ===
|
||||
(5, 43, '中超', 'league', 1, 'https://api.dongqiudi.com/data/tab/league/new/43', 286, 1, NULL, UNIX_TIMESTAMP(), UNIX_TIMESTAMP()),
|
||||
(6, 4, '英超', 'league', 1, 'https://api.dongqiudi.com/data/tab/league/new/4', 287, 1, NULL, UNIX_TIMESTAMP(), UNIX_TIMESTAMP()),
|
||||
(8, 5, '德甲', 'league', 1, 'https://api.dongqiudi.com/data/tab/league/new/5', 288, 1, NULL, UNIX_TIMESTAMP(), UNIX_TIMESTAMP()),
|
||||
(7, 3, '西甲', 'league', 1, 'https://api.dongqiudi.com/data/tab/league/new/3', 289, 1, NULL, UNIX_TIMESTAMP(), UNIX_TIMESTAMP()),
|
||||
(9, 9, '意甲', 'league', 1, 'https://api.dongqiudi.com/data/tab/league/new/9', 290, 1, NULL, UNIX_TIMESTAMP(), UNIX_TIMESTAMP()),
|
||||
(30, 12, '法甲', 'league', 1, 'https://api.dongqiudi.com/data/tab/league/new/12', 291, 1, NULL, UNIX_TIMESTAMP(), UNIX_TIMESTAMP()),
|
||||
(31, 6, '欧冠', 'league', 1, 'https://api.dongqiudi.com/data/tab/league/new/6', 292, 1, NULL, UNIX_TIMESTAMP(), UNIX_TIMESTAMP()),
|
||||
(34, 14, '欧联', 'league', 1, 'https://api.dongqiudi.com/data/tab/league/new/14', 293, 1, NULL, UNIX_TIMESTAMP(), UNIX_TIMESTAMP()),
|
||||
(84, 3904, '欧协联', 'league', 1, 'https://api.dongqiudi.com/data/tab/league/new/3904', 294, 1, NULL, UNIX_TIMESTAMP(), UNIX_TIMESTAMP()),
|
||||
(105, 226, '亚冠精英', 'league', 1, 'https://api.dongqiudi.com/data/tab/league/new/226', 297, 1, NULL, UNIX_TIMESTAMP(), UNIX_TIMESTAMP()),
|
||||
(98, 257, '澳超', 'league', 1, 'https://api.dongqiudi.com/data/tab/league/new/257', 298, 1, NULL, UNIX_TIMESTAMP(), UNIX_TIMESTAMP()),
|
||||
(99, 197, '沙特联', 'league', 1, 'https://api.dongqiudi.com/data/tab/league/new/197', 299, 1, NULL, UNIX_TIMESTAMP(), UNIX_TIMESTAMP()),
|
||||
(100, 129, '中甲', 'league', 1, 'https://api.dongqiudi.com/data/tab/league/new/129', 300, 1, NULL, UNIX_TIMESTAMP(), UNIX_TIMESTAMP()),
|
||||
(101, 1535, '中乙', 'league', 1, 'https://api.dongqiudi.com/data/tab/league/new/1535', 301, 1, NULL, UNIX_TIMESTAMP(), UNIX_TIMESTAMP()),
|
||||
(111, 258, '世俱杯', 'league', 1, 'https://api.dongqiudi.com/data/tab/league/new/258', 302, 1, NULL, UNIX_TIMESTAMP(), UNIX_TIMESTAMP()),
|
||||
(113, 9930, '川超', 'league', 1, 'https://api.dongqiudi.com/data/tab/league/new/9930', 303, 1, NULL, UNIX_TIMESTAMP(), UNIX_TIMESTAMP()),
|
||||
(118, 10225,'滇超', 'league', 1, 'https://api.dongqiudi.com/data/tab/league/new/10225', 304, 1, NULL, UNIX_TIMESTAMP(), UNIX_TIMESTAMP()),
|
||||
(112, 8647, '苏超', 'league', 1, 'https://api.dongqiudi.com/data/tab/league/new/8647', 305, 1, NULL, UNIX_TIMESTAMP(), UNIX_TIMESTAMP()),
|
||||
(115, 8817, '赣超', 'league', 1, 'https://api.dongqiudi.com/data/tab/league/new/8817', 306, 1, NULL, UNIX_TIMESTAMP(), UNIX_TIMESTAMP()),
|
||||
(114, 9640, '湘超', 'league', 1, 'https://api.dongqiudi.com/data/tab/league/new/9640', 307, 1, NULL, UNIX_TIMESTAMP(), UNIX_TIMESTAMP()),
|
||||
(116, 9576, '内蒙超', 'league', 1, 'https://api.dongqiudi.com/data/tab/league/new/9576', 308, 1, NULL, UNIX_TIMESTAMP(), UNIX_TIMESTAMP()),
|
||||
(117, 9687, '齐鲁超', 'league', 1, 'https://api.dongqiudi.com/data/tab/league/new/9687', 309, 1, NULL, UNIX_TIMESTAMP(), UNIX_TIMESTAMP()),
|
||||
|
||||
-- === 篮球联赛 ===
|
||||
(68, 3010, 'NBA', 'league', 2, 'https://api.dongqiudi.com/data/tab/league/new/3010', 295, 1, NULL, UNIX_TIMESTAMP(), UNIX_TIMESTAMP()),
|
||||
(67, 3027, 'CBA', 'league', 2, 'https://api.dongqiudi.com/data/tab/league/new/3027', 296, 1, NULL, UNIX_TIMESTAMP(), UNIX_TIMESTAMP());
|
||||
Reference in New Issue
Block a user