package com.wangxin.langshu.business.mobile.controller;
import java.text.SimpleDateFormat;
import java.util.ArrayList;
import java.util.Arrays;
import java.util.Date;
import java.util.HashMap;
import java.util.List;
import java.util.Map;
import javax.servlet.http.HttpServletRequest;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.data.redis.core.RedisTemplate;
import org.springframework.web.bind.annotation.RequestBody;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RequestMethod;
import org.springframework.web.bind.annotation.RequestParam;
import org.springframework.web.bind.annotation.RestController;
import com.baomidou.mybatisplus.core.toolkit.CollectionUtils;
import com.baomidou.mybatisplus.core.toolkit.StringUtils;
import com.wangxin.langshu.business.edu.iservice.course.pcboss.IPcBossAdvertBiz;
import com.wangxin.langshu.business.edu.iservice.course.pcboss.IPcBossCourseSubjectBiz;
import com.wangxin.langshu.business.edu.iservice.course.pccommon.IApiCourseBiz;
import com.wangxin.langshu.business.edu.iservice.course.pccommon.IApiCourseVideoBiz;
import com.wangxin.langshu.business.edu.iservice.course.pccommon.IApiTopicBiz;
import com.wangxin.langshu.business.edu.iservice.course.pcmobile.fresh.IPcMobileFreshCourseService;
import com.wangxin.langshu.business.edu.iservice.course.pcmobile.fresh.IPcMobileFreshTopicService;
import com.wangxin.langshu.business.edu.iservice.course.pcweb.IPcWebCourseBiz;
import com.wangxin.langshu.business.edu.iservice.course.pcweb.IPcWebCourseUserService;
import com.wangxin.langshu.business.edu.iservice.course.pcweb.IPcWebCourseVideoBiz;
import com.wangxin.langshu.business.edu.iservice.course.pcweb.fresh.IPcWebFreshCourseVideoService;
import com.wangxin.langshu.business.edu.iservice.course.pcweb.fresh.IPcWebFreshLessonService;
import com.wangxin.langshu.business.edu.iservice.exam.pccommon.IExamQuestionCourseService;
import com.wangxin.langshu.business.edu.iservice.system.pccommon.IMobileMiddleNavigationService;
import com.wangxin.langshu.business.edu.iservice.system.pccommon.INewsService;
import com.wangxin.langshu.business.edu.iservice.user.pccommon.IApiUserInfoBiz;
import com.wangxin.langshu.business.edu.iservice.user.pcweb.IPcWebStudentBiz;
import com.wangxin.langshu.business.edu.vo.course.courseUser.CourseUserQ;
import com.wangxin.langshu.business.edu.vo.course.courseUser.CourseUserVo;
import com.wangxin.langshu.business.edu.vo.course.fresh.chapter.FreshChapterMobileViewVo;
import com.wangxin.langshu.business.edu.vo.course.fresh.course.FreshCourseMobileView;
import com.wangxin.langshu.business.edu.vo.course.fresh.courseVideo.FreshCourseVideoQ;
import com.wangxin.langshu.business.edu.vo.course.fresh.courseVideo.FreshCourseVideoVo;
import com.wangxin.langshu.business.edu.vo.course.fresh.lesson.FreshLessonMobileViewVo;
import com.wangxin.langshu.business.edu.vo.course.fresh.lesson.FreshLessonViewVo;
import com.wangxin.langshu.business.edu.vo.course.fresh.topic.FreshTopicQ;
import com.wangxin.langshu.business.edu.vo.course.fresh.topic.FreshTopicVo;
import com.wangxin.langshu.business.edu.vo.course.old.service.common.bo.CourseInfoPageBO;
import com.wangxin.langshu.business.edu.vo.course.old.service.common.dto.CourseInfoPageDTO;
import com.wangxin.langshu.business.edu.vo.course.old.service.common.req.AdvertPageREQ;
import com.wangxin.langshu.business.edu.vo.course.old.service.common.req.CourseSubjectPageREQ;
import com.wangxin.langshu.business.edu.vo.course.old.service.common.resq.AdvertPageRESQ;
import com.wangxin.langshu.business.edu.vo.course.old.service.common.resq.CourseSubjectPageRESQ;
import com.wangxin.langshu.business.edu.vo.exam.examQuestion.ExamQuestionVo;
import com.wangxin.langshu.business.edu.vo.system.old.common.bean.vo.mobileMiddleNavigation.MobileMiddleNavigationQ;
import com.wangxin.langshu.business.edu.vo.system.old.common.bean.vo.mobileMiddleNavigation.MobileMiddleNavigationVo;
import com.wangxin.langshu.business.edu.vo.system.old.common.bean.vo.news.NewsQ;
import com.wangxin.langshu.business.edu.vo.system.old.common.bean.vo.news.NewsViewVo;
import com.wangxin.langshu.business.edu.vo.system.old.common.bean.vo.news.NewsVo;
import com.wangxin.langshu.business.edu.vo.user.old.common.bean.vo.StudentVO;
import com.wangxin.langshu.business.edu.vo.user.old.common.bo.UserLoginPasswordBO;
import com.wangxin.langshu.business.edu.vo.user.old.common.bo.auth.AuthStudentBO;
import com.wangxin.langshu.business.edu.vo.user.old.common.bo.auth.AuthStudentViewBO;
import com.wangxin.langshu.business.edu.vo.user.old.common.dto.UserLoginDTO;
import com.wangxin.langshu.business.edu.vo.user.old.common.dto.auth.AuthStudentDTO;
import com.wangxin.langshu.business.mobile.controller.vo.ExamQuestionCourseQuery;
import com.wangxin.langshu.business.util.base.BaseController;
import com.wangxin.langshu.business.util.base.Page;
import com.wangxin.langshu.business.util.base.Result;
import com.wangxin.langshu.business.util.enums.OperatePlatEnum;
import com.wangxin.langshu.business.util.pretool.IpUtil;
import com.wangxin.langshu.business.util.pretool.UserNoUtil;
import com.xiaoleilu.hutool.json.JSONUtil;
import io.swagger.annotations.ApiOperation;
@RestController
@RequestMapping(value = "/mobileApi")
public class MobileApiController extends BaseController {
public static final String TOKEN = "token";
@Autowired
private IPcBossAdvertBiz pcBossAdvertBiz;
@Autowired
private INewsService newsService;
@Autowired
private IPcBossCourseSubjectBiz pcBossCourseSubjectBiz;
@Autowired
private IApiTopicBiz apiTopicBiz;
@Autowired
private IApiCourseBiz apiCourseBiz;
@Autowired
private IApiUserInfoBiz apiUserInfoBiz;
@Autowired
private IPcWebCourseBiz pcWebCourseBiz;
@Autowired
private IApiCourseVideoBiz apiCourseVideoBiz;
@Autowired
private IPcWebCourseVideoBiz pcWebCourseVideoBiz;
@Autowired
private IExamQuestionCourseService examQuestionCourseService;
@Autowired
private IMobileMiddleNavigationService mobileMiddleNavigationService;
@Autowired
private IPcWebFreshLessonService pcWebFreshLessonService;
@Autowired
private IPcWebFreshCourseVideoService pcWebFreshCourseVideoService;
@Autowired
private IPcMobileFreshTopicService pcMobileFreshTopicService;
@Autowired
private IPcMobileFreshCourseService pcMobileFreshCourseService;
@Autowired
private HttpServletRequest httpServletRequest;
@Autowired
private IPcWebCourseUserService pcWebCourseUserService;
@Autowired
private IPcWebStudentBiz pcWebStudentBiz;
@Autowired
private RedisTemplate<Object, Object> redisTemplate;
//@RequestMapping(value = "/login", method = RequestMethod.POST)
//public String listForPage(@RequestBody User user) {
// return "{\"result\":null,\"status\":true,\"msg\":\"登录成功\"}";
//}
@RequestMapping(value = "/login", method = RequestMethod.POST)
public String loginPassword(@RequestBody UserLoginPasswordBO userLoginPasswordBO) {
userLoginPasswordBO.setLoginPlatform(OperatePlatEnum.MOBILE.getCode());
userLoginPasswordBO.setIp(IpUtil.getIpAddr(httpServletRequest));
Result<UserLoginDTO> userLogin = apiUserInfoBiz.loginPassword(userLoginPasswordBO);
if(userLogin.getCode() == 200){
return "{\"result\":null,\"status\":true,\"msg\":\"登录成功\""+",\"realName\""+":\""+userLogin.getData().getRealName()+"\""+
",\"token\""+":\""+userLogin.getData().getToken()+"\""+"}";
}else{
return "{\"result\":null,\"status\":false,\"msg\":\""+userLogin.getMsg()+"\"}";
}
}
@RequestMapping(value = "/carousel", method = RequestMethod.GET)
public Result<Page<AdvertPageRESQ>> carousel() {
AdvertPageREQ advertPageREQ = new AdvertPageREQ();
advertPageREQ.setPlatShow(2);
advertPageREQ.setValidValue(1);
Result<Page<AdvertPageRESQ>> result = pcBossAdvertBiz.list(advertPageREQ);
//List<AdvertPageRESQ> list = result.getData().getList();
//return "{\"result\":null,\"status\":true,\"
没有合适的资源?快使用搜索试试~ 我知道了~
浪树学习考试系统education [课程点播、直播、刷题、考试、支付、营销],致力打造一个低成本通用的在线教育系统
共2000个文件
java:1322个
js:219个
vue:191个
1.该资源内容由用户上传,如若侵权请联系客服进行举报
2.虚拟产品一经售出概不退款(资源遇到问题,请及时私信上传者)
2.虚拟产品一经售出概不退款(资源遇到问题,请及时私信上传者)
版权申诉
0 下载量 69 浏览量
2024-05-14
22:25:12
上传
评论
收藏 14.51MB ZIP 举报
温馨提示
该项目利用了基于springboot + vue + mysql的开发模式框架实现的课设系统,包括了项目的源码资源、sql文件、相关指引文档等等。 【项目资源】:包含前端、后端、移动开发、操作系统、人工智能、物联网、信息化管理、数据库、硬件开发、大数据、课程资源、音视频、网站开发等各种技术项目的源码。包括STM32、ESP8266、PHP、QT、Linux、iOS、C++、Java、python、web、C#、EDA、proteus、RTOS等项目的源码。 【技术】 Java、Python、Node.js、Spring Boot、Django、Express、MySQL、PostgreSQL、MongoDB、React、Angular、Vue、Bootstrap、Material-UI、Redis、Docker、Kubernetes
资源推荐
资源详情
资源评论
收起资源包目录
浪树学习考试系统education [课程点播、直播、刷题、考试、支付、营销],致力打造一个低成本通用的在线教育系统 (2000个子文件)
.classpath 1KB
chunk-elementUI.cdf0c181.css 228KB
app.f3ab0983.css 11KB
common.css 6KB
common.css 6KB
chunk-5708.f2c124e7.css 5KB
chunk-libs.bd17d456.css 3KB
chunk-b200.3ae31876.css 2KB
chunk-1199.f97a07cd.css 495B
chunk-6b46.396c194a.css 335B
chunk-9dc5.90cb5629.css 335B
chunk-2e19.9bf96794.css 335B
chunk-2967.2caf4bf8.css 335B
chunk-16c8.dc0167ea.css 335B
chunk-910d.88e2653d.css 335B
chunk-6d4f.875edb93.css 335B
chunk-7ce9.66ada842.css 335B
chunk-bd86.28cb8410.css 335B
chunk-00fe.dcff30c8.css 260B
chunk-15e6.f05e411a.css 164B
chunk-fa9a.2441c134.css 164B
chunk-00d6.7638c518.css 122B
chunk-245f.af41cdcf.css 107B
chunk-8105.67b18664.css 84B
chunk-b22d.9b9af4ad.css 80B
chunk-52e6.41c42fe1.css 0B
chunk-156c.88ca7313.css 0B
chunk-7888.54c9f593.css 0B
chunk-4cc6.d639957d.css 0B
chunk-0f03.da480fce.css 0B
chunk-c6d9.da480fce.css 0B
chunk-1b3f.da480fce.css 0B
.editorconfig 207B
.editorconfig 207B
.gitignore 1KB
.gitignore 92B
index.html 7KB
index.html 3KB
200.html 2KB
index.html 2KB
200.html 2KB
index.html 2KB
favicon.ico 4KB
favicon.ico 1KB
favicon.ico 1KB
favicon.ico 1KB
wangxin-mobile.iml 458B
wangxin-edu-boss-authcenter.jar 8.12MB
MobileApiController.java 90KB
WebsiteExample.java 59KB
SysExample.java 58KB
LessonApplyExample.java 57KB
AuthApiExamQuestionController.java 55KB
LessonExample.java 52KB
CourseExample.java 49KB
CourseApplyExample.java 45KB
OrderMainService.java 40KB
TeacherApplyExample.java 38KB
ChapterApplyExample.java 35KB
AdvertExample.java 34KB
CourseVideoExample.java 34KB
TeacherExample.java 33KB
SystemMenuExample.java 32KB
StudentExample.java 31KB
ChapterExample.java 30KB
SystemUserExample.java 28KB
ExamQuestionCourseService.java 28KB
CourseSubjectExample.java 27KB
NavigationBarExample.java 24KB
FriendLinkExample.java 23KB
TopicExample.java 23KB
UserExample.java 23KB
TopicCourseExample.java 22KB
BottomNavigationArticleExample.java 21KB
SystemRoleExample.java 21KB
BottomNavigationExample.java 21KB
FileStorageExample.java 21KB
CourseRecommendExample.java 20KB
PcBossFreshCourseApplyService.java 20KB
SystemMenuRoleExample.java 20KB
SystemRoleUserExample.java 20KB
SendSmsLogExample.java 19KB
ApiUserInfoBiz.java 18KB
ExamPaperService.java 17KB
PcBossCourseApplyBiz.java 17KB
PcWebFreshCourseVideoService.java 17KB
MobileApiExamController.java 15KB
MobileCommonController.java 14KB
ExamManagementService.java 14KB
ExamManagementDao.java 14KB
PcWebFreshLessonApplyService.java 13KB
ExamQuestionCourseDao.java 13KB
PcWebLessonApplyBiz.java 13KB
PcWebChapterApplyBiz.java 13KB
PcWebDotService.java 12KB
AbsAlipayTradeService.java 12KB
CourseIntroduceApplyExample.java 12KB
CourseIntroduceExample.java 12KB
PcWebCourseVideoBiz.java 11KB
PcWebCourseApplyBiz.java 11KB
共 2000 条
- 1
- 2
- 3
- 4
- 5
- 6
- 20
资源评论
枫蜜柚子茶
- 粉丝: 6860
- 资源: 5108
上传资源 快速赚钱
- 我的内容管理 展开
- 我的资源 快来上传第一个资源
- 我的收益 登录查看自己的收益
- 我的积分 登录查看自己的积分
- 我的C币 登录后查看C币余额
- 我的收藏
- 我的下载
- 下载帮助
安全验证
文档复制为VIP权益,开通VIP直接复制
信息提交成功