大家好!我是程序员一帆,感谢您阅读本文,欢迎一键三连哦。
💞当前专栏:微信小程序毕业设计
精彩专栏推荐👇🏻👇🏻👇🏻
开发运行环境
①前端:微信小程序开发工具
② 后端:Java
- 框架:ssm
- JDK版本:JDK1.8
- 服务器:tomcat7
- 数据库:mysql 5.7
- 数据库工具:Navicat12
- 开发软件:eclipse/myeclipse/idea
- Maven包:Maven3.3.9
- 浏览器:谷歌浏览器
演示视频
前端:
weixin115音乐播放器的设计与实现-微信端
后端:
weixin115音乐播放器的设计与实现-服务端
原版高清演示视频-编号:115
https://pan.quark.cn/s/c0c9519df9d4
源码下载地址:
https://download.csdn.net/download/2301_76953549/89090164
论文目录
【如需全文请按文末获取联系】
一、项目简介
本系统分为用户和管理员两个角色,用户的操作主要为微信端,管理员的操作为服务端。用户在微信端可以根据不同的分类浏览歌曲,可以播放、收藏和评论,办理会员和管理收藏信息等;管理员可以管理歌曲信息、用户信息、会员优惠信息以及会员办理和会员信息等。用户和管理员的功能相互串连形成完整的基于微信小程序的音乐播放器。
二、系统设计
2.1软件功能模块设计
本系统的微信端功能模块结构图如下图3.1所示:
本系统的服务端功能模块结构图如下图3.2所示:
2.2数据库设计
(1)用户信息包括编号、密码、账号、性别等,用户信息ER图如下图3.4所示:
(2)管理员信息包括账户、密码、权限三个,管理员ER图如下图3.5所示:
(3)评论信息包括评论编号、用户编号、用户名和评论时间等,评论信息ER图如下图3.6所示:
(4)歌曲信息包括编号、名称、分类等,歌曲信息ER图如下图3.7所示:
三、系统项目部分截图
3.1系统首页界面的设计实现
系统的首页可以看到标题、功能导航栏、搜索框、歌曲信息等,在首页的上方可以看到搜索框、背景图片。系统首页的功能设计效果如下图4.1所示:
用户注册功能的设计实现
为了保证系统的安全性和满足用户的听歌要求,用户需要先进行注册才可以进行操作,用户注册时需要注意表单信息的填写,在表单信息填写完成后,系统可以实现对表单信息进行自我检测,当检测为正确时,可以实现注册成功,当有信息检测为错误时会提示重新填写。用户注册成功后系统会把填写的表单保存到数据库中。用户注册的实现界面如下图4.2所示:
歌曲信息功能的设计实现
歌曲信息为基本的功能,歌曲信息可以按照推荐进行排名,对于歌曲信息的展示以图片展示为主,可以使用户更加的一目了然,歌曲信息的实现界面如下图4.5所示:
3.2管理员功能模块的设计实现
管理员可以管理用户信息、歌曲信息、会员优惠信息和会员办理信息、歌曲分类信息等。管理员的实现界面如下图4.10所示:
四、部分核心代码
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.HuiyuanxinxiEntity;
import com.entity.view.HuiyuanxinxiView;
import com.service.HuiyuanxinxiService;
import com.service.TokenService;
import com.utils.PageUtils;
import com.utils.R;
import com.utils.MD5Util;
import com.utils.MPUtil;
import com.utils.CommonUtil;
/**
* 会员信息
* 后端接口
* @author
* @email
* @date 2021-04-06 21:26:24
*/
@RestController
@RequestMapping("/huiyuanxinxi")
public class HuiyuanxinxiController {
@Autowired
private HuiyuanxinxiService huiyuanxinxiService;
/**
* 后端列表
*/
@RequestMapping("/page")
public R page(@RequestParam Map<String, Object> params,HuiyuanxinxiEntity huiyuanxinxi,
HttpServletRequest request){
String tableName = request.getSession().getAttribute("tableName").toString();
if(tableName.equals("yonghu")) {
huiyuanxinxi.setZhanghao((String)request.getSession().getAttribute("username"));
}
EntityWrapper<HuiyuanxinxiEntity> ew = new EntityWrapper<HuiyuanxinxiEntity>();
PageUtils page = huiyuanxinxiService.queryPage(params, MPUtil.sort(MPUtil.between(MPUtil.likeOrEq(ew, huiyuanxinxi), params), params));
return R.ok().put("data", page);
}
/**
* 前端列表
*/
@RequestMapping("/list")
public R list(@RequestParam Map<String, Object> params,HuiyuanxinxiEntity huiyuanxinxi, HttpServletRequest request){
String tableName = request.getSession().getAttribute("tableName").toString();
if(tableName.equals("yonghu")) {
huiyuanxinxi.setZhanghao((String)request.getSession().getAttribute("username"));
}
EntityWrapper<HuiyuanxinxiEntity> ew = new EntityWrapper<HuiyuanxinxiEntity>();
PageUtils page = huiyuanxinxiService.queryPage(params, MPUtil.sort(MPUtil.between(MPUtil.likeOrEq(ew, huiyuanxinxi), params), params));
return R.ok().put("data", page);
}
/**
* 列表
*/
@RequestMapping("/lists")
public R list( HuiyuanxinxiEntity huiyuanxinxi){
EntityWrapper<HuiyuanxinxiEntity> ew = new EntityWrapper<HuiyuanxinxiEntity>();
ew.allEq(MPUtil.allEQMapPre( huiyuanxinxi, "huiyuanxinxi"));
return R.ok().put("data", huiyuanxinxiService.selectListView(ew));
}
/**
* 查询
*/
@RequestMapping("/query")
public R query(HuiyuanxinxiEntity huiyuanxinxi){
EntityWrapper< HuiyuanxinxiEntity> ew = new EntityWrapper< HuiyuanxinxiEntity>();
ew.allEq(MPUtil.allEQMapPre( huiyuanxinxi, "huiyuanxinxi"));
HuiyuanxinxiView huiyuanxinxiView = huiyuanxinxiService.selectView(ew);
return R.ok("查询会员信息成功").put("data", huiyuanxinxiView);
}
/**
* 后端详情
*/
@RequestMapping("/info/{id}")
public R info(@PathVariable("id") Long id){
HuiyuanxinxiEntity huiyuanxinxi = huiyuanxinxiService.selectById(id);
return R.ok().put("data", huiyuanxinxi);
}
/**
* 前端详情
*/
@RequestMapping("/detail/{id}")
public R detail(@PathVariable("id") Long id){
HuiyuanxinxiEntity huiyuanxinxi = huiyuanxinxiService.selectById(id);
return R.ok().put("data", huiyuanxinxi);
}
/**
* 后端保存
*/
@RequestMapping("/save")
public R save(@RequestBody HuiyuanxinxiEntity huiyuanxinxi, HttpServletRequest request){
huiyuanxinxi.setId(new Date().getTime()+new Double(Math.floor(Math.random()*1000)).longValue());
//ValidatorUtils.validateEntity(huiyuanxinxi);
huiyuanxinxiService.insert(huiyuanxinxi);
return R.ok();
}
/**
* 前端保存
*/
@RequestMapping("/add")
public R add(@RequestBody HuiyuanxinxiEntity huiyuanxinxi, HttpServletRequest request){
huiyuanxinxi.setId(new Date().getTime()+new Double(Math.floor(Math.random()*1000)).longValue());
//ValidatorUtils.validateEntity(huiyuanxinxi);
huiyuanxinxi.setUserid((Long)request.getSession().getAttribute("userId"));
huiyuanxinxiService.insert(huiyuanxinxi);
return R.ok();
}
/**
* 修改
*/
@RequestMapping("/update")
public R update(@RequestBody HuiyuanxinxiEntity huiyuanxinxi, HttpServletRequest request){
//ValidatorUtils.validateEntity(huiyuanxinxi);
huiyuanxinxiService.updateById(huiyuanxinxi);//全部更新
return R.ok();
}
/**
* 删除
*/
@RequestMapping("/delete")
public R delete(@RequestBody Long[] ids){
huiyuanxinxiService.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<HuiyuanxinxiEntity> wrapper = new EntityWrapper<HuiyuanxinxiEntity>();
if(map.get("remindstart")!=null) {
wrapper.ge(columnName, map.get("remindstart"));
}
if(map.get("remindend")!=null) {
wrapper.le(columnName, map.get("remindend"));
}
String tableName = request.getSession().getAttribute("tableName").toString();
if(tableName.equals("yonghu")) {
wrapper.eq("zhanghao", (String)request.getSession().getAttribute("username"));
}
int count = huiyuanxinxiService.selectCount(wrapper);
return R.ok().put("count", count);
}
}
五、获取源码或论文
如需对应的论文或源码,以及其他定制需求,也可以点我头像查看个人简介联系。