使用技术:
后端:SpringBoot+MYbatis-plus+SpringMvc
前端:html+css+js+layui+ajax
数据库:Mysql
功能模块:
系统分为用户端和管理员端
用户端:
-
用户登录注册
-
课程查看,用户可以点击课程学习,每个课程有自己的视频资料,章节资料,还会有自己的练习题
-
咨询查看
-
题库(模拟测试+刷题)
-
关于我们:调用百度地图展示地图信息
-
个人中心,课程收藏,错题收藏等等
-
讲师,用户可以关注自己喜欢的讲师,查看讲师的课程
管理员端:
-
管理员登录
-
系统首页,Echars图表展示
-
课程管理:章节列表管理,题库管理,视频管理
-
用户管理:讲师列表,讲师标签,学生列表
-
资讯管理:资讯列表
-
分类信息:课程分类管理
-
系统管理:系统管理员管理,轮播图管理
package com.hp.controller.reception;
import com.hp.bean.base.ControllerResultData;
import com.hp.bean.entity.backstage.Banner;
import com.hp.service.reception.BannerServices;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RequestParam;
import org.springframework.web.bind.annotation.RestController;
import org.springframework.web.multipart.MultipartFile;
import java.io.IOException;
import java.util.ArrayList;
import java.util.List;
/**
* @Description: 轮播图控制层
* @Author:
*/
@RestController
public class BannerController {
@Autowired
private BannerServices bannerServices;
/**查询轮播集合 可带分页参数*/
@RequestMapping("/reception/banner/findList")
public ControllerResultData> findList(Banner banner){
return bannerServices.findList(banner);
}
/**删除和批量删除*/
@RequestMapping("/reception/banner/delByIds")
public ControllerResultData delByIds(String ids) {
List list = new ArrayList<>();
String[] ids1 = ids.split(",");
for (int i = 0; i < ids1.length; i++) {
list.add(Integer.parseInt(ids1[i]));
}
return bannerServices.delBannerByIds(list);
}
/**添加*/
@PostMapping("/reception/banner/insert")
public ControllerResultData insert(Banner banner){
return bannerServices.insert(banner);
}
/**通过id进行修改*/
@PostMapping("/reception/banner/updateById")
public ControllerResultData updateById(Banner banner){
return bannerServices.updateById(banner);
}
/**封面图片上传*/
@PostMapping("/reception/banner/uploadBannerImg")
public ControllerResultData uploadLessonImg(@RequestParam("file")MultipartFile filename, Banner banner) throws IOException {
return bannerServices.uploadBannerImg(filename,banner);
}
/**上下架 *** 作*/
@PostMapping("/reception/banner/updateStatus")
public ControllerResultData updateStatus(Banner banner){
return bannerServices.updateStatus(banner);
}
}
源码直达:me: javahttps://gitee.com/wuyanzua/me
欢迎分享,转载请注明来源:内存溢出
评论列表(0条)