当前位置: 首页 > news >正文

乐清手机网站福州 哈尔滨网站建设 网络服务

乐清手机网站,福州 哈尔滨网站建设 网络服务,网站做好是需要续费的吗,网上注册公司需要多少钱目录 一、前言 二、技术介绍 三、系统实现 四、核心代码 五、源码获取 全栈码农以及毕业设计实战开发#xff0c;CSDN平台Java领域新星创作者#xff0c;专注于大学生项目实战开发、讲解和毕业答疑辅导 一、前言 在充满活力与激情的校园生活中#xff0c;校运会不仅是…目录 一、前言 二、技术介绍 三、系统实现 四、核心代码 五、源码获取 全栈码农以及毕业设计实战开发CSDN平台Java领域新星创作者专注于大学生项目实战开发、讲解和毕业答疑辅导 一、前言 在充满活力与激情的校园生活中校运会不仅是展示学生体育风采的重要舞台也是增强班级凝聚力、推动校园文化建设的关键活动。然而传统校运会的管理方式往往依赖于纸质报名、人工统计等繁琐流程不仅效率低下还容易出错。为了提升校运会管理的便捷性和准确性我们决定设计和实现一个基于微信小程序的校运会管理系统。 该系统充分利用微信小程序的即时通讯和便捷操作特性为师生提供一个集报名、赛程查询、成绩发布于一体的综合管理平台。通过该系统学生可以轻松完成报名流程实时查看比赛赛程和成绩信息教师则可以高效地管理报名数据、安排比赛日程并实时更新比赛结果。 我们坚信这一系统的推出将极大地提升校运会管理的效率和准确性为师生带来更加便捷、高效的校运会体验同时也为校园文化的传承与发展注入新的活力。 二、技术介绍 语言Java 使用框架Spring Boot 前端技术JS、Vue 、css3 开发工具IDEA/Eclipse 数据库MySQL 5.7/8.0 数据库管理工具phpstudy/Navicat JDK版本jdk1.8 Maven: apache-maven 3.8.1-bin 前端环境Node.Js 12\14\16 三、系统实现 四、核心代码 package com.controller;import java.util.Arrays; import java.util.Calendar; import java.util.Date; import java.util.Map;import javax.servlet.http.HttpServletRequest;import org.springframework.beans.factory.annotation.Autowired; import org.springframework.stereotype.Controller; import org.springframework.web.bind.annotation.GetMapping; import org.springframework.web.bind.annotation.PathVariable; import org.springframework.web.bind.annotation.PostMapping; 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.ResponseBody; import org.springframework.web.bind.annotation.RestController;import com.annotation.IgnoreAuth; import com.baomidou.mybatisplus.mapper.EntityWrapper; import com.entity.TokenEntity; import com.entity.UserEntity; import com.service.TokenService; import com.service.UserService; import com.utils.CommonUtil; import com.utils.MD5Util; import com.utils.MPUtil; import com.utils.PageUtils; import com.utils.R; import com.utils.ValidatorUtils;/*** 登录相关*/ RequestMapping(users) RestController public class UserController{Autowiredprivate UserService userService;Autowiredprivate TokenService tokenService;/*** 登录*/IgnoreAuthPostMapping(value /login)public R login(String username, String password, String captcha, HttpServletRequest request) {UserEntity user userService.selectOne(new EntityWrapperUserEntity().eq(username, username));if(usernull || !user.getPassword().equals(password)) {return R.error(账号或密码不正确);}String token tokenService.generateToken(user.getId(),username, users, user.getRole());return R.ok().put(token, token);}/*** 注册*/IgnoreAuthPostMapping(value /register)public R register(RequestBody UserEntity user){ // ValidatorUtils.validateEntity(user);if(userService.selectOne(new EntityWrapperUserEntity().eq(username, user.getUsername())) !null) {return R.error(用户已存在);}userService.insert(user);return R.ok();}/*** 退出*/GetMapping(value logout)public R logout(HttpServletRequest request) {request.getSession().invalidate();return R.ok(退出成功);}/*** 密码重置*/IgnoreAuthRequestMapping(value /resetPass)public R resetPass(String username, HttpServletRequest request){UserEntity user userService.selectOne(new EntityWrapperUserEntity().eq(username, username));if(usernull) {return R.error(账号不存在);}user.setPassword(123456);userService.update(user,null);return R.ok(密码已重置为123456);}/*** 列表*/RequestMapping(/page)public R page(RequestParam MapString, Object params,UserEntity user){EntityWrapperUserEntity ew new EntityWrapperUserEntity();PageUtils page userService.queryPage(params, MPUtil.sort(MPUtil.between(MPUtil.allLike(ew, user), params), params));return R.ok().put(data, page);}/*** 列表*/RequestMapping(/list)public R list( UserEntity user){EntityWrapperUserEntity ew new EntityWrapperUserEntity();ew.allEq(MPUtil.allEQMapPre( user, user)); return R.ok().put(data, userService.selectListView(ew));}/*** 信息*/RequestMapping(/info/{id})public R info(PathVariable(id) String id){UserEntity user userService.selectById(id);return R.ok().put(data, user);}/*** 获取用户的session用户信息*/RequestMapping(/session)public R getCurrUser(HttpServletRequest request){Long id (Long)request.getSession().getAttribute(userId);UserEntity user userService.selectById(id);return R.ok().put(data, user);}/*** 保存*/PostMapping(/save)public R save(RequestBody UserEntity user){ // ValidatorUtils.validateEntity(user);if(userService.selectOne(new EntityWrapperUserEntity().eq(username, user.getUsername())) !null) {return R.error(用户已存在);}userService.insert(user);return R.ok();}/*** 修改*/RequestMapping(/update)public R update(RequestBody UserEntity user){ // ValidatorUtils.validateEntity(user);userService.updateById(user);//全部更新return R.ok();}/*** 删除*/RequestMapping(/delete)public R delete(RequestBody Long[] ids){userService.deleteBatchIds(Arrays.asList(ids));return R.ok();} } 五、源码获取  感谢大家点赞、收藏、关注、评论啦
http://www.hkea.cn/news/14272967/

相关文章:

  • 女生做网站主题有哪些怎么用ps做静态网站
  • 哪里找做网站的北京建网站定制价格
  • 江宁网站建设价位矿大师德建设网站
  • 网站主题编辑工具WordPress开发游戏学什么专业
  • 网站制作的公司旅游网站开发目标
  • 兼职做国外网站钻前免费发布推广信息的网站
  • 单位网站建设收费标准nginx反向代理wordpress
  • 手机网站建设分析淘宝网页制作模板
  • 专门帮人做网站的公司wordpress 判断手机端
  • 电子商务实验网站建设实训过程浙江省城乡建设网站证件查询
  • 网站建设教程流程黄骅港天气预报一周7天
  • 网页网站自做全搞定江西省赣州市定南县
  • 房产网站流量排名加拿大搜索引擎
  • 做交通锁具网站碟刹锁快速搭建网站视频
  • 淮安网站开发被禁止访问网站怎么办
  • 网站建设的设备外国做家具的网站
  • 网站功能策划爱网站查询挖掘工具
  • 廊坊网站建设制作视频制作软件电脑版
  • 芜湖做网站优化wordpress缩进element
  • 百度联盟怎么做自己的网站怎么用wordpress仿站
  • 电子商务网站 开发wordpress 示例
  • 现在建设的网站有什么劣势企业网站建设杭州
  • 网站制作费一般多少深圳app开发制作
  • 环艺毕业设计代做网站哪家网站建设服务好啊
  • 专业网站建设全包y-m-d WordPress 首页
  • 高校信息化建设网站系统微信嘉兴做外贸网站的公司
  • 网站备案需要提供哪些资料网站开发最新架构
  • 网站怎么做视频的软件建设一个购物网站需要多少钱
  • 最好网站建设爱站长
  • 网站建设的程序dedecms手机网站模板安装教程