大家好!我是职场程序猿,感谢您阅读本文,欢迎一键三连哦。
💞当前专栏:微信小程序毕业设计
精彩专栏推荐👇🏻👇🏻👇🏻
开发运行环境
①前端:微信小程序开发工具
② 后端:Java
- 框架:springboot
- JDK版本:JDK1.8
- 服务器:tomcat7
- 数据库:mysql 5.7
- 数据库工具:Navicat12
- 开发软件:eclipse/myeclipse/idea
- Maven包:Maven3.3.9
- 浏览器:谷歌浏览器
源码下载地址:
https://download.csdn.net/download/m0_46388260/89223543
论文目录
【如需全文请按文末获取联系】
目录
一、项目简介
对于懂球短视频微信小程序当然也不能排除在外,随着小程序的不断成熟,带动了懂球短视频微信小程序分享网站 ,它彻底改变了过去传统的管理方式,不仅使服务管理难度变低了,还提升了管理的灵活性。这种个性化的平台特别注重交互协调与管理的相互配合,激发了管理人员的创造性与主动性,对懂球懂球短视频小程序而言非常有利。
二、系统设计
2.1软件功能模块设计
系统流程的分析是通过调查系统所涉及问题的识别、可行性、可操作性、系统分析处理能力等具体环节来调节、整理系统的设计方案以确保系统能达到理想的状态。这些操作都要从注册、登录处着眼进行一系列的流程测试保证数据库的完整,从而把控系统所涉及信息管理的安全、保证信息输入、输出正常转换。然后,通过实际操作完成流程图的绘制工作。系统结构图,如图3-3所示。
2.2数据库设计
用户信息实体包括用户姓名、用户手机、邮箱、性别、出生年月日、民族、头像,用户信息实体图如图4-1所示:
上传视频实体,它反映了视频名称、视频封面、上传时间、用户账号、用户姓名。上传视频实体的E-R如图,如图4-2所示:
分享视频功能属性主要有:视频名称、用户账号、用户姓名、视频 封面、上传时间、作者实体属性图如图4-3所示。
三、系统项目部分截图
3.1管理员功能模块(服务端)
管理员要登录懂球懂球短视频后台服务端,需要输入用户名和密码,选择登录角色进行登录,管理员有特权,只需要登录,管理员登录界面如图5-1所示:
管理员功能:管理员登录系统后,查看首页、个人中心、用户管理、上传视频管理、懂球视频管理、分享视频管理、收藏视频管理、系统管理。管理员功能如下图5-2所示:
上传视频管理:管理员在上传视频管理页面,查看视频名称、视频封面、上传时间、用户账号、用户姓名等内容,还能对用户上传视频进行审核并回复,以及修改、删除等操作等操作,如图5-4 5-5所示:
3.2用户功能模块(微信端)
用户注册,在用户注册页面通过填写用户账号、用户姓名、密码、用户手机、邮箱、性别、出生年月日、民族等信息进行注册操作;如图5-10所示。
用户登录,用户通过登录页面输入账号和密码,并点击登录进行系统登录操作,如图5-11所示。
懂球视频,在懂球视频页面查看视频名称、视频、封面、上传时间、作者等信息,可对视频分享、收藏、点赞、评论等操作,如图5-13 5-14所示。
我的,用户进入我的页面查看用户信息、上传视频、懂球视频、分享视频、收藏视频等详细信息,如图5-15所示。
四、部分核心代码
package com.controller;
import java.text.SimpleDateFormat;
import java.util.ArrayList;
import java.util.Arrays;
import java.util.Calendar;
import java.util.Map;
import java.util.HashMap;
import java.util.Iterator;
import java.util.Date;
import java.util.List;
import javax.servlet.http.HttpServletRequest;
import com.utils.ValidatorUtils;
import org.apache.commons.lang3.StringUtils;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.format.annotation.DateTimeFormat;
import org.springframework.web.bind.annotation.PathVariable;
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.RestController;
import com.baomidou.mybatisplus.mapper.EntityWrapper;
import com.baomidou.mybatisplus.mapper.Wrapper;
import com.annotation.IgnoreAuth;
import com.entity.ShangchuanshipinEntity;
import com.entity.view.ShangchuanshipinView;
import com.service.ShangchuanshipinService;
import com.service.TokenService;
import com.utils.PageUtils;
import com.utils.R;
import com.utils.MD5Util;
import com.utils.MPUtil;
import com.utils.CommonUtil;
import java.io.IOException;
/**
* 上传视频
* 后端接口
* @author
* @email
* @date 2021-12-13 15:11:02
*/
@RestController
@RequestMapping("/shangchuanshipin")
public class ShangchuanshipinController {
@Autowired
private ShangchuanshipinService shangchuanshipinService;
/**
* 后端列表
*/
@RequestMapping("/page")
public R page(@RequestParam Map<String, Object> params,ShangchuanshipinEntity shangchuanshipin,
HttpServletRequest request){
if(!request.getSession().getAttribute("role").toString().equals("管理员")) {
shangchuanshipin.setUserid((Long)request.getSession().getAttribute("userId"));
}
String tableName = request.getSession().getAttribute("tableName").toString();
if(tableName.equals("yonghu")) {
shangchuanshipin.setYonghuzhanghao((String)request.getSession().getAttribute("username"));
}
EntityWrapper<ShangchuanshipinEntity> ew = new EntityWrapper<ShangchuanshipinEntity>();
PageUtils page = shangchuanshipinService.queryPage(params, MPUtil.sort(MPUtil.between(MPUtil.likeOrEq(ew, shangchuanshipin), params), params));
return R.ok().put("data", page);
}
/**
* 前端列表
*/
@RequestMapping("/list")
public R list(@RequestParam Map<String, Object> params,ShangchuanshipinEntity shangchuanshipin,
HttpServletRequest request){
String tableName = request.getSession().getAttribute("tableName").toString();
if(tableName.equals("yonghu")) {
shangchuanshipin.setYonghuzhanghao((String)request.getSession().getAttribute("username"));
}
EntityWrapper<ShangchuanshipinEntity> ew = new EntityWrapper<ShangchuanshipinEntity>();
PageUtils page = shangchuanshipinService.queryPage(params, MPUtil.sort(MPUtil.between(MPUtil.likeOrEq(ew, shangchuanshipin), params), params));
return R.ok().put("data", page);
}
/**
* 列表
*/
@RequestMapping("/lists")
public R list( ShangchuanshipinEntity shangchuanshipin){
EntityWrapper<ShangchuanshipinEntity> ew = new EntityWrapper<ShangchuanshipinEntity>();
ew.allEq(MPUtil.allEQMapPre( shangchuanshipin, "shangchuanshipin"));
return R.ok().put("data", shangchuanshipinService.selectListView(ew));
}
/**
* 查询
*/
@RequestMapping("/query")
public R query(ShangchuanshipinEntity shangchuanshipin){
EntityWrapper< ShangchuanshipinEntity> ew = new EntityWrapper< ShangchuanshipinEntity>();
ew.allEq(MPUtil.allEQMapPre( shangchuanshipin, "shangchuanshipin"));
ShangchuanshipinView shangchuanshipinView = shangchuanshipinService.selectView(ew);
return R.ok("查询上传视频成功").put("data", shangchuanshipinView);
}
/**
* 后端详情
*/
@RequestMapping("/info/{id}")
public R info(@PathVariable("id") Long id){
ShangchuanshipinEntity shangchuanshipin = shangchuanshipinService.selectById(id);
return R.ok().put("data", shangchuanshipin);
}
/**
* 前端详情
*/
@RequestMapping("/detail/{id}")
public R detail(@PathVariable("id") Long id){
ShangchuanshipinEntity shangchuanshipin = shangchuanshipinService.selectById(id);
return R.ok().put("data", shangchuanshipin);
}
/**
* 后端保存
*/
@RequestMapping("/save")
public R save(@RequestBody ShangchuanshipinEntity shangchuanshipin, HttpServletRequest request){
shangchuanshipin.setId(new Date().getTime()+new Double(Math.floor(Math.random()*1000)).longValue());
//ValidatorUtils.validateEntity(shangchuanshipin);
shangchuanshipin.setUserid((Long)request.getSession().getAttribute("userId"));
shangchuanshipinService.insert(shangchuanshipin);
return R.ok();
}
/**
* 前端保存
*/
@RequestMapping("/add")
public R add(@RequestBody ShangchuanshipinEntity shangchuanshipin, HttpServletRequest request){
shangchuanshipin.setId(new Date().getTime()+new Double(Math.floor(Math.random()*1000)).longValue());
//ValidatorUtils.validateEntity(shangchuanshipin);
shangchuanshipin.setUserid((Long)request.getSession().getAttribute("userId"));
shangchuanshipinService.insert(shangchuanshipin);
return R.ok();
}
/**
* 修改
*/
@RequestMapping("/update")
public R update(@RequestBody ShangchuanshipinEntity shangchuanshipin, HttpServletRequest request){
//ValidatorUtils.validateEntity(shangchuanshipin);
shangchuanshipinService.updateById(shangchuanshipin);//全部更新
return R.ok();
}
/**
* 删除
*/
@RequestMapping("/delete")
public R delete(@RequestBody Long[] ids){
shangchuanshipinService.deleteBatchIds(Arrays.asList(ids));
return R.ok();
}
/**
* 提醒接口
*/
@RequestMapping("/remind/{columnName}/{type}")
public R remindCount(@PathVariable("columnName") String columnName, HttpServletRequest request,
@PathVariable("type") String type,@RequestParam Map<String, Object> map) {
map.put("column", columnName);
map.put("type", type);
if(type.equals("2")) {
SimpleDateFormat sdf = new SimpleDateFormat("yyyy-MM-dd");
Calendar c = Calendar.getInstance();
Date remindStartDate = null;
Date remindEndDate = null;
if(map.get("remindstart")!=null) {
Integer remindStart = Integer.parseInt(map.get("remindstart").toString());
c.setTime(new Date());
c.add(Calendar.DAY_OF_MONTH,remindStart);
remindStartDate = c.getTime();
map.put("remindstart", sdf.format(remindStartDate));
}
if(map.get("remindend")!=null) {
Integer remindEnd = Integer.parseInt(map.get("remindend").toString());
c.setTime(new Date());
c.add(Calendar.DAY_OF_MONTH,remindEnd);
remindEndDate = c.getTime();
map.put("remindend", sdf.format(remindEndDate));
}
}
Wrapper<ShangchuanshipinEntity> wrapper = new EntityWrapper<ShangchuanshipinEntity>();
if(map.get("remindstart")!=null) {
wrapper.ge(columnName, map.get("remindstart"));
}
if(map.get("remindend")!=null) {
wrapper.le(columnName, map.get("remindend"));
}
if(!request.getSession().getAttribute("role").toString().equals("管理员")) {
wrapper.eq("userid", (Long)request.getSession().getAttribute("userId"));
}
String tableName = request.getSession().getAttribute("tableName").toString();
if(tableName.equals("yonghu")) {
wrapper.eq("yonghuzhanghao", (String)request.getSession().getAttribute("username"));
}
int count = shangchuanshipinService.selectCount(wrapper);
return R.ok().put("count", count);
}
}
获取源码或论文
如需对应的论文或源码,以及其他定制需求,也可以下方微信联系我。