大家好!我是岛上程序猿,感谢您阅读本文,欢迎一键三连哦。
💞当前专栏:微信小程序毕业设计
精彩专栏推荐👇🏻👇🏻👇🏻
开发环境
①前端:微信小程序开发工具
② 后端:Java
框架:ssm
JDK版本:JDK1.8
服务器:tomcat7
数据库:mysql 5.7
数据库工具:Navicat12
开发软件:eclipse/myeclipse/idea
Maven包:Maven3.3.9
浏览器:谷歌浏览器
演示视频
前端:
weixin026原创音乐小程序的设计与实现-微信端
后端:
weixin026原创音乐小程序的设计与实现-服务端
原版高清演示视频-编号:026
https://pan.quark.cn/s/c0c9519df9d4
源码下载地址:
https://download.csdn.net/download/m0_46388260/89086931
LW目录
【如需全文请按文末获取联系】
目录
一、项目简介
微信的原创音乐小程序的设计主要是对系统所要实现的功能进行详细考虑,确定所要实现的功能后进行界面的设计,在这中间还要考虑如何可以更好的将功能及页面进行很好的结合,方便用户可以在手机微信小程序上进行查看歌曲信息歌手信息等操作,还有系统平台后期的可操作性,通过对个人中心、歌曲信息、歌手信息、新闻资讯、系统管理等内容的详细了解和处理进行技术的开发。
二、系统设计
2.1软件功能模块设计
基于微信的微信的原创音乐小程序小程序的设计基于现有的个人中心、教师管理、请假信息管理、个人认证管理、课程信息管理、课程记录管理、课程统计管理、留言板管理、系统管理等功能。方便用户对微信的原创音乐小程序查看首页、课程信息、公告信息、我的等功能模块,进行相对应操作。根据系统功能需求建立的模块关系图如下图:
2.2数据库设计
(1)管理员信息数据E-R图,如图4-3所示:
(2)用户信息数据E-R图如图4-4所示:
(4)歌曲信息管理数据E-R图如图4-5所示:
(5)歌手信息管理数据E-R图如图4-6所示:
三、系统项目部分截图
3.1管理员功能模块
管理员通过登录窗口,进行在线填写管理员的用户名和密码,信息编辑完成后核对所输入的信息,信息编辑完成后核对信息准确无误后进行提交,进入到系统操作界面,如图5.1所示。
管理员进入后台页面,可以查看个人中心、用户管理、歌曲类型管理、歌曲信息管理、热门歌手管理、音乐资讯管理、系统管理等功能模块进行查看操作。
用户管理:通过列表可以查看用户账号、用户姓名、性别、年龄、头像、用户手机等信息进行查看、修改或删除操作,也可以通过新增进行添加用户信息,进行用户名查询或重置操作,如图5.2所示。
热门歌手管理:通过列表可以查看歌手姓名、歌手性别、头像、歌曲流派、标签、热门歌曲等信息,进行查看歌手信息、新增、修改或删除操作,还可以通过歌手信息,进行查看评论,也可以通过输入歌手姓名、歌手性别、歌曲流派、标签进行查找操作,如图5-4所示。
3.2用户功能模块
用户通过到界面,通过界面的原创音乐小程序,可以进行通过注册输入用户账号、密码、用户姓名、性别、年龄、用户手机等信息,进行注册操作,如图5-6所示。用户通过登录页面,输入账号、密码、验证码输入无误后进行登录操作,如图5-7所示。
用户进入到原创音乐小程序界面,通过首页可以进行查看首页、歌曲信息、热门歌手、音乐资讯、我的等功能模块,进行相对应操作,如图5-8所示。
歌手信息:通过列表可以查看歌手姓名、歌手性别、头像、歌曲流派、标签、热门歌曲等信息,进行查看歌手信息、或进行收藏歌手或进行查看评价信息或在线评价操作,,如图5-10所示。
用户信息:通过列表可以进行输入用户账号、密码、用户姓名、性别、年龄、头像、用户手机等信息,进行保存或退出登录操作,如图5-12所示。
四、部分核心代码
4.1 用户部分
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.GequleixingEntity;
import com.entity.view.GequleixingView;
import com.service.GequleixingService;
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-03-14 11:56:01
*/
@RestController
@RequestMapping("/gequleixing")
public class GequleixingController {
@Autowired
private GequleixingService gequleixingService;
/**
* 后端列表
*/
@RequestMapping("/page")
public R page(@RequestParam Map<String, Object> params,GequleixingEntity gequleixing,
HttpServletRequest request){
EntityWrapper<GequleixingEntity> ew = new EntityWrapper<GequleixingEntity>();
PageUtils page = gequleixingService.queryPage(params, MPUtil.sort(MPUtil.between(MPUtil.likeOrEq(ew, gequleixing), params), params));
return R.ok().put("data", page);
}
/**
* 前端列表
*/
@RequestMapping("/list")
public R list(@RequestParam Map<String, Object> params,GequleixingEntity gequleixing, HttpServletRequest request){
EntityWrapper<GequleixingEntity> ew = new EntityWrapper<GequleixingEntity>();
PageUtils page = gequleixingService.queryPage(params, MPUtil.sort(MPUtil.between(MPUtil.likeOrEq(ew, gequleixing), params), params));
return R.ok().put("data", page);
}
/**
* 列表
*/
@RequestMapping("/lists")
public R list( GequleixingEntity gequleixing){
EntityWrapper<GequleixingEntity> ew = new EntityWrapper<GequleixingEntity>();
ew.allEq(MPUtil.allEQMapPre( gequleixing, "gequleixing"));
return R.ok().put("data", gequleixingService.selectListView(ew));
}
/**
* 查询
*/
@RequestMapping("/query")
public R query(GequleixingEntity gequleixing){
EntityWrapper< GequleixingEntity> ew = new EntityWrapper< GequleixingEntity>();
ew.allEq(MPUtil.allEQMapPre( gequleixing, "gequleixing"));
GequleixingView gequleixingView = gequleixingService.selectView(ew);
return R.ok("查询歌曲类型成功").put("data", gequleixingView);
}
/**
* 后端详情
*/
@RequestMapping("/info/{id}")
public R info(@PathVariable("id") Long id){
GequleixingEntity gequleixing = gequleixingService.selectById(id);
return R.ok().put("data", gequleixing);
}
/**
* 前端详情
*/
@RequestMapping("/detail/{id}")
public R detail(@PathVariable("id") Long id){
GequleixingEntity gequleixing = gequleixingService.selectById(id);
return R.ok().put("data", gequleixing);
}
/**
* 后端保存
*/
@RequestMapping("/save")
public R save(@RequestBody GequleixingEntity gequleixing, HttpServletRequest request){
gequleixing.setId(new Date().getTime()+new Double(Math.floor(Math.random()*1000)).longValue());
//ValidatorUtils.validateEntity(gequleixing);
gequleixingService.insert(gequleixing);
return R.ok();
}
/**
* 前端保存
*/
@RequestMapping("/add")
public R add(@RequestBody GequleixingEntity gequleixing, HttpServletRequest request){
gequleixing.setId(new Date().getTime()+new Double(Math.floor(Math.random()*1000)).longValue());
//ValidatorUtils.validateEntity(gequleixing);
gequleixingService.insert(gequleixing);
return R.ok();
}
/**
* 修改
*/
@RequestMapping("/update")
public R update(@RequestBody GequleixingEntity gequleixing, HttpServletRequest request){
//ValidatorUtils.validateEntity(gequleixing);
gequleixingService.updateById(gequleixing);//全部更新
return R.ok();
}
/**
* 删除
*/
@RequestMapping("/delete")
public R delete(@RequestBody Long[] ids){
gequleixingService.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<GequleixingEntity> wrapper = new EntityWrapper<GequleixingEntity>();
if(map.get("remindstart")!=null) {
wrapper.ge(columnName, map.get("remindstart"));
}
if(map.get("remindend")!=null) {
wrapper.le(columnName, map.get("remindend"));
}
int count = gequleixingService.selectCount(wrapper);
return R.ok().put("count", count);
}
}
获取源码或论文
如需对应的LW或源码,以及其他定制需求,也可以下方微信联系我。