1.设置设备查看权限(每个公司只能查看自己购买的设备,未完善)

2.添加设备信息模块,可以选择设备查看详情(未添加实时数据部分)
3.添加教学视频模块,拉取b站系列中的视频
4.初步调整ui
This commit is contained in:
2026-03-31 17:46:40 +08:00
parent 0e2d75c23c
commit 2b8d5cc126
334 changed files with 2303 additions and 28691 deletions

View File

@@ -0,0 +1,33 @@
-- ----------------------------
-- B站合集(Series/Season) 同步源配置表
-- 说明以UP主mid + season_id为主B站“合集/系列”常见公开接口形态)
-- ----------------------------
drop table if exists teaching_video_source;
create table teaching_video_source (
source_id bigint(20) not null auto_increment comment '源ID',
source_type varchar(32) not null comment '来源类型(BILIBILI)',
mid bigint(20) default null comment 'UP主mid',
season_id bigint(20) default null comment '合集/系列season_id',
category_code varchar(32) default 'BASIC' comment '落库分类(默认BASIC)',
enabled char(1) default '0' comment '启用(0启用 1停用)',
sort_num int(11) default 0 comment '排序',
last_sync_time datetime default null comment '最近同步时间',
last_sync_status char(1) default '0' comment '最近同步状态(0正常 1失败)',
last_sync_error varchar(500) default null comment '最近同步错误',
create_by varchar(64) default '' comment '创建者',
create_time datetime comment '创建时间',
update_by varchar(64) default '' comment '更新者',
update_time datetime comment '更新时间',
remark varchar(500) default null comment '备注',
primary key (source_id),
key idx_video_source_enabled (enabled),
key idx_video_source_sort (sort_num)
) engine=innodb auto_increment=1 comment = '教学视频外部源配置表';
-- 示例:请把 mid/season_id 替换为你公司维护的合集
insert into teaching_video_source
(source_type, mid, season_id, category_code, enabled, sort_num, create_by, create_time, remark)
values
('BILIBILI', 37974444, 240490, 'BASIC', '0', 10, 'admin', sysdate(), '示例同步B站合集(需替换mid/season_id)');