基于Java+SpringBoot+Vue摄影分享网站的设计与实现 前后端分离【Java毕业设计·文档报告·代码讲解·安装调试】
🍊作者:计算机编程-吉哥
🍊简介:专业从事JavaWeb程序开发,微信小程序开发,定制化项目、 源码、代码讲解、文档撰写、ppt制作。做自己喜欢的事,生活就是快乐的。
🍊心愿:点赞 👍 收藏 ⭐评论 📝
🍅 文末获取源码联系👇🏻 精彩专栏推荐订阅 👇🏻 不然下次找不到哟~
Java毕业设计项目~热门选题推荐《1000套》
技术选型
springboot、mybatisplus、vue、elementui、html、css、js、mysql、jdk1.8
数据库表结构
18张
开发工具
idea、navicat
⭐功能
【角色】
管理员、用户
【前台功能模块】
- 登录注册
- 首页
- 论坛
- 活动
- 公告资讯
- 图片素材
- 视频素材
- 个人中心
【后台功能模块】
- 登录
- 首页
- 个人中心
- 管理员管理
- 用户管理
- 图片素材管理
- 视频素材管理
- 活动管理
- 活动报名管理
- 基础数据管理
- 论坛管理
- 公告资讯管理
- 轮播图信息
🏆项目演示截图
1、前台-登录
2、前台-首页
3、前台-视频素材
4、前台-论坛
5、前台-帖子发布
6、前台-活动报名
7、前台-公告资讯
8、前台-图片素材
9、后台-登录
10、后台-用户管理
11、后台-图片素材管理
12、后台-视频素材管理
13、后台-活动报名管理
数据库文件设计
CREATE DATABASE /*!32312 IF NOT EXISTS*/`youguangsheyingwz` /*!40100 DEFAULT CHARACTER SET utf8 */;USE `youguangsheyingwz`;/*Table structure for table `config` */DROP TABLE IF EXISTS `config`;CREATE TABLE `config` (`id` bigint(20) NOT NULL AUTO_INCREMENT COMMENT '主键',`name` varchar(100) DEFAULT NULL COMMENT '配置参数名称',`value` varchar(100) DEFAULT NULL COMMENT '配置参数值',PRIMARY KEY (`id`)
) ENGINE=InnoDB AUTO_INCREMENT=4 DEFAULT CHARSET=utf8 COMMENT='配置文件';/*Data for the table `config` */insert into `config`(`id`,`name`,`value`) values (1,'轮播图1','upload/config1.jpg'),(2,'轮播图2','upload/config2.jpg'),(3,'轮播图3','upload/config3.jpg');/*Table structure for table `dictionary` */DROP TABLE IF EXISTS `dictionary`;CREATE TABLE `dictionary` (`id` bigint(20) NOT NULL AUTO_INCREMENT COMMENT '主键',`dic_code` varchar(200) DEFAULT NULL COMMENT '字段',`dic_name` varchar(200) DEFAULT NULL COMMENT '字段名',`code_index` int(11) DEFAULT NULL COMMENT '编码',`index_name` varchar(200) DEFAULT NULL COMMENT '编码名字 Search111 ',`super_id` int(11) DEFAULT NULL COMMENT '父字段id',`beizhu` varchar(200) DEFAULT NULL COMMENT '备注',`create_time` timestamp NULL DEFAULT NULL COMMENT '创建时间',PRIMARY KEY (`id`)
) ENGINE=InnoDB AUTO_INCREMENT=29 DEFAULT CHARSET=utf8 COMMENT='字典';/*Data for the table `dictionary` */insert into `dictionary`(`id`,`dic_code`,`dic_name`,`code_index`,`index_name`,`super_id`,`beizhu`,`create_time`) values (1,'sucaishipin_types','视频素材类型',1,'视频素材类型1',NULL,NULL,'2023-03-31 09:43:42'),(2,'sucaishipin_types','视频素材类型',2,'视频素材类型2',NULL,NULL,'2023-03-31 09:43:42'),(3,'sucaishipin_types','视频素材类型',3,'视频素材类型3',NULL,NULL,'2023-03-31 09:43:42'),(4,'sucaishipin_collection_types','收藏表类型',1,'收藏',NULL,NULL,'2023-03-31 09:43:42'),(5,'sucaishipin_collection_types','收藏表类型',2,'赞',NULL,NULL,'2023-03-31 09:43:42'),(6,'sucaishipin_collection_types','收藏表类型',3,'踩',NULL,NULL,'2023-03-31 09:43:42'),(7,'sucai_types','图片素材类型',1,'图片素材类型1',NULL,NULL,'2023-03-31 09:43:42'),(8,'sucai_types','图片素材类型',2,'图片素材类型2',NULL,NULL,'2023-03-31 09:43:42'),(9,'sucai_types','图片素材类型',3,'图片素材类型3',NULL,NULL,'2023-03-31 09:43:42'),(10,'sucai_collection_types','收藏表类型',1,'收藏',NULL,NULL,'2023-03-31 09:43:42'),(11,'sucai_collection_types','收藏表类型',2,'赞',NULL,NULL,'2023-03-31 09:43:42'),(12,'sucai_collection_types','收藏表类型',3,'踩',NULL,NULL,'2023-03-31 09:43:42'),(13,'huodong_types','活动类型',1,'活动类型1',NULL,NULL,'2023-03-31 09:43:42'),(14,'huodong_types','活动类型',2,'活动类型2',NULL,NULL,'2023-03-31 09:43:42'),(15,'huodong_types','活动类型',3,'活动类型3',NULL,NULL,'2023-03-31 09:43:42'),(16,'huodong_collection_types','收藏表类型',1,'收藏',NULL,NULL,'2023-03-31 09:43:42'),(17,'huodong_collection_types','收藏表类型',2,'赞',NULL,NULL,'2023-03-31 09:43:42'),(18,'huodong_collection_types','收藏表类型',3,'踩',NULL,NULL,'2023-03-31 09:43:42'),(19,'huodong_yuyue_yesno_types','报名状态',1,'待审核',NULL,NULL,'2023-03-31 09:43:42'),(20,'huodong_yuyue_yesno_types','报名状态',2,'同意',NULL,NULL,'2023-03-31 09:43:42'),(21,'huodong_yuyue_yesno_types','报名状态',3,'拒绝',NULL,NULL,'2023-03-31 09:43:42'),(22,'news_types','公告类型',1,'公告类型1',NULL,NULL,'2023-03-31 09:43:42'),(23,'news_types','公告类型',2,'公告类型2',NULL,NULL,'2023-03-31 09:43:42'),(24,'news_types','公告类型',3,'公告类型3',NULL,NULL,'2023-03-31 09:43:42'),(25,'sex_types','性别类型',1,'男',NULL,NULL,'2023-03-31 09:43:42'),(26,'sex_types','性别类型',2,'女',NULL,NULL,'2023-03-31 09:43:43'),(27,'forum_state_types','帖子状态',1,'发帖',NULL,NULL,'2023-03-31 09:43:43'),(28,'forum_state_types','帖子状态',2,'回帖',NULL,NULL,'2023-03-31 09:43:43');/*Table structure for table `forum` */DROP TABLE IF EXISTS `forum`;CREATE TABLE `forum` (`id` int(11) NOT NULL AUTO_INCREMENT COMMENT '主键',`forum_name` varchar(200) DEFAULT NULL COMMENT '帖子标题 Search111 ',`yonghu_id` int(11) DEFAULT NULL COMMENT '用户',`users_id` int(11) DEFAULT NULL COMMENT '管理员',`forum_content` longtext COMMENT '发布内容',`super_ids` int(11) DEFAULT NULL COMMENT '父id',`forum_state_types` int(11) DEFAULT NULL COMMENT '帖子状态',`insert_time` timestamp NULL DEFAULT NULL COMMENT '发帖时间',`update_time` timestamp NULL DEFAULT NULL COMMENT '修改时间',`create_time` timestamp NULL DEFAULT NULL COMMENT '创建时间 show2',PRIMARY KEY (`id`)
) ENGINE=InnoDB AUTO_INCREMENT=17 DEFAULT CHARSET=utf8 COMMENT='论坛';/*Data for the table `forum` */insert into `forum`(`id`,`forum_name`,`yonghu_id`,`users_id`,`forum_content`,`super_ids`,`forum_state_types`,`insert_time`,`update_time`,`create_time`) values (1,'帖子标题1',1,NULL,'发布内容1',45,1,'2023-03-31 09:47:09','2023-03-31 09:47:09','2023-03-31 09:47:09'),(2,'帖子标题2',3,NULL,'发布内容2',8,1,'2023-03-31 09:47:09','2023-03-31 09:47:09','2023-03-31 09:47:09'),(3,'帖子标题3',1,NULL,'发布内容3',171,1,'2023-03-31 09:47:09','2023-03-31 09:47:09','2023-03-31 09:47:09'),(4,'帖子标题4',2,NULL,'发布内容4',122,1,'2023-03-31 09:47:09','2023-03-31 09:47:09','2023-03-31 09:47:09'),(5,'帖子标题5',2,NULL,'发布内容5',410,1,'2023-03-31 09:47:09','2023-03-31 09:47:09','2023-03-31 09:47:09'),(6,'帖子标题6',3,NULL,'发布内容6',31,1,'2023-03-31 09:47:09','2023-03-31 09:47:09','2023-03-31 09:47:09'),(7,'帖子标题7',2,NULL,'发布内容7',106,1,'2023-03-31 09:47:09','2023-03-31 09:47:09','2023-03-31 09:47:09'),(8,'帖子标题8',2,NULL,'发布内容8',401,1,'2023-03-31 09:47:09','2023-03-31 09:47:09','2023-03-31 09:47:09'),(9,'帖子标题9',2,NULL,'发布内容9',167,1,'2023-03-31 09:47:09','2023-03-31 09:47:09','2023-03-31 09:47:09'),(10,'帖子标题10',1,NULL,'发布内容10',448,1,'2023-03-31 09:47:09','2023-03-31 09:47:09','2023-03-31 09:47:09'),(11,'帖子标题11',1,NULL,'发布内容11',70,1,'2023-03-31 09:47:09','2023-03-31 09:47:09','2023-03-31 09:47:09'),(12,'帖子标题12',1,NULL,'发布内容12',13,1,'2023-03-31 09:47:09','2023-03-31 09:47:09','2023-03-31 09:47:09'),(13,'帖子标题13',3,NULL,'发布内容13',63,1,'2023-03-31 09:47:09','2023-03-31 09:47:09','2023-03-31 09:47:09'),(14,'帖子标题14',2,NULL,'发布内容14',98,1,'2023-03-31 09:47:09','2023-03-31 09:47:09','2023-03-31 09:47:09'),(15,NULL,1,NULL,'登录后才可以查看数据详情页 和留言收藏点赞等操作',14,2,'2023-03-31 10:06:29',NULL,'2023-03-31 10:06:29'),(16,NULL,NULL,1,'222222222222222222222',14,2,'2023-03-31 10:09:12',NULL,'2023-03-31 10:09:12');/*Table structure for table `huodong` */DROP TABLE IF EXISTS `huodong`;CREATE TABLE `huodong` (`id` int(11) NOT NULL AUTO_INCREMENT COMMENT '主键 ',`huodong_uuid_number` varchar(200) DEFAULT NULL COMMENT '活动编号',`huodong_name` varchar(200) DEFAULT NULL COMMENT '活动标题 Search111 ',`huodong_photo` varchar(200) DEFAULT NULL COMMENT '活动封面',`huodong_types` int(11) DEFAULT NULL COMMENT '活动类型 Search111',`huodong_clicknum` int(11) DEFAULT NULL COMMENT '活动热度',`zan_number` int(11) DEFAULT NULL COMMENT '赞',`cai_number` int(11) DEFAULT NULL COMMENT '踩',`huodong_content` longtext COMMENT '活动介绍 ',`huodong_delete` int(11) DEFAULT NULL COMMENT '逻辑删除',`insert_time` timestamp NULL DEFAULT NULL COMMENT '录入时间',`create_time` timestamp NULL DEFAULT NULL COMMENT '创建时间 show1 show2 photoShow',PRIMARY KEY (`id`)
) ENGINE=InnoDB AUTO_INCREMENT=15 DEFAULT CHARSET=utf8 COMMENT='活动';/*Data for the table `huodong` */insert into `huodong`(`id`,`huodong_uuid_number`,`huodong_name`,`huodong_photo`,`huodong_types`,`huodong_clicknum`,`zan_number`,`cai_number`,`huodong_content`,`huodong_delete`,`insert_time`,`create_time`) values (1,'1680227229952','活动标题1','upload/huodong1.jpg',3,166,257,471,'活动介绍1',1,'2023-03-31 09:47:09','2023-03-31 09:47:09'),(2,'1680227229991','活动标题2','upload/huodong2.jpg',2,382,95,252,'活动介绍2',1,'2023-03-31 09:47:09','2023-03-31 09:47:09'),(3,'1680227229911','活动标题3','upload/huodong3.jpg',2,414,359,167,'活动介绍3',1,'2023-03-31 09:47:09','2023-03-31 09:47:09'),(4,'1680227229939','活动标题4','upload/huodong4.jpg',3,370,167,135,'活动介绍4',1,'2023-03-31 09:47:09','2023-03-31 09:47:09'),(5,'1680227229940','活动标题5','upload/huodong5.jpg',1,336,41,318,'活动介绍5',1,'2023-03-31 09:47:09','2023-03-31 09:47:09'),(6,'1680227229983','活动标题6','upload/huodong6.jpg',3,26,499,348,'活动介绍6',1,'2023-03-31 09:47:09','2023-03-31 09:47:09'),(7,'1680227229997','活动标题7','upload/huodong7.jpg',2,413,87,421,'活动介绍7',1,'2023-03-31 09:47:09','2023-03-31 09:47:09'),(8,'1680227229983','活动标题8','upload/huodong8.jpg',2,208,31,338,'活动介绍8',1,'2023-03-31 09:47:09','2023-03-31 09:47:09'),(9,'1680227229954','活动标题9','upload/huodong9.jpg',1,324,242,177,'活动介绍9',1,'2023-03-31 09:47:09','2023-03-31 09:47:09'),(10,'1680227229956','活动标题10','upload/huodong10.jpg',3,412,302,300,'活动介绍10',1,'2023-03-31 09:47:09','2023-03-31 09:47:09'),(11,'1680227229925','活动标题11','upload/huodong11.jpg',3,54,84,33,'活动介绍11',1,'2023-03-31 09:47:09','2023-03-31 09:47:09'),(12,'1680227229947','活动标题12','upload/huodong12.jpg',3,233,261,93,'活动介绍12',1,'2023-03-31 09:47:09','2023-03-31 09:47:09'),(13,'1680227229918','活动标题13','upload/huodong13.jpg',1,67,21,88,'活动介绍13',1,'2023-03-31 09:47:09','2023-03-31 09:47:09'),(14,'1680227229989','活动标题14','upload/huodong14.jpg',2,432,40,416,'活动介绍14',1,'2023-03-31 09:47:09','2023-03-31 09:47:09');/*Table structure for table `huodong_collection` */DROP TABLE IF EXISTS `huodong_collection`;CREATE TABLE `huodong_collection` (`id` int(11) NOT NULL AUTO_INCREMENT COMMENT '主键',`huodong_id` int(11) DEFAULT NULL COMMENT '活动',`yonghu_id` int(11) DEFAULT NULL COMMENT '用户',`huodong_collection_types` int(11) DEFAULT NULL COMMENT '类型',`insert_time` timestamp NULL DEFAULT NULL COMMENT '收藏时间',`create_time` timestamp NULL DEFAULT NULL COMMENT '创建时间 show3 photoShow',PRIMARY KEY (`id`)
) ENGINE=InnoDB AUTO_INCREMENT=16 DEFAULT CHARSET=utf8 COMMENT='活动收藏';/*Data for the table `huodong_collection` */insert into `huodong_collection`(`id`,`huodong_id`,`yonghu_id`,`huodong_collection_types`,`insert_time`,`create_time`) values (1,1,3,1,'2023-03-31 09:47:09','2023-03-31 09:47:09'),(2,2,2,1,'2023-03-31 09:47:09','2023-03-31 09:47:09'),(3,3,2,1,'2023-03-31 09:47:09','2023-03-31 09:47:09'),(4,4,3,1,'2023-03-31 09:47:09','2023-03-31 09:47:09'),(5,5,2,1,'2023-03-31 09:47:09','2023-03-31 09:47:09'),(7,7,1,1,'2023-03-31 09:47:09','2023-03-31 09:47:09'),(8,8,1,1,'2023-03-31 09:47:09','2023-03-31 09:47:09'),(9,9,1,1,'2023-03-31 09:47:09','2023-03-31 09:47:09'),(10,10,3,1,'2023-03-31 09:47:09','2023-03-31 09:47:09'),(11,11,3,1,'2023-03-31 09:47:09','2023-03-31 09:47:09'),(12,12,2,1,'2023-03-31 09:47:09','2023-03-31 09:47:09'),(13,13,2,1,'2023-03-31 09:47:09','2023-03-31 09:47:09'),(14,14,1,1,'2023-03-31 09:47:09','2023-03-31 09:47:09'),(15,14,1,3,'2023-03-31 10:06:50','2023-03-31 10:06:50');/*Table structure for table `huodong_liuyan` */DROP TABLE IF EXISTS `huodong_liuyan`;CREATE TABLE `huodong_liuyan` (`id` int(11) NOT NULL AUTO_INCREMENT COMMENT '主键',`huodong_id` int(11) DEFAULT NULL COMMENT '活动',`yonghu_id` int(11) DEFAULT NULL COMMENT '用户',`huodong_liuyan_text` longtext COMMENT '留言内容',`insert_time` timestamp NULL DEFAULT NULL COMMENT '留言时间',`reply_text` longtext COMMENT '回复内容',`update_time` timestamp NULL DEFAULT NULL COMMENT '回复时间',`create_time` timestamp NULL DEFAULT NULL COMMENT '创建时间 show3 listShow',PRIMARY KEY (`id`)
) ENGINE=InnoDB AUTO_INCREMENT=15 DEFAULT CHARSET=utf8 COMMENT='活动留言';/*Data for the table `huodong_liuyan` */insert into `huodong_liuyan`(`id`,`huodong_id`,`yonghu_id`,`huodong_liuyan_text`,`insert_time`,`reply_text`,`update_time`,`create_time`) values (1,1,3,'留言内容1','2023-03-31 09:47:09','回复信息1','2023-03-31 09:47:09','2023-03-31 09:47:09'),(2,2,1,'留言内容2','2023-03-31 09:47:09','回复信息2','2023-03-31 09:47:09','2023-03-31 09:47:09'),(3,3,1,'留言内容3','2023-03-31 09:47:09','回复信息3','2023-03-31 09:47:09','2023-03-31 09:47:09'),(4,4,2,'留言内容4','2023-03-31 09:47:09','回复信息4','2023-03-31 09:47:09','2023-03-31 09:47:09'),(5,5,3,'留言内容5','2023-03-31 09:47:09','回复信息5','2023-03-31 09:47:09','2023-03-31 09:47:09'),(6,6,1,'留言内容6','2023-03-31 09:47:09','回复信息6','2023-03-31 09:47:09','2023-03-31 09:47:09'),(7,7,2,'留言内容7','2023-03-31 09:47:09','回复信息7','2023-03-31 09:47:09','2023-03-31 09:47:09'),(8,8,3,'留言内容8','2023-03-31 09:47:09','回复信息8','2023-03-31 09:47:09','2023-03-31 09:47:09'),(9,9,3,'留言内容9','2023-03-31 09:47:09','回复信息9','2023-03-31 09:47:09','2023-03-31 09:47:09'),(10,10,1,'留言内容10','2023-03-31 09:47:09','回复信息10','2023-03-31 09:47:09','2023-03-31 09:47:09'),(11,11,2,'留言内容11','2023-03-31 09:47:09','回复信息11','2023-03-31 09:47:09','2023-03-31 09:47:09'),(12,12,2,'留言内容12','2023-03-31 09:47:09','回复信息12','2023-03-31 09:47:09','2023-03-31 09:47:09'),(13,13,3,'留言内容13','2023-03-31 09:47:09','回复信息13','2023-03-31 09:47:09','2023-03-31 09:47:09'),(14,14,3,'留言内容14','2023-03-31 09:47:09','回复信息14','2023-03-31 09:47:09','2023-03-31 09:47:09');/*Table structure for table `huodong_yuyue` */DROP TABLE IF EXISTS `huodong_yuyue`;CREATE TABLE `huodong_yuyue` (`id` int(11) NOT NULL AUTO_INCREMENT COMMENT '主键',`huodong_yuyue_uuid_number` varchar(200) DEFAULT NULL COMMENT '报名编号 Search111 ',`huodong_id` int(11) DEFAULT NULL COMMENT '活动',`yonghu_id` int(11) DEFAULT NULL COMMENT '用户',`huodong_yuyue_text` longtext COMMENT '报名理由',`huodong_yuyue_yesno_types` int(11) DEFAULT NULL COMMENT '报名状态 Search111 ',`huodong_yuyue_yesno_text` longtext COMMENT '审核回复',`huodong_yuyue_shenhe_time` timestamp NULL DEFAULT NULL COMMENT '审核时间',`insert_time` timestamp NULL DEFAULT NULL COMMENT '报名时间',`create_time` timestamp NULL DEFAULT NULL COMMENT '创建时间 show3 listShow',PRIMARY KEY (`id`)
) ENGINE=InnoDB AUTO_INCREMENT=16 DEFAULT CHARSET=utf8 COMMENT='活动报名';/*Data for the table `huodong_yuyue` */insert into `huodong_yuyue`(`id`,`huodong_yuyue_uuid_number`,`huodong_id`,`yonghu_id`,`huodong_yuyue_text`,`huodong_yuyue_yesno_types`,`huodong_yuyue_yesno_text`,`huodong_yuyue_shenhe_time`,`insert_time`,`create_time`) values (1,'1680227229976',1,1,'报名理由1',1,NULL,NULL,'2023-03-31 09:47:09','2023-03-31 09:47:09'),(2,'1680227229978',2,3,'报名理由2',1,NULL,NULL,'2023-03-31 09:47:09','2023-03-31 09:47:09'),(3,'1680227229970',3,1,'报名理由3',1,NULL,NULL,'2023-03-31 09:47:09','2023-03-31 09:47:09'),(4,'1680227229975',4,2,'报名理由4',1,NULL,NULL,'2023-03-31 09:47:09','2023-03-31 09:47:09'),(5,'1680227229994',5,2,'报名理由5',1,NULL,NULL,'2023-03-31 09:47:09','2023-03-31 09:47:09'),(6,'1680227229957',6,3,'报名理由6',1,NULL,NULL,'2023-03-31 09:47:09','2023-03-31 09:47:09'),(7,'1680227229982',7,3,'报名理由7',1,NULL,NULL,'2023-03-31 09:47:09','2023-03-31 09:47:09'),(8,'1680227229967',8,1,'报名理由8',1,NULL,NULL,'2023-03-31 09:47:09','2023-03-31 09:47:09'),(9,'1680227229992',9,1,'报名理由9',1,NULL,NULL,'2023-03-31 09:47:09','2023-03-31 09:47:09'),(10,'1680227229979',10,2,'报名理由10',1,NULL,NULL,'2023-03-31 09:47:09','2023-03-31 09:47:09'),(11,'1680227229940',11,3,'报名理由11',3,'2','2023-03-31 10:02:49','2023-03-31 09:47:09','2023-03-31 09:47:09'),(12,'1680227229990',12,1,'报名理由12',3,'2','2023-03-31 10:02:42','2023-03-31 09:47:09','2023-03-31 09:47:09'),(13,'1680227229941',13,1,'报名理由13',2,'1','2023-03-31 10:02:38','2023-03-31 09:47:09','2023-03-31 09:47:09'),(14,'1680227229928',14,1,'报名理由14',2,'123','2023-03-31 10:02:33','2023-03-31 09:47:09','2023-03-31 09:47:09'),(15,'1680228402624',2,1,'1111111',2,'同意111111','2023-03-31 10:08:57','2023-03-31 10:06:43','2023-03-31 10:06:43');/*Table structure for table `news` */DROP TABLE IF EXISTS `news`;CREATE TABLE `news` (`id` int(11) NOT NULL AUTO_INCREMENT COMMENT '主键',`news_name` varchar(200) DEFAULT NULL COMMENT '公告标题 Search111 ',`news_types` int(11) DEFAULT NULL COMMENT '公告类型 Search111 ',`news_photo` varchar(200) DEFAULT NULL COMMENT '公告图片',`insert_time` timestamp NULL DEFAULT NULL COMMENT '添加时间',`news_content` longtext COMMENT '公告详情',`create_time` timestamp NULL DEFAULT NULL COMMENT '创建时间 show1 show2 nameShow',PRIMARY KEY (`id`)
) ENGINE=InnoDB AUTO_INCREMENT=15 DEFAULT CHARSET=utf8 COMMENT='公告资讯';/*Data for the table `news` */insert into `news`(`id`,`news_name`,`news_types`,`news_photo`,`insert_time`,`news_content`,`create_time`) values (1,'公告标题1',3,'upload/news1.jpg','2023-03-31 09:47:09','公告详情1','2023-03-31 09:47:09'),(2,'公告标题2',3,'upload/news2.jpg','2023-03-31 09:47:09','公告详情2','2023-03-31 09:47:09'),(3,'公告标题3',2,'upload/news3.jpg','2023-03-31 09:47:09','公告详情3','2023-03-31 09:47:09'),(4,'公告标题4',1,'upload/news4.jpg','2023-03-31 09:47:09','公告详情4','2023-03-31 09:47:09'),(5,'公告标题5',2,'upload/news5.jpg','2023-03-31 09:47:09','公告详情5','2023-03-31 09:47:09'),(6,'公告标题6',3,'upload/news6.jpg','2023-03-31 09:47:09','公告详情6','2023-03-31 09:47:09'),(7,'公告标题7',1,'upload/news7.jpg','2023-03-31 09:47:09','公告详情7','2023-03-31 09:47:09'),(8,'公告标题8',1,'upload/news8.jpg','2023-03-31 09:47:09','公告详情8','2023-03-31 09:47:09'),(9,'公告标题9',2,'upload/news9.jpg','2023-03-31 09:47:09','公告详情9','2023-03-31 09:47:09'),(10,'公告标题10',2,'upload/news10.jpg','2023-03-31 09:47:09','公告详情10','2023-03-31 09:47:09'),(11,'公告标题11',1,'upload/news11.jpg','2023-03-31 09:47:09','公告详情11','2023-03-31 09:47:09'),(12,'公告标题12',2,'upload/news12.jpg','2023-03-31 09:47:09','公告详情12','2023-03-31 09:47:09'),(13,'公告标题13',1,'upload/news13.jpg','2023-03-31 09:47:09','公告详情13','2023-03-31 09:47:09'),(14,'公告标题14',1,'upload/news14.jpg','2023-03-31 09:47:09','公告详情14','2023-03-31 09:47:09');/*Table structure for table `sucai` */DROP TABLE IF EXISTS `sucai`;CREATE TABLE `sucai` (`id` int(11) NOT NULL AUTO_INCREMENT COMMENT '主键 ',`sucai_uuid_number` varchar(200) DEFAULT NULL COMMENT '图片素材编号',`sucai_name` varchar(200) DEFAULT NULL COMMENT '图片素材名称 Search111 ',`sucai_photo` varchar(200) DEFAULT NULL COMMENT '图片素材照片',`sucai_file` varchar(200) DEFAULT NULL COMMENT '图片素材',`sucai_types` int(11) DEFAULT NULL COMMENT '图片素材类型 Search111',`sucai_clicknum` int(11) DEFAULT NULL COMMENT '图片素材热度',`zan_number` int(11) DEFAULT NULL COMMENT '赞',`cai_number` int(11) DEFAULT NULL COMMENT '踩',`sucai_content` longtext COMMENT '图片素材介绍 ',`sucai_delete` int(11) DEFAULT NULL COMMENT '逻辑删除',`insert_time` timestamp NULL DEFAULT NULL COMMENT '录入时间',`create_time` timestamp NULL DEFAULT NULL COMMENT '创建时间 show1 show2 photoShow',PRIMARY KEY (`id`)
) ENGINE=InnoDB AUTO_INCREMENT=15 DEFAULT CHARSET=utf8 COMMENT='图片素材';/*Data for the table `sucai` */insert into `sucai`(`id`,`sucai_uuid_number`,`sucai_name`,`sucai_photo`,`sucai_file`,`sucai_types`,`sucai_clicknum`,`zan_number`,`cai_number`,`sucai_content`,`sucai_delete`,`insert_time`,`create_time`) values (1,'1680227229999','图片素材名称1','upload/sucai1.jpg','upload/file.rar',1,141,376,470,'图片素材介绍1',1,'2023-03-31 09:47:09','2023-03-31 09:47:09'),(2,'1680227229928','图片素材名称2','upload/sucai2.jpg','upload/file.rar',2,374,81,487,'图片素材介绍2',1,'2023-03-31 09:47:09','2023-03-31 09:47:09'),(3,'1680227229962','图片素材名称3','upload/sucai3.jpg','upload/file.rar',1,485,275,24,'图片素材介绍3',1,'2023-03-31 09:47:09','2023-03-31 09:47:09'),(4,'1680227230008','图片素材名称4','upload/sucai4.jpg','upload/file.rar',2,321,233,42,'图片素材介绍4',1,'2023-03-31 09:47:09','2023-03-31 09:47:09'),(5,'1680227229933','图片素材名称5','upload/sucai5.jpg','upload/file.rar',2,383,170,207,'图片素材介绍5',1,'2023-03-31 09:47:09','2023-03-31 09:47:09'),(6,'1680227229945','图片素材名称6','upload/sucai6.jpg','upload/file.rar',3,464,102,248,'图片素材介绍6',1,'2023-03-31 09:47:09','2023-03-31 09:47:09'),(7,'1680227229969','图片素材名称7','upload/sucai7.jpg','upload/file.rar',3,336,425,123,'图片素材介绍7',1,'2023-03-31 09:47:09','2023-03-31 09:47:09'),(8,'1680227229961','图片素材名称8','upload/sucai8.jpg','upload/file.rar',3,389,315,461,'图片素材介绍8',1,'2023-03-31 09:47:09','2023-03-31 09:47:09'),(9,'1680227230000','图片素材名称9','upload/sucai9.jpg','upload/file.rar',3,24,158,300,'图片素材介绍9',1,'2023-03-31 09:47:09','2023-03-31 09:47:09'),(10,'1680227229998','图片素材名称10','upload/sucai10.jpg','upload/file.rar',2,372,40,414,'图片素材介绍10',1,'2023-03-31 09:47:09','2023-03-31 09:47:09'),(11,'1680227229949','图片素材名称11','upload/sucai11.jpg','upload/file.rar',2,393,203,261,'图片素材介绍11',1,'2023-03-31 09:47:09','2023-03-31 09:47:09'),(12,'1680227229987','图片素材名称12','upload/sucai12.jpg','upload/file.rar',1,239,292,495,'图片素材介绍12',1,'2023-03-31 09:47:09','2023-03-31 09:47:09'),(13,'1680227230004','图片素材名称13','upload/sucai13.jpg','upload/file.rar',3,254,38,86,'图片素材介绍13',1,'2023-03-31 09:47:09','2023-03-31 09:47:09'),(14,'1680227229995','图片素材名称14','upload/sucai14.jpg','upload/file.rar',3,5,188,493,'图片素材介绍14',1,'2023-03-31 09:47:09','2023-03-31 09:47:09');/*Table structure for table `sucai_collection` */DROP TABLE IF EXISTS `sucai_collection`;CREATE TABLE `sucai_collection` (`id` int(11) NOT NULL AUTO_INCREMENT COMMENT '主键',`sucai_id` int(11) DEFAULT NULL COMMENT '图片素材',`yonghu_id` int(11) DEFAULT NULL COMMENT '用户',`sucai_collection_types` int(11) DEFAULT NULL COMMENT '类型',`insert_time` timestamp NULL DEFAULT NULL COMMENT '收藏时间',`create_time` timestamp NULL DEFAULT NULL COMMENT '创建时间 show3 photoShow',PRIMARY KEY (`id`)
) ENGINE=InnoDB AUTO_INCREMENT=16 DEFAULT CHARSET=utf8 COMMENT='图片素材收藏';/*Data for the table `sucai_collection` */insert into `sucai_collection`(`id`,`sucai_id`,`yonghu_id`,`sucai_collection_types`,`insert_time`,`create_time`) values (1,1,3,1,'2023-03-31 09:47:09','2023-03-31 09:47:09'),(2,2,2,1,'2023-03-31 09:47:09','2023-03-31 09:47:09'),(3,3,2,1,'2023-03-31 09:47:09','2023-03-31 09:47:09'),(4,4,3,1,'2023-03-31 09:47:09','2023-03-31 09:47:09'),(5,5,1,1,'2023-03-31 09:47:09','2023-03-31 09:47:09'),(6,6,2,1,'2023-03-31 09:47:09','2023-03-31 09:47:09'),(8,8,3,1,'2023-03-31 09:47:09','2023-03-31 09:47:09'),(9,9,3,1,'2023-03-31 09:47:09','2023-03-31 09:47:09'),(10,10,3,1,'2023-03-31 09:47:09','2023-03-31 09:47:09'),(11,11,2,1,'2023-03-31 09:47:09','2023-03-31 09:47:09'),(12,12,2,1,'2023-03-31 09:47:09','2023-03-31 09:47:09'),(13,13,3,1,'2023-03-31 09:47:09','2023-03-31 09:47:09'),(14,14,2,1,'2023-03-31 09:47:09','2023-03-31 09:47:09'),(15,11,1,2,'2023-03-31 10:07:13','2023-03-31 10:07:13');/*Table structure for table `sucai_liuyan` */DROP TABLE IF EXISTS `sucai_liuyan`;CREATE TABLE `sucai_liuyan` (`id` int(11) NOT NULL AUTO_INCREMENT COMMENT '主键',`sucai_id` int(11) DEFAULT NULL COMMENT '图片素材',`yonghu_id` int(11) DEFAULT NULL COMMENT '用户',`sucai_liuyan_text` longtext COMMENT '留言内容',`insert_time` timestamp NULL DEFAULT NULL COMMENT '留言时间',`reply_text` longtext COMMENT '回复内容',`update_time` timestamp NULL DEFAULT NULL COMMENT '回复时间',`create_time` timestamp NULL DEFAULT NULL COMMENT '创建时间 show3 listShow',PRIMARY KEY (`id`)
) ENGINE=InnoDB AUTO_INCREMENT=16 DEFAULT CHARSET=utf8 COMMENT='图片素材留言';/*Data for the table `sucai_liuyan` */insert into `sucai_liuyan`(`id`,`sucai_id`,`yonghu_id`,`sucai_liuyan_text`,`insert_time`,`reply_text`,`update_time`,`create_time`) values (1,1,1,'留言内容1','2023-03-31 09:47:09','回复信息1','2023-03-31 09:47:09','2023-03-31 09:47:09'),(2,2,1,'留言内容2','2023-03-31 09:47:09','回复信息2','2023-03-31 09:47:09','2023-03-31 09:47:09'),(3,3,3,'留言内容3','2023-03-31 09:47:09','回复信息3','2023-03-31 09:47:09','2023-03-31 09:47:09'),(4,4,2,'留言内容4','2023-03-31 09:47:09','回复信息4','2023-03-31 09:47:09','2023-03-31 09:47:09'),(5,5,1,'留言内容5','2023-03-31 09:47:09','回复信息5','2023-03-31 09:47:09','2023-03-31 09:47:09'),(6,6,2,'留言内容6','2023-03-31 09:47:09','回复信息6','2023-03-31 09:47:09','2023-03-31 09:47:09'),(7,7,3,'留言内容7','2023-03-31 09:47:09','回复信息7','2023-03-31 09:47:09','2023-03-31 09:47:09'),(8,8,2,'留言内容8','2023-03-31 09:47:09','回复信息8','2023-03-31 09:47:09','2023-03-31 09:47:09'),(9,9,3,'留言内容9','2023-03-31 09:47:09','回复信息9','2023-03-31 09:47:09','2023-03-31 09:47:09'),(10,10,2,'留言内容10','2023-03-31 09:47:09','回复信息10','2023-03-31 09:47:09','2023-03-31 09:47:09'),(11,11,2,'留言内容11','2023-03-31 09:47:09','回复信息11','2023-03-31 09:47:09','2023-03-31 09:47:09'),(12,12,1,'留言内容12','2023-03-31 09:47:09','回复信息12','2023-03-31 09:47:09','2023-03-31 09:47:09'),(13,13,3,'留言内容13','2023-03-31 09:47:09','回复信息13','2023-03-31 09:47:09','2023-03-31 09:47:09'),(14,14,3,'留言内容14','2023-03-31 09:47:09','回复信息14','2023-03-31 09:47:09','2023-03-31 09:47:09'),(15,11,1,'留言11111','2023-03-31 10:07:19','回复内容11111','2023-03-31 10:08:15','2023-03-31 10:07:19');/*Table structure for table `sucaishipin` */DROP TABLE IF EXISTS `sucaishipin`;CREATE TABLE `sucaishipin` (`id` int(11) NOT NULL AUTO_INCREMENT COMMENT '主键 ',`sucaishipin_uuid_number` varchar(200) DEFAULT NULL COMMENT '视频素材编号',`sucaishipin_name` varchar(200) DEFAULT NULL COMMENT '视频素材名称 Search111 ',`sucaishipin_photo` varchar(200) DEFAULT NULL COMMENT '视频素材封面',`sucaishipin_video` varchar(200) DEFAULT NULL COMMENT '视频',`sucaishipin_file` varchar(200) DEFAULT NULL COMMENT '视频素材',`sucaishipin_types` int(11) DEFAULT NULL COMMENT '视频素材类型 Search111',`sucaishipin_clicknum` int(11) DEFAULT NULL COMMENT '视频素材热度',`zan_number` int(11) DEFAULT NULL COMMENT '赞',`cai_number` int(11) DEFAULT NULL COMMENT '踩',`sucaishipin_content` longtext COMMENT '视频素材介绍 ',`sucaishipin_delete` int(11) DEFAULT NULL COMMENT '逻辑删除',`insert_time` timestamp NULL DEFAULT NULL COMMENT '录入时间',`create_time` timestamp NULL DEFAULT NULL COMMENT '创建时间 show1 show2 photoShow',PRIMARY KEY (`id`)
) ENGINE=InnoDB AUTO_INCREMENT=15 DEFAULT CHARSET=utf8 COMMENT='视频素材';/*Data for the table `sucaishipin` */insert into `sucaishipin`(`id`,`sucaishipin_uuid_number`,`sucaishipin_name`,`sucaishipin_photo`,`sucaishipin_video`,`sucaishipin_file`,`sucaishipin_types`,`sucaishipin_clicknum`,`zan_number`,`cai_number`,`sucaishipin_content`,`sucaishipin_delete`,`insert_time`,`create_time`) values (1,'1680227229972','视频素材名称1','upload/sucaishipin1.jpg','upload/video.mp4','upload/file.rar',1,179,156,56,'视频素材介绍1',1,'2023-03-31 09:47:09','2023-03-31 09:47:09'),(2,'1680227230009','视频素材名称2','upload/sucaishipin2.jpg','upload/video.mp4','upload/file.rar',3,31,366,300,'视频素材介绍2',1,'2023-03-31 09:47:09','2023-03-31 09:47:09'),(3,'1680227230023','视频素材名称3','upload/sucaishipin3.jpg','upload/video.mp4','upload/file.rar',3,77,254,90,'视频素材介绍3',1,'2023-03-31 09:47:09','2023-03-31 09:47:09'),(4,'1680227229980','视频素材名称4','upload/sucaishipin4.jpg','upload/video.mp4','upload/file.rar',3,223,109,417,'视频素材介绍4',1,'2023-03-31 09:47:09','2023-03-31 09:47:09'),(5,'1680227229955','视频素材名称5','upload/sucaishipin5.jpg','upload/video.mp4','upload/file.rar',3,187,309,110,'视频素材介绍5',1,'2023-03-31 09:47:09','2023-03-31 09:47:09'),(6,'1680227229967','视频素材名称6','upload/sucaishipin6.jpg','upload/video.mp4','upload/file.rar',2,54,3,100,'视频素材介绍6',1,'2023-03-31 09:47:09','2023-03-31 09:47:09'),(7,'1680227229939','视频素材名称7','upload/sucaishipin7.jpg','upload/video.mp4','upload/file.rar',3,290,124,381,'视频素材介绍7',1,'2023-03-31 09:47:09','2023-03-31 09:47:09'),(8,'1680227229946','视频素材名称8','upload/sucaishipin8.jpg','upload/video.mp4','upload/file.rar',2,456,253,123,'视频素材介绍8',1,'2023-03-31 09:47:09','2023-03-31 09:47:09'),(9,'1680227229957','视频素材名称9','upload/sucaishipin9.jpg','upload/video.mp4','upload/file.rar',1,15,455,290,'视频素材介绍9',1,'2023-03-31 09:47:09','2023-03-31 09:47:09'),(10,'1680227229979','视频素材名称10','upload/sucaishipin10.jpg','upload/video.mp4','upload/file.rar',3,470,345,27,'视频素材介绍10',1,'2023-03-31 09:47:09','2023-03-31 09:47:09'),(11,'1680227229981','视频素材名称11','upload/sucaishipin11.jpg','upload/video.mp4','upload/file.rar',2,352,99,394,'视频素材介绍11',1,'2023-03-31 09:47:09','2023-03-31 09:47:09'),(12,'1680227230024','视频素材名称12','upload/sucaishipin12.jpg','upload/video.mp4','upload/file.rar',3,320,29,480,'视频素材介绍12',1,'2023-03-31 09:47:09','2023-03-31 09:47:09'),(13,'1680227229972','视频素材名称13','upload/sucaishipin13.jpg','upload/video.mp4','upload/file.rar',1,66,170,168,'视频素材介绍13',1,'2023-03-31 09:47:09','2023-03-31 09:47:09'),(14,'1680227229966','视频素材名称14','upload/sucaishipin14.jpg','upload/video.mp4','upload/file.rar',2,272,405,182,'视频素材介绍14',1,'2023-03-31 09:47:09','2023-03-31 09:47:09');/*Table structure for table `sucaishipin_collection` */DROP TABLE IF EXISTS `sucaishipin_collection`;CREATE TABLE `sucaishipin_collection` (`id` int(11) NOT NULL AUTO_INCREMENT COMMENT '主键',`sucaishipin_id` int(11) DEFAULT NULL COMMENT '视频素材',`yonghu_id` int(11) DEFAULT NULL COMMENT '用户',`sucaishipin_collection_types` int(11) DEFAULT NULL COMMENT '类型',`insert_time` timestamp NULL DEFAULT NULL COMMENT '收藏时间',`create_time` timestamp NULL DEFAULT NULL COMMENT '创建时间 show3 photoShow',PRIMARY KEY (`id`)
) ENGINE=InnoDB AUTO_INCREMENT=18 DEFAULT CHARSET=utf8 COMMENT='视频素材收藏';/*Data for the table `sucaishipin_collection` */insert into `sucaishipin_collection`(`id`,`sucaishipin_id`,`yonghu_id`,`sucaishipin_collection_types`,`insert_time`,`create_time`) values (1,1,2,1,'2023-03-31 09:47:09','2023-03-31 09:47:09'),(2,2,1,1,'2023-03-31 09:47:09','2023-03-31 09:47:09'),(3,3,2,1,'2023-03-31 09:47:09','2023-03-31 09:47:09'),(4,4,2,1,'2023-03-31 09:47:09','2023-03-31 09:47:09'),(5,5,2,1,'2023-03-31 09:47:09','2023-03-31 09:47:09'),(6,6,3,1,'2023-03-31 09:47:09','2023-03-31 09:47:09'),(7,7,3,1,'2023-03-31 09:47:09','2023-03-31 09:47:09'),(8,8,3,1,'2023-03-31 09:47:09','2023-03-31 09:47:09'),(9,9,3,1,'2023-03-31 09:47:09','2023-03-31 09:47:09'),(10,10,1,1,'2023-03-31 09:47:09','2023-03-31 09:47:09'),(11,11,3,1,'2023-03-31 09:47:09','2023-03-31 09:47:09'),(12,12,2,1,'2023-03-31 09:47:09','2023-03-31 09:47:09'),(13,13,2,1,'2023-03-31 09:47:09','2023-03-31 09:47:09'),(14,14,2,1,'2023-03-31 09:47:09','2023-03-31 09:47:09'),(15,3,1,2,'2023-03-31 10:05:35','2023-03-31 10:05:35'),(16,7,1,1,'2023-03-31 10:05:55','2023-03-31 10:05:55'),(17,7,1,2,'2023-03-31 10:05:58','2023-03-31 10:05:58');/*Table structure for table `sucaishipin_liuyan` */DROP TABLE IF EXISTS `sucaishipin_liuyan`;CREATE TABLE `sucaishipin_liuyan` (`id` int(11) NOT NULL AUTO_INCREMENT COMMENT '主键',`sucaishipin_id` int(11) DEFAULT NULL COMMENT '视频素材',`yonghu_id` int(11) DEFAULT NULL COMMENT '用户',`sucaishipin_liuyan_text` longtext COMMENT '留言内容',`insert_time` timestamp NULL DEFAULT NULL COMMENT '留言时间',`reply_text` longtext COMMENT '回复内容',`update_time` timestamp NULL DEFAULT NULL COMMENT '回复时间',`create_time` timestamp NULL DEFAULT NULL COMMENT '创建时间 show3 listShow',PRIMARY KEY (`id`)
) ENGINE=InnoDB AUTO_INCREMENT=16 DEFAULT CHARSET=utf8 COMMENT='视频素材留言';/*Data for the table `sucaishipin_liuyan` */insert into `sucaishipin_liuyan`(`id`,`sucaishipin_id`,`yonghu_id`,`sucaishipin_liuyan_text`,`insert_time`,`reply_text`,`update_time`,`create_time`) values (1,1,2,'留言内容1','2023-03-31 09:47:09','回复信息1','2023-03-31 09:47:09','2023-03-31 09:47:09'),(2,2,2,'留言内容2','2023-03-31 09:47:09','回复信息2','2023-03-31 09:47:09','2023-03-31 09:47:09'),(3,3,1,'留言内容3','2023-03-31 09:47:09','回复信息3','2023-03-31 09:47:09','2023-03-31 09:47:09'),(4,4,2,'留言内容4','2023-03-31 09:47:09','回复信息4','2023-03-31 09:47:09','2023-03-31 09:47:09'),(5,5,3,'留言内容5','2023-03-31 09:47:09','回复信息5','2023-03-31 09:47:09','2023-03-31 09:47:09'),(6,6,3,'留言内容6','2023-03-31 09:47:09','回复信息6','2023-03-31 09:47:09','2023-03-31 09:47:09'),(7,7,3,'留言内容7','2023-03-31 09:47:09','回复信息7','2023-03-31 09:47:09','2023-03-31 09:47:09'),(8,8,1,'留言内容8','2023-03-31 09:47:09','回复信息8','2023-03-31 09:47:09','2023-03-31 09:47:09'),(9,9,1,'留言内容9','2023-03-31 09:47:09','回复信息9','2023-03-31 09:47:09','2023-03-31 09:47:09'),(10,10,2,'留言内容10','2023-03-31 09:47:09','回复信息10','2023-03-31 09:47:09','2023-03-31 09:47:09'),(11,11,1,'留言内容11','2023-03-31 09:47:09','回复信息11','2023-03-31 09:47:09','2023-03-31 09:47:09'),(12,12,3,'留言内容12','2023-03-31 09:47:09','回复信息12','2023-03-31 09:47:09','2023-03-31 09:47:09'),(13,13,2,'留言内容13','2023-03-31 09:47:09','回复信息13','2023-03-31 09:47:09','2023-03-31 09:47:09'),(14,14,2,'留言内容14','2023-03-31 09:47:09','回复信息14','2023-03-31 09:47:09','2023-03-31 09:47:09'),(15,3,1,'添加留言评论1','2023-03-31 10:05:45',NULL,NULL,'2023-03-31 10:05:45');/*Table structure for table `token` */DROP TABLE IF EXISTS `token`;CREATE TABLE `token` (`id` bigint(20) NOT NULL AUTO_INCREMENT COMMENT '主键',`userid` bigint(20) NOT NULL COMMENT '管理id',`username` varchar(100) NOT NULL COMMENT '管理名',`tablename` varchar(100) DEFAULT NULL COMMENT '表名',`role` varchar(100) DEFAULT NULL COMMENT '角色',`token` varchar(200) NOT NULL COMMENT '密码',`addtime` timestamp NOT NULL DEFAULT CURRENT_TIMESTAMP COMMENT '新增时间',`expiratedtime` timestamp NOT NULL DEFAULT CURRENT_TIMESTAMP COMMENT '过期时间',PRIMARY KEY (`id`)
) ENGINE=InnoDB AUTO_INCREMENT=3 DEFAULT CHARSET=utf8 COMMENT='token表';/*Data for the table `token` */insert into `token`(`id`,`userid`,`username`,`tablename`,`role`,`token`,`addtime`,`expiratedtime`) values (1,1,'admin','users','管理员','ytseirf1jkyczn45moeaalkpfrki3oxi','2023-03-31 10:01:52','2023-03-31 11:12:16'),(2,1,'a1','yonghu','用户','wz7m46t8te3q6el3dz1k5ycc49503m9i','2023-03-31 10:02:57','2023-03-31 11:05:17');/*Table structure for table `users` */DROP TABLE IF EXISTS `users`;CREATE TABLE `users` (`id` bigint(20) NOT NULL AUTO_INCREMENT COMMENT '主键',`username` varchar(100) NOT NULL COMMENT '医院名',`password` varchar(100) NOT NULL COMMENT '密码',`role` varchar(100) DEFAULT '管理员' COMMENT '角色',`addtime` timestamp NOT NULL DEFAULT CURRENT_TIMESTAMP COMMENT '新增时间',PRIMARY KEY (`id`)
) ENGINE=InnoDB AUTO_INCREMENT=2 DEFAULT CHARSET=utf8 COMMENT='管理员';/*Data for the table `users` */insert into `users`(`id`,`username`,`password`,`role`,`addtime`) values (1,'admin','admin','管理员','2023-03-31 09:43:42');/*Table structure for table `yonghu` */DROP TABLE IF EXISTS `yonghu`;CREATE TABLE `yonghu` (`id` int(11) NOT NULL AUTO_INCREMENT COMMENT '主键',`username` varchar(200) DEFAULT NULL COMMENT '账户',`password` varchar(200) DEFAULT NULL COMMENT '密码',`yonghu_name` varchar(200) DEFAULT NULL COMMENT '用户名称 Search111 ',`yonghu_phone` varchar(200) DEFAULT NULL COMMENT '用户手机号',`yonghu_id_number` varchar(200) DEFAULT NULL COMMENT '用户身份证号',`yonghu_photo` varchar(200) DEFAULT NULL COMMENT '用户头像',`sex_types` int(11) DEFAULT NULL COMMENT '性别 Search111',`yonghu_email` varchar(200) DEFAULT NULL COMMENT '用户邮箱',`yonghu_delete` int(11) DEFAULT NULL COMMENT '逻辑删除',`insert_time` timestamp NULL DEFAULT NULL COMMENT '添加时间',`create_time` timestamp NULL DEFAULT NULL COMMENT '创建时间',PRIMARY KEY (`id`)
) ENGINE=InnoDB AUTO_INCREMENT=4 DEFAULT CHARSET=utf8 COMMENT='用户';/*Data for the table `yonghu` */insert into `yonghu`(`id`,`username`,`password`,`yonghu_name`,`yonghu_phone`,`yonghu_id_number`,`yonghu_photo`,`sex_types`,`yonghu_email`,`yonghu_delete`,`insert_time`,`create_time`) values (1,'a1','123456','用户名称1','17703786901','410224199010102001','upload/yonghu1.jpg',2,'1@qq.com',1,'2023-03-31 09:47:09','2023-03-31 09:47:09'),(2,'a2','123456','用户名称2','17703786902','410224199010102002','upload/yonghu2.jpg',1,'2@qq.com',1,'2023-03-31 09:47:09','2023-03-31 09:47:09'),(3,'a3','123456','用户名称3','17703786903','410224199010102003','upload/yonghu3.jpg',1,'3@qq.com',1,'2023-03-31 09:47:09','2023-03-31 09:47:09');/*!40101 SET SQL_MODE=@OLD_SQL_MODE */;
/*!40014 SET FOREIGN_KEY_CHECKS=@OLD_FOREIGN_KEY_CHECKS */;
/*!40014 SET UNIQUE_CHECKS=@OLD_UNIQUE_CHECKS */;
/*!40111 SET SQL_NOTES=@OLD_SQL_NOTES */;
核心代码
package com.controller;import java.util.Arrays;
import java.util.Calendar;
import java.util.Date;
import java.util.Map;import javax.servlet.http.HttpServletRequest;import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.PathVariable;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestBody;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RequestParam;
import org.springframework.web.bind.annotation.ResponseBody;
import org.springframework.web.bind.annotation.RestController;import com.annotation.IgnoreAuth;
import com.baomidou.mybatisplus.mapper.EntityWrapper;
import com.entity.TokenEntity;
import com.entity.UserEntity;
import com.service.TokenService;
import com.service.UserService;
import com.utils.CommonUtil;
import com.utils.MD5Util;
import com.utils.MPUtil;
import com.utils.PageUtils;
import com.utils.R;
import com.utils.ValidatorUtils;/*** 计算机编程-吉哥*/
@RequestMapping("users")
@RestController
public class UserController{@Autowiredprivate UserService userService;@Autowiredprivate TokenService tokenService;/*** 登录*/@IgnoreAuth@PostMapping(value = "/login")public R login(String username, String password, String captcha, HttpServletRequest request) {UserEntity user = userService.selectOne(new EntityWrapper<UserEntity>().eq("username", username));if(user==null || !user.getPassword().equals(password)) {return R.error("账号或密码不正确");}String token = tokenService.generateToken(user.getId(),username, "users", user.getRole());return R.ok().put("token", token);}/*** 注册*/@IgnoreAuth@PostMapping(value = "/register")public R register(@RequestBody UserEntity user){
// ValidatorUtils.validateEntity(user);if(userService.selectOne(new EntityWrapper<UserEntity>().eq("username", user.getUsername())) !=null) {return R.error("用户已存在");}userService.insert(user);return R.ok();}/*** 退出*/@GetMapping(value = "logout")public R logout(HttpServletRequest request) {request.getSession().invalidate();return R.ok("退出成功");}/*** 密码重置*/@IgnoreAuth@RequestMapping(value = "/resetPass")public R resetPass(String username, HttpServletRequest request){UserEntity user = userService.selectOne(new EntityWrapper<UserEntity>().eq("username", username));if(user==null) {return R.error("账号不存在");}user.setPassword("123456");userService.update(user,null);return R.ok("密码已重置为:123456");}/*** 列表*/@RequestMapping("/page")public R page(@RequestParam Map<String, Object> params,UserEntity user){EntityWrapper<UserEntity> ew = new EntityWrapper<UserEntity>();PageUtils page = userService.queryPage(params, MPUtil.sort(MPUtil.between(MPUtil.allLike(ew, user), params), params));return R.ok().put("data", page);}/*** 列表*/@RequestMapping("/list")public R list( UserEntity user){EntityWrapper<UserEntity> ew = new EntityWrapper<UserEntity>();ew.allEq(MPUtil.allEQMapPre( user, "user")); return R.ok().put("data", userService.selectListView(ew));}/*** 信息*/@RequestMapping("/info/{id}")public R info(@PathVariable("id") String id){UserEntity user = userService.selectById(id);return R.ok().put("data", user);}/*** 获取用户的session用户信息*/@RequestMapping("/session")public R getCurrUser(HttpServletRequest request){Long id = (Long)request.getSession().getAttribute("userId");UserEntity user = userService.selectById(id);return R.ok().put("data", user);}/*** 保存*/@PostMapping("/save")public R save(@RequestBody UserEntity user){
// ValidatorUtils.validateEntity(user);if(userService.selectOne(new EntityWrapper<UserEntity>().eq("username", user.getUsername())) !=null) {return R.error("用户已存在");}userService.insert(user);return R.ok();}/*** 修改*/@RequestMapping("/update")public R update(@RequestBody UserEntity user){
// ValidatorUtils.validateEntity(user);UserEntity u = userService.selectOne(new EntityWrapper<UserEntity>().eq("username", user.getUsername()));if(u!=null && u.getId()!=user.getId() && u.getUsername().equals(user.getUsername())) {return R.error("用户名已存在。");}userService.updateById(user);//全部更新return R.ok();}/*** 删除*/@RequestMapping("/delete")public R delete(@RequestBody Long[] ids){userService.deleteBatchIds(Arrays.asList(ids));return R.ok();}
}
更多项目推荐:计算机毕业设计项目
↓↓↓↓↓↓↓↓↓↓↓↓↓↓↓↓↓如果大家有任何疑虑,请在下方位置详细咨询。
相关文章:

基于Java+SpringBoot+Vue摄影分享网站的设计与实现 前后端分离【Java毕业设计·文档报告·代码讲解·安装调试】
🍊作者:计算机编程-吉哥 🍊简介:专业从事JavaWeb程序开发,微信小程序开发,定制化项目、 源码、代码讲解、文档撰写、ppt制作。做自己喜欢的事,生活就是快乐的。 🍊心愿:点…...

接口测试系列 —— POSTMAN的简单使用
postman的基本使用 概述 我相信对于postman的介绍,网上一搜肯定很多很多。下面我就不打算跟大家普及postman了。只看应该怎么用postman进行接口测试。好了,下面咱们直接进入正文吧。 环境 postman之前是作为chrome插件形式存在的。后面变成了独立的应…...

一个帮各位填秋招表格省一点事的浏览器插件
最近应该很多和我一样的双非鼠鼠在秋招等面试,而且处于海投阶段,为了不忘记投了哪些公司,可以用这样一个表格来记录: 其中有些字段,比如状态、投递时间、查看进度的网址其实可以不手动输入,所以搞个插件来…...

react16之前diff算法的理解和总结
此篇文章所讨论的是 React 16 以前的 Diff 算法。而 React 16 启用了全新的架构 Fiber,相应的 Diff 算法也有所改变,本片不详细讨论Fiber。 fiber架构是为了支持react进行可中断渲染,降低卡顿,提升流畅度。 react16之前的版本&…...

JavaEE初阶(1)(冯诺依曼体系、CPU、CPU基本原理、如何衡量CPU的好坏?指令、操作系统、操作系统“内核”)
目录 冯诺依曼体系(Von Neumann Architecture) CPU CPU基本原理: 如何衡量CPU的好坏? 1、主频(时钟速度): 2、核心数: 指令 操作系统 操作系统“内核” 冯诺依曼体系&#x…...

记录在yapi上传接口的问题
sorry ,upload api error cause:请求参数 data.path 不应少于 1 个字符 自己在写的代码中使用到了DeleteMapping DeleteMapping("/deleteCart/{skuId}")public Result deleteCart(PathVariable Long skuId,HttpServletRequest request){报上面的错误,原因…...

DevOps管理软件生命周期
整体的软件开发流程 PLAN:开发团队根据客户的目标制定开发计划 CODE:根据PLAN开始编码过程,需要将不同版本的代码存储在一个库中。GIT,SVN BUILD:编码完成后,需要将代码构建并且运行。MAVEN TEST:成功构建…...

快速解决 adb server version doesn‘t match this client
这个问题是由于电脑上安装了多个版本的adb工具,客户端和服务端的版本不一致,无法正常通信导致。最快的解决方法就是将Android SDK中adb复制到系统目录下。 操作步骤如下: 1. 查看adb版本和路径 执行adb version,如下࿰…...

【更新至2022年】2000-2022年全国31省市以2000年为基期的实际GDP、名义GDP、GDP平减指数数据(含原始数据+计算过程+计算结果)
2000-2022年31省市名义GDP 实际GDP GDP平减指数 1、时间:2000-2022 2、范围:31省市 3、来源:GJ统计J和统计NJ 4、指标:名义GDP、地区生产总值指数(上年100)、实际GDP(以2000年为基期&#x…...

【LeetCode】剑指 Offer <二刷>(5)
目录 题目:剑指 Offer 10- II. 青蛙跳台阶问题 - 力扣(LeetCode) 题目的接口: 解题思路: 代码: 过啦!!! 题目:剑指 Offer 11. 旋转数组的最小数字 - 力…...

rtsp 拉流 gb28181 收流 经AI 算法 再生成 rtsp server (一)
1、 rtsp 工具 1 vlc 必备工具 2 wireshark 必备工具 3 自己制作的工具 player 使用tcp 拉流,不自己写的话,使用ffmpeg 去写一个播放器就行 4 live555 编译好live555, 将live555的参数修改以下,主要是缓存大小 文章使用c 来写一…...

Jmeter系列-环境部署、详细介绍、安装目录介绍(1)
环境部署 官网下载Jmeter http://jmeter.apache.org/下载最新版本的 JMeter,解压文件到任意目录 安装JDK,配置Java环境 1、下载(注意选择操作系统对应的位数32/64) 官网 :http://www.oracle.com 2、安装࿰…...

更换 yum 阿里源 - 手把手教你怎么配置,在也不需要求别人了 - 看懂一个就相当于看懂了其他的linux系统
更换阿里源 我的是centos8 当然 centos7 也可以换 后面有更详细的怎么配 ,再也不用求别人怎么弄了 最直接的方式 直接复制 执行 centos7 curl -o /etc/yum.repos.d/CentOS-Base.repo https://mirrors.aliyun.com/repo/Centos-7.repo或者 wget -O /etc/yum.repos.…...

966SEO扫地僧站群·万能HTML模板[V1.9.1]
扫地僧站群万能HTML模板是一款站点管理软件,其主要特点是可以将原始的html模板放入程序中,无需编写任何标签,程序会全自动替换处理,从而快速构建出一个完整的网站,这种模式相对于传统的网站建设方式更加快速、简单,同时可以大幅度降低网站建设的成本和难度.服务器及域名量的配置…...

angular:html2canvas对ion-avatar节点渲染不正确
问题: 如题 解决办法: 简单实现头像遮罩 <div class"ion-avatar" style"width: 40px; height: 40px; border-radius: 50%; overflow: hidden"><img src"" alt""/> </div><style>.ion-…...

使用dockerfile文件部署Python+PyWebIO项目
1、安装docker 教程详见之前的内容。https://blog.csdn.net/weixin_44691253/category_12101661.html 2、打包好Python项目 之前的文章中有提到我编写测试工具使用的框架:PythonRequestsPyWebIO框架详解,编写测试工具提高团队测试效率 打包项目时&am…...

【web开发】5.Mysql及python代码执行数据库操作
提示:文章写完后,目录可以自动生成,如何生成可参考右边的帮助文档 文章目录 一、MYSQL二、MySQL管理查看已有数据库创建数据库删除数据库进入数据库创建表删除表展示表的行列插入数据查看表中的数据删除数据修改数据 三、python代码执行数据库…...

Android学习之路(13) Handler详解
1. 简介 Handler是一套 Android 消息传递机制,主要用于线程间通信。 用最简单的话描述: handler其实就是主线程在起了一个子线程,子线程运行并生成Message,Looper获取message并传递给Handler,Handler逐个获取子线程中的Message.…...

介绍一些开发用到的工具
Sourcetree :Git 界面操作工具,真心好用 uTool:效率工具平台,可以了解一下,提供了很多强大的工具,加强了对电脑的操作 MobaXterm:带有 X11 服务器、选项卡式 SSH 客户端、网络工具等的增强型 Wi…...

【笔试真题记录】2023滴滴编程第二题
题目: 现在有n个由大写英文字符组成的字符串,且这些字符串不会互相包含,也不会相等。现在想知道有哪些字符串满足如下条件。设满足条件的字符串为S,存在其他的两个字符串拼接在一起后,能通过去除一个非空前缀和一个非空…...

中国ui设计师年终工作总结
一、萌芽阶段 记得初次应聘时,我对公司的认识仅仅局限于行业之一,对UI设计师一职的认识也局限于从事相对单纯的界面的设计创意和美术执行工作。除此之外,便一无所知了。所以,试用期中如何去认识、了解并熟悉自己所从事的行业&…...

CSS 滚动驱动动画 scroll()
CSS 滚动驱动动画 scroll() animation-timeline 通过 scroll() 指定可滚动元素与滚动轴来为容器动画提供一个匿名的 scroll progress timeline. 通过元素在顶部和底部(或左边和右边)的滚动推进 scroll progress timeline. 并且元素滚动的位置会被转换为百分比, 滚动开始被转化为…...

基于Java+SpringBoot+Vue前后端分离在线考试系统设计和实现
博主介绍:✌全网粉丝30W,csdn特邀作者、博客专家、CSDN新星计划导师、Java领域优质创作者,博客之星、掘金/华为云/阿里云/InfoQ等平台优质作者、专注于Java技术领域和毕业项目实战✌ 🍅文末获取源码联系🍅 👇🏻 精彩专…...

nvm管理多个版本的nodejs
1. 已经安装过nodejs在安装nvm的步骤 1.安装nvmhttps://github.com/coreybutler/nvm-windows/releases 2.nvm安装位置 2.nvm管理的nodejs安装位置 4.最终的安装结构 备注:nodejs安装 2.使用nvm安装管理nodejs 2.1配置下载镜像: 找到nvm安装路径…...

LeetCode 1658. 将 x 减到 0 的最小操作数
题目链接 力扣(LeetCode)官网 - 全球极客挚爱的技术成长平台 题目解析 有种说法叫做,正难则反。我们直接去按照题目意思去求很难去理解与操作,但是我们换种思想就会简单许多。我们让整个数组的和减去x得到一个target,…...

Rasa 3.1 机器学习一构建标准的对话
1、控制请求(domain.yml) version: "3.1"intents:- hellosession_config:session_expiration_time: 60carry_over_slots_to_new_session: true2、规则制定(rules.yml) version: "3.1" rules:- rule: havebsteps:- intent: hello- action: utter_hello3、…...

MySQL的概述、版本、安装过程
作者:Insist-- 个人主页:insist--个人主页 作者会持续更新网络知识和python基础知识,期待你的关注 目录 一、MySQL的概述 二、MySQL的版本 三、MySQL的下载与安装 前言 本文将来谈谈MySQL的概述,MySQL的版本,以及它…...

leetcode:58. 最后一个单词的长度
题目: 函数原型: int lengthOfLastWord(char * s) 解析: 求最后一个单词的长度,我们有两种思路 第一种思路: 逆向求,先设置一个字符串下标index,定位到最后一个单词的最后一个字符。再一个设置长…...

Electron 两个线程
Electron:它允许使用最初为Web应用程序开发的前端和后端组件开发桌面GUI应用程序:后端的Node.js运行时和前端的Chromium。 每个Electron应用都有两个线程:一个是主线程(处理应用窗口和启动),另一个是渲染线…...

基于YOLOv8和WiderFace数据集的人脸目标检测系统(PyTorch+Pyside6+YOLOv8模型)
摘要:基于YOLOv8和WiderFace数据集的人脸目标检测系统可用于日常生活中检测与定位人脸目标,利用深度学习算法可实现图片、视频、摄像头等方式的目标检测,另外本系统还支持图片、视频等格式的结果可视化与结果导出。本系统采用YOLOv8目标检测算…...