96SEO 2026-02-20 04:49 10
用户歌单分类分页界面歌手分类分页界面我的音乐查看收藏歌曲搜索音乐可根据歌手、歌曲、歌单名进行搜索头像修改、用户信息修改歌曲播放进度条拉伸歌词加载歌曲收藏歌曲下载登录、注册等

管理员系统首页展示统计数据用户管理歌手管理歌曲管理修改音源歌词后台评论上传音乐
com.rabbiter.music.controller;import
com.alibaba.fastjson.JSONObject;
com.rabbiter.music.pojo.Collect;
com.rabbiter.music.service.CollectService;
com.rabbiter.music.utils.Consts;
io.swagger.annotations.ApiOperation;
org.springframework.beans.factory.annotation.Autowired;
org.springframework.web.bind.annotation.RequestMapping;
org.springframework.web.bind.annotation.RequestMethod;
org.springframework.web.bind.annotation.RestController;
javax.servlet.http.HttpServletRequest;/***
//歌曲idif(songIdnull||songId.equals()){jsonObject.put(Consts.CODE,0);jsonObject.put(Consts.MSG,收藏歌曲为空);return
jsonObject;}if(CollectService.existSongId(Integer.parseInt(userId),Integer.parseInt(songId))){jsonObject.put(Consts.CODE,2);jsonObject.put(Consts.MSG,已收藏);return
Collect();Collect.setUserId(Integer.parseInt(userId));Collect.setType(new
Byte(type));Collect.setSongId(Integer.parseInt(songId));boolean
CollectService.insert(Collect);if(flag){
//保存成功jsonObject.put(Consts.CODE,1);jsonObject.put(Consts.MSG,收藏成功);return
jsonObject;}jsonObject.put(Consts.CODE,0);jsonObject.put(Consts.MSG,收藏失败);return
deleteCollect(HttpServletRequest
CollectService.deleteByUserIdSongId(Integer.parseInt(userId),Integer.parseInt(songId));return
CollectService.allCollect();}/***
查询某个用户的收藏列表*/ApiOperation(value
collectOfUserId(HttpServletRequest
CollectService.collectOfUserId(Integer.parseInt(userId));}}
com.rabbiter.music.controller;import
com.alibaba.fastjson.JSONObject;
com.rabbiter.music.pojo.Comment;
com.rabbiter.music.service.CommentService;
com.rabbiter.music.utils.Consts;
io.swagger.annotations.ApiOperation;
org.springframework.beans.factory.annotation.Autowired;
org.springframework.web.bind.annotation.RequestMapping;
org.springframework.web.bind.annotation.RequestMethod;
org.springframework.web.bind.annotation.RestController;
javax.servlet.http.HttpServletRequest;/***
request.getParameter(songListId);
request.getParameter(content).trim();
Comment();comment.setUserId(Integer.parseInt(userId));comment.setType(new
0){comment.setSongId(Integer.parseInt(songId));}else{comment.setSongListId(Integer.parseInt(songListId));}comment.setContent(content);boolean
commentService.insert(comment);if(flag){
//保存成功jsonObject.put(Consts.CODE,1);jsonObject.put(Consts.MSG,评论成功);return
jsonObject;}jsonObject.put(Consts.CODE,0);jsonObject.put(Consts.MSG,评论失败);return
updateComment(HttpServletRequest
request.getParameter(id).trim();
request.getParameter(userId).trim();
request.getParameter(type).trim();
request.getParameter(songId).trim();
request.getParameter(songListId).trim();
request.getParameter(content).trim();
Comment();comment.setId(Integer.parseInt(id));comment.setUserId(Integer.parseInt(userId));comment.setType(new
Byte(type));if(songId!nullsongId.equals()){songId
{comment.setSongId(Integer.parseInt(songId));}if(songListId!nullsongListId.equals()){songListId
{comment.setSongListId(Integer.parseInt(songListId));}comment.setContent(content);boolean
commentService.update(comment);if(flag){
//保存成功jsonObject.put(Consts.CODE,1);jsonObject.put(Consts.MSG,修改成功);return
jsonObject;}jsonObject.put(Consts.CODE,0);jsonObject.put(Consts.MSG,修改失败);return
deleteComment(HttpServletRequest
request.getParameter(id).trim();
commentService.delete(Integer.parseInt(id));return
根据主键查询整个对象)RequestMapping(value
selectByPrimaryKey(HttpServletRequest
request.getParameter(id).trim();
commentService.selectByPrimaryKey(Integer.parseInt(id));}/***
commentService.allComment();}/***
查询某个歌曲下的所有评论*/ApiOperation(value
查询某个歌曲下的所有评论)RequestMapping(value
commentOfSongId(HttpServletRequest
commentService.commentOfSongId(Integer.parseInt(songId));}/***
查询某个歌单下的所有评论*/ApiOperation(value
查询某个歌单下的所有评论)RequestMapping(value
commentOfSongListId(HttpServletRequest
request.getParameter(songListId);
commentService.commentOfSongListId(Integer.parseInt(songListId));}/***
request.getParameter(id).trim();
request.getParameter(up).trim();
Comment();comment.setId(Integer.parseInt(id));comment.setUp(Integer.parseInt(up));boolean
commentService.update(comment);if(flag){
//保存成功jsonObject.put(Consts.CODE,1);jsonObject.put(Consts.MSG,点赞成功);return
jsonObject;}jsonObject.put(Consts.CODE,0);jsonObject.put(Consts.MSG,点赞失败);return
com.rabbiter.music.controller;import
com.alibaba.fastjson.JSONObject;
com.rabbiter.music.pojo.Consumer;
com.rabbiter.music.service.ConsumerService;
com.rabbiter.music.utils.Consts;
io.swagger.annotations.ApiOperation;
org.springframework.beans.factory.annotation.Autowired;
org.springframework.web.bind.annotation.RequestMapping;
org.springframework.web.bind.annotation.RequestMethod;
org.springframework.web.bind.annotation.RequestParam;
org.springframework.web.bind.annotation.RestController;
org.springframework.web.multipart.MultipartFile;
javax.servlet.http.HttpServletRequest;
request.getParameter(username).trim();
request.getParameter(password).trim();
request.getParameter(sex).trim();
request.getParameter(phoneNum).trim();
request.getParameter(email).trim();
request.getParameter(birth).trim();
request.getParameter(introduction).trim();//签名String
request.getParameter(location).trim();
request.getParameter(avator).trim();
//头像地址if(usernamenull||username.equals()){jsonObject.put(Consts.CODE,0);jsonObject.put(Consts.MSG,用户名不能为空);return
consumerService.getByUsername(username);if(consumer1!null){jsonObject.put(Consts.CODE,0);jsonObject.put(Consts.MSG,用户名已存在);return
jsonObject;}if(passwordnull||password.equals()){jsonObject.put(Consts.CODE,0);jsonObject.put(Consts.MSG,密码不能为空);return
jsonObject;}//把生日转换成Date格式DateFormat
SimpleDateFormat(yyyy-MM-dd);Date
{e.printStackTrace();}//保存到前端用户的对象中Consumer
Consumer();consumer.setUsername(username);consumer.setPassword(password);consumer.setSex(new
Byte(sex));consumer.setPhoneNum(phoneNum);consumer.setEmail(email);consumer.setBirth(birthDate);consumer.setIntroduction(introduction);consumer.setLocation(location);consumer.setAvator(avator);boolean
consumerService.insert(consumer);if(flag){
//保存成功jsonObject.put(Consts.CODE,1);jsonObject.put(Consts.MSG,添加成功);return
jsonObject;}jsonObject.put(Consts.CODE,0);jsonObject.put(Consts.MSG,添加失败);return
updateConsumer(HttpServletRequest
request.getParameter(id).trim();
request.getParameter(username).trim();
request.getParameter(password).trim();
request.getParameter(sex).trim();
request.getParameter(phoneNum).trim();
request.getParameter(email).trim();
request.getParameter(birth).trim();
request.getParameter(introduction).trim();//签名String
request.getParameter(location).trim();
//地区if(usernamenull||username.equals()){jsonObject.put(Consts.CODE,0);jsonObject.put(Consts.MSG,用户名不能为空);return
jsonObject;}if(passwordnull||password.equals()){jsonObject.put(Consts.CODE,0);jsonObject.put(Consts.MSG,密码不能为空);return
jsonObject;}//把生日转换成Date格式DateFormat
SimpleDateFormat(yyyy-MM-dd);Date
{e.printStackTrace();}//保存到前端用户的对象中Consumer
Consumer();consumer.setId(Integer.parseInt(id));consumer.setUsername(username);consumer.setPassword(password);consumer.setSex(new
Byte(sex));consumer.setPhoneNum(phoneNum);consumer.setEmail(email);consumer.setBirth(birthDate);consumer.setIntroduction(introduction);consumer.setLocation(location);boolean
consumerService.update(consumer);if(flag){
//保存成功jsonObject.put(Consts.CODE,1);jsonObject.put(Consts.MSG,修改成功);return
jsonObject;}jsonObject.put(Consts.CODE,0);jsonObject.put(Consts.MSG,修改失败);return
deleteConsumer(HttpServletRequest
request.getParameter(id).trim();
consumerService.delete(Integer.parseInt(id));return
根据主键查询整个对象)RequestMapping(value
selectByPrimaryKey(HttpServletRequest
request.getParameter(id).trim();
consumerService.selectByPrimaryKey(Integer.parseInt(id));}/***
consumerService.allConsumer();}/***
updateConsumerPic(RequestParam(file)
JSONObject();if(avatorFile.isEmpty()){jsonObject.put(Consts.CODE,0);jsonObject.put(Consts.MSG,文件上传失败);return
jsonObject;}//文件名当前时间到毫秒原来的文件名String
System.currentTimeMillis()avatorFile.getOriginalFilename();//文件路径String
System.getProperty(user.dir)System.getProperty(file.separator)userImages;//如果文件路径不存在新增该路径File
File(filePath);if(!file1.exists()){file1.mkdir();}//实际的文件地址File
File(filePathSystem.getProperty(file.separator)fileName);//存储到数据库里的相对文件地址String
{avatorFile.transferTo(dest);Consumer
Consumer();consumer.setId(id);consumer.setAvator(storeAvatorPath);boolean
consumerService.update(consumer);if(flag){jsonObject.put(Consts.CODE,1);jsonObject.put(Consts.MSG,上传成功);jsonObject.put(avator,storeAvatorPath);return
jsonObject;}jsonObject.put(Consts.CODE,0);jsonObject.put(Consts.MSG,上传失败);return
{jsonObject.put(Consts.CODE,0);jsonObject.put(Consts.MSG,上传失败e.getMessage());}finally
request.getParameter(username).trim();
request.getParameter(password).trim();
//密码if(usernamenull||username.equals()){jsonObject.put(Consts.CODE,0);jsonObject.put(Consts.MSG,用户名不能为空);return
jsonObject;}if(passwordnull||password.equals()){jsonObject.put(Consts.CODE,0);jsonObject.put(Consts.MSG,密码不能为空);return
jsonObject;}//保存到前端用户的对象中Consumer
Consumer();consumer.setUsername(username);consumer.setPassword(password);boolean
consumerService.verifyPassword(username,password);if(flag){
//验证成功jsonObject.put(Consts.CODE,1);jsonObject.put(Consts.MSG,登录成功);jsonObject.put(userMsg,consumerService.getByUsername(username));return
jsonObject;}jsonObject.put(Consts.CODE,0);jsonObject.put(Consts.MSG,用户名或密码错误);return
作为专业的SEO优化服务提供商,我们致力于通过科学、系统的搜索引擎优化策略,帮助企业在百度、Google等搜索引擎中获得更高的排名和流量。我们的服务涵盖网站结构优化、内容优化、技术SEO和链接建设等多个维度。
| 服务项目 | 基础套餐 | 标准套餐 | 高级定制 |
|---|---|---|---|
| 关键词优化数量 | 10-20个核心词 | 30-50个核心词+长尾词 | 80-150个全方位覆盖 |
| 内容优化 | 基础页面优化 | 全站内容优化+每月5篇原创 | 个性化内容策略+每月15篇原创 |
| 技术SEO | 基本技术检查 | 全面技术优化+移动适配 | 深度技术重构+性能优化 |
| 外链建设 | 每月5-10条 | 每月20-30条高质量外链 | 每月50+条多渠道外链 |
| 数据报告 | 月度基础报告 | 双周详细报告+分析 | 每周深度报告+策略调整 |
| 效果保障 | 3-6个月见效 | 2-4个月见效 | 1-3个月快速见效 |
我们的SEO优化服务遵循科学严谨的流程,确保每一步都基于数据分析和行业最佳实践:
全面检测网站技术问题、内容质量、竞争对手情况,制定个性化优化方案。
基于用户搜索意图和商业目标,制定全面的关键词矩阵和布局策略。
解决网站技术问题,优化网站结构,提升页面速度和移动端体验。
创作高质量原创内容,优化现有页面,建立内容更新机制。
获取高质量外部链接,建立品牌在线影响力,提升网站权威度。
持续监控排名、流量和转化数据,根据效果调整优化策略。
基于我们服务的客户数据统计,平均优化效果如下:
我们坚信,真正的SEO优化不仅仅是追求排名,而是通过提供优质内容、优化用户体验、建立网站权威,最终实现可持续的业务增长。我们的目标是与客户建立长期合作关系,共同成长。
Demand feedback