完成小程序直播添加相关功能

This commit is contained in:
xuwenbo
2020-08-11 11:25:52 +08:00
parent 61d5e010c9
commit 834b6128eb
22 changed files with 738 additions and 61 deletions

19
sql/menu.sql Normal file
View File

@ -0,0 +1,19 @@
/*
Navicat Premium Data Transfer
Source Server : 本地
Source Server Type : MySQL
Source Server Version : 50729
Source Host : localhost:3306
Source Schema : yshopb2c
Target Server Type : MySQL
Target Server Version : 50729
File Encoding : 65001
Date: 11/08/2020 11:23:45
*/
INSERT INTO `menu` VALUES (242, b'0', '直播管理', 'wechat/live/index', 48, 999, 'weixin', 'wxlive', b'0', b'0', 'Wxlive', '2020-08-10 17:20:54', NULL, 1, NULL, 0);

43
sql/yx_wechat_live.sql Normal file
View File

@ -0,0 +1,43 @@
/*
Navicat Premium Data Transfer
Source Server : 本地
Source Server Type : MySQL
Source Server Version : 50729
Source Host : localhost:3306
Source Schema : yshopb2c
Target Server Type : MySQL
Target Server Version : 50729
File Encoding : 65001
Date: 11/08/2020 11:22:41
*/
SET NAMES utf8mb4;
SET FOREIGN_KEY_CHECKS = 0;
-- ----------------------------
-- Table structure for yx_wechat_live
-- ----------------------------
DROP TABLE IF EXISTS `yx_wechat_live`;
CREATE TABLE `yx_wechat_live` (
`roomid` bigint(11) NOT NULL COMMENT '直播间id',
`name` varchar(255) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NOT NULL COMMENT '直播间标题',
`cover_imge` varchar(255) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NOT NULL COMMENT '背景图',
`share_imge` varchar(255) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NOT NULL COMMENT '分享图片',
`live_status` int(9) NULL DEFAULT NULL COMMENT '直播间状态',
`start_time` bigint(11) NOT NULL COMMENT '开始时间',
`end_time` bigint(11) NOT NULL COMMENT '预计结束时间',
`anchor_name` varchar(64) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NOT NULL COMMENT '主播昵称',
`anchor_wechat` varchar(32) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NOT NULL COMMENT '主播微信号',
`anchor_imge` varchar(255) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NULL DEFAULT NULL COMMENT '主播头像',
`type` tinyint(1) NOT NULL COMMENT '直播间类型 1推流 0手机直播',
`screen_type` tinyint(1) NOT NULL COMMENT '横屏、竖屏 【1横屏0竖屏】',
`close_like` tinyint(1) NOT NULL COMMENT '是否关闭点赞 【0开启1关闭】',
`close_comment` tinyint(1) NOT NULL COMMENT '是否关闭评论 【0开启1关闭】',
`close_goods` tinyint(1) NOT NULL COMMENT '是否关闭货架 【0开启1关闭】',
PRIMARY KEY (`roomid`) USING BTREE
) ENGINE = InnoDB CHARACTER SET = utf8mb4 COLLATE = utf8mb4_general_ci ROW_FORMAT = Dynamic;
SET FOREIGN_KEY_CHECKS = 1;