基于ssm的微信小程序的短视频系统设计与实现-计算机毕业设计源码和LW文档

 开发语言:Java

框架:ssm

JDK版本:JDK1.8

服务器:tomcat7

数据库:mysql 5.7

数据库工具:Navicat11

开发软件:eclipse/myeclipse/idea

Maven包:Maven3.3.9

浏览器:谷歌浏览器

安卓框架:uniapp

安卓开发软件:HBuilder X

开发模式:混合开发

数据库代码:

DROP TABLE IF EXISTS `storeup`;
/*!40101 SET @saved_cs_client     = @@character_set_client */;
/*!40101 SET character_set_client = utf8 */;
CREATE TABLE `storeup` (
  `id` bigint(20) NOT NULL AUTO_INCREMENT COMMENT ‘主键’,
  `addtime` timestamp NOT NULL DEFAULT CURRENT_TIMESTAMP COMMENT ‘创建时间’,
  `userid` bigint(20) NOT NULL COMMENT ‘用户id’,
  `refid` bigint(20) DEFAULT NULL COMMENT ‘收藏id’,
  `tablename` varchar(200) DEFAULT NULL COMMENT ‘表名’,
  `name` varchar(200) NOT NULL COMMENT ‘收藏名称’,
  `picture` varchar(200) NOT NULL COMMENT ‘收藏图片’,
  `type` varchar(200) DEFAULT ‘1’ COMMENT ‘类型(1:收藏,21:赞,22:踩)’,
  `inteltype` varchar(200) DEFAULT NULL COMMENT ‘推荐类型’,
  PRIMARY KEY (`id`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8 COMMENT=’收藏表’;
/*!40101 SET character_set_client = @saved_cs_client */;


— Dumping data for table `storeup`

LOCK TABLES `storeup` WRITE;
/*!40000 ALTER TABLE `storeup` DISABLE KEYS */;
/*!40000 ALTER TABLE `storeup` ENABLE KEYS */;
UNLOCK TABLES;


— Table structure for table `token`

DROP TABLE IF EXISTS `token`;
/*!40101 SET @saved_cs_client     = @@character_set_client */;
/*!40101 SET character_set_client = utf8 */;
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 DEFAULT CHARSET=utf8 COMMENT=’token表’;
/*!40101 SET character_set_client = @saved_cs_client */;


— Dumping data for table `token`

LOCK TABLES `token` WRITE;
/*!40000 ALTER TABLE `token` DISABLE KEYS */;
/*!40000 ALTER TABLE `token` ENABLE KEYS */;
UNLOCK TABLES;


— Table structure for table `users`

DROP TABLE IF EXISTS `users`;
/*!40101 SET @saved_cs_client     = @@character_set_client */;
/*!40101 SET character_set_client = utf8 */;
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=’用户表’;
/*!40101 SET character_set_client = @saved_cs_client */;


— Dumping data for table `users`

LOCK TABLES `users` WRITE;
/*!40000 ALTER TABLE `users` DISABLE KEYS */;
INSERT INTO `users` VALUES (1,’abo’,’abo’,’管理员’,’2022-04-01 13:27:41′);
/*!40000 ALTER TABLE `users` ENABLE KEYS */;
UNLOCK TABLES;


— Table structure for table `yonghu`

DROP TABLE IF EXISTS `yonghu`;
/*!40101 SET @saved_cs_client     = @@character_set_client */;
/*!40101 SET character_set_client = utf8 */;
CREATE TABLE `yonghu` (
  `id` bigint(20) NOT NULL AUTO_INCREMENT COMMENT ‘主键’,
  `addtime` timestamp NOT NULL DEFAULT CURRENT_TIMESTAMP COMMENT ‘创建时间’,
  `zhanghao` varchar(200) NOT NULL COMMENT ‘账号’,
  `mima` varchar(200) NOT NULL COMMENT ‘密码’,
  `xingming` varchar(200) NOT NULL COMMENT ‘姓名’,
  `xingbie` varchar(200) DEFAULT NULL COMMENT ‘性别’,
  `shouji` varchar(200) DEFAULT NULL COMMENT ‘手机’,
  `tupian` varchar(200) DEFAULT NULL COMMENT ‘图片’,
  PRIMARY KEY (`id`),
  UNIQUE KEY `zhanghao` (`zhanghao`)
) ENGINE=InnoDB AUTO_INCREMENT=17 DEFAULT CHARSET=utf8 COMMENT=’用户’;
/*!40101 SET character_set_client = @saved_cs_client */;

业务逻辑代码:

    /**
     * 后端列表
     */
    @RequestMapping(“/page”)
    public R page(@RequestParam Map<String, Object> params,NewsEntity news, 
        HttpServletRequest request){

        EntityWrapper<NewsEntity> ew = new EntityWrapper<NewsEntity>();
        PageUtils page = newsService.queryPage(params, MPUtil.sort(MPUtil.between(MPUtil.likeOrEq(ew, news), params), params));
        return R.ok().put(“data”, page);
    }
    
    /**
     * 前端列表
     */
    @IgnoreAuth
    @RequestMapping(“/list”)
    public R list(@RequestParam Map<String, Object> params,NewsEntity news, 
        HttpServletRequest request){
        EntityWrapper<NewsEntity> ew = new EntityWrapper<NewsEntity>();
        PageUtils page = newsService.queryPage(params, MPUtil.sort(MPUtil.between(MPUtil.likeOrEq(ew, news), params), params));
        return R.ok().put(“data”, page);
    }

    /**
     * 列表
     */
    @RequestMapping(“/lists”)
    public R list( NewsEntity news){
           EntityWrapper<NewsEntity> ew = new EntityWrapper<NewsEntity>();
          ew.allEq(MPUtil.allEQMapPre( news, “news”)); 
        return R.ok().put(“data”, newsService.selectListView(ew));
    }

     /**
     * 查询
     */
    @RequestMapping(“/query”)
    public R query(NewsEntity news){
        EntityWrapper< NewsEntity> ew = new EntityWrapper< NewsEntity>();
         ew.allEq(MPUtil.allEQMapPre( news, “news”)); 
        NewsView newsView =  newsService.selectView(ew);
        return R.ok(“查询公告信息成功”).put(“data”, newsView);
    }
    
    /**
     * 后端详情
     */
    @RequestMapping(“/info/{id}”)
    public R info(@PathVariable(“id”) Long id){
        NewsEntity news = newsService.selectById(id);
        return R.ok().put(“data”, news);
    }

    /**
     * 前端详情
     */
    @IgnoreAuth
    @RequestMapping(“/detail/{id}”)
    public R detail(@PathVariable(“id”) Long id){
        NewsEntity news = newsService.selectById(id);
        return R.ok().put(“data”, news);
    }
    

界面截图:

资源下载: