• 计算机毕业设计选题推荐-记录生活微信小程序/安卓APP-项目实战


    作者主页:IT研究室✨
    个人简介:曾从事计算机专业培训教学,擅长Java、Python、微信小程序、Golang、安卓Android等项目实战。接项目定制开发、代码讲解、答辩教学、文档编写、降重等。
    ☑文末获取源码☑
    精彩专栏推荐⬇⬇⬇
    Java项目
    Python项目
    安卓项目
    微信小程序项目

    一、前言

    随着现代生活节奏的加速,人们对于健康和生活质量的关注越来越高。运动、饮食和记录成为了保持健康、管理体重、提高生活质量的重要手段。然而,这些过程往往繁琐且不易追踪,缺乏工具进行科学的管理和指导。因此,开发一款集运动项目管理、食品分析管理、食品信息管理、饭店时间管理、每日运动管理、运动推荐管理、记录本管理、肥胖分析管理等为一体的记录生活微信小程序/安卓APP,具有十分重要的意义。

    当前市场上的健康管理应用大多只关注单一领域,如只提供运动跟踪或饮食分析,缺乏对多方面健康数据的综合管理和个性化建议。同时,这些应用的用户体验往往落后,不能满足用户在便捷性、实时性和个性化方面的需求。因此,开发一款全面、便捷、个性化的健康管理应用势在必行。

    本课题旨在开发一款全面的健康管理工具,通过集成的运动项目管理、食品分析管理、食品信息管理、饭店时间管理、每日运动管理、运动推荐管理、记录本管理、肥胖分析管理等模块,为用户提供一站式的健康管理服务。

    本课题的研究意义在于解决当前健康管理市场上的痛点,提供一款全面、便捷、个性化的健康管理工具。通过本课题的研究,可以帮助用户更好地了解自己的健康状况,提供个性化的健康建议,帮助用户改善生活质量、保持健康。同时,本课题的研究还可以为相关领域的研究提供新的思路和方法,推动健康管理领域的发展。

    二、开发环境

    • 开发语言:Java
    • 数据库:MySQL
    • 系统架构:B/S
    • 后端:SpringBoot
    • 前端:微信小程序/Android+uniapp+Vue

    三、系统界面展示

    • 记录生活微信小程序/安卓APP界面展示:
      记录生活微信小程序/安卓APP-每日运动记录
      记录生活微信小程序/安卓APP-个人中心
      记录生活微信小程序/安卓APP-首页
      记录生活微信小程序/安卓APP-食品分析管理
      记录生活微信小程序/安卓APP-套餐推荐管理
      记录生活微信小程序/安卓APP-运动推荐管理

    四、代码参考

    • 项目实战代码参考:
    @Api(tags = "系统控制器")
    @RestController
    @RequestMapping("sms/system")
    public class SystemController {
    
        @Autowired
        private AdminService adminService;
        @Autowired
        private StudentService studentService;
        @Autowired
        private TeacherService teacherService;
    
        /*
            * 修改密码的处理器
            * POST  /sms/system/updatePwd/123456/admin
            *       /sms/system/updatePwd/{oldPwd}/{newPwd}
            *       请求参数
                        oldpwd
                        newPwd
                        token 请求头
                    响应的数据
                        Result OK data= null
         **/
    
    
        @ApiOperation("更新用户密码的处理器")
        @PostMapping("/updatePwd/{oldPwd}/{newPwd}")
        public Result updatePwd(@RequestHeader("token") String token,
                                @PathVariable("oldPwd") String oldPwd,
                                @PathVariable("newPwd") String newPwd) {
    
            boolean expiration = JwtHelper.isExpiration(token);
            if (expiration) {
                //token过期
                return Result.fail().message("token过期,请重新登录");
            }
            //获取用户ID和用户类型
            Long userId = JwtHelper.getUserId(token);
            Integer userType = JwtHelper.getUserType(token);
    
            oldPwd = MD5.encrypt(oldPwd);
            newPwd = MD5.encrypt(newPwd);
    
            switch (userType) {
    
                case 1:
                    Admin admin = adminService.getAdminById(userId);
                    if (admin != null) {
                        admin.setPassword(newPwd);
                        adminService.saveOrUpdate(admin);
                    } else {
                        return Result.fail().message("原密码有误!");
                    }
                    break;
                case 2:
                    Student student = studentService.getStudentById(userId);
                    if (student != null) {
                        student.setPassword(newPwd);
                        studentService.saveOrUpdate(student);
                    } else {
                        return Result.fail().message("原密码有误!");
                    }
                    break;
                case 3:
                    Teacher teacher = teacherService.getTeacherById(userId);
                    if (teacher != null) {
                        teacher.setPassword(newPwd);
                        teacherService.saveOrUpdate(teacher);
                    } else {
                        return Result.fail().message("原密码有误!");
                    }
                    break;
                default:
                    ;
    
            }
    
    
            return Result.ok();
        }
    
    
        // POST /sms/system/headerImgUpload
        @ApiOperation("文件上传同意入口")
        @PostMapping("/headerImgUpload")
        public Result headerImgUpload(@RequestPart("multipartFile") MultipartFile multipartFile) {
    
            String uuid = UUID.randomUUID().toString().replace("-", "").toLowerCase();
            String originalFilename = multipartFile.getOriginalFilename();
            int index = originalFilename.lastIndexOf(".");
            //substring:截取字符串
            String newFileName = uuid.concat(originalFilename.substring(index));
    
            //保存文件
    
            String portraitPath = "D:/Java教程/Springboot_workplace002/zhxy/target/classes/public/upload".concat(newFileName);
            try {
                multipartFile.transferTo(new File(portraitPath));
            } catch (IOException e) {
                e.printStackTrace();
            }
    
            //响应图片的路径
            String path = "upload/".concat(newFileName);
            return Result.ok(path);
        }
    
    
        @GetMapping("/getInfo")
        public Result getInfoByToken(@RequestHeader("token") String token) {
    
            boolean isExpiration = JwtHelper.isExpiration(token);
            if (isExpiration) {
                return Result.build(null, ResultCodeEnum.TOKEN_ERROR);
            }
    
            Map map = new LinkedHashMap<>();
    
            //从token中获取用户ID和用户类型
            Long userId = JwtHelper.getUserId(token);
            Integer userType = JwtHelper.getUserType(token);
    
            switch (userType) {
                case 1:
                    Admin admin = adminService.getAdminById(userId);
                    map.put("userType", 1);
                    map.put("user", admin);
                    break;
                case 2:
                    Student student = studentService.getStudentById(userId);
                    map.put("userType", 2);
                    map.put("user", student);
                    break;
                case 3:
                    Teacher teacher = teacherService.getTeacherById(userId);
                    map.put("userType", 3);
                    map.put("user", teacher);
                    break;
            }
    
            return Result.ok(map);
        }
    
        @ApiOperation("获取验证码图片")
        @GetMapping("/getVerifiCodeImage")
        public void getVerifiCodeImage(HttpServletRequest request, HttpServletResponse response) {
    
            //获取图片
            BufferedImage verifiCodeImage = CreateVerifiCodeImage.getVerifiCodeImage();
            //获取图片上的验证码
            String verifiCode = new String(CreateVerifiCodeImage.getVerifiCode());
            //将验证码文本存入session域中,供下次使用
            HttpSession session = request.getSession();
            session.setAttribute("verifiCode", verifiCode);
            //将验证码图片响应给浏览器
    
            ServletOutputStream outputStream = null;
            try {
                outputStream = response.getOutputStream();
                ImageIO.write(verifiCodeImage, "JPEG", outputStream);
            } catch (Exception e) {
                e.printStackTrace();
            }
    
        }
    
    
        @ApiOperation("登录控制器")
        @PostMapping("/login")
        public Result login(HttpServletRequest request, @RequestBody LoginForm loginForm) {
    
            //验证码校验
            String sessionVerifiCode = (String) request.getSession().getAttribute("verifiCode");
            String loginVerifiCode = loginForm.getVerifiCode();
    
            if ("".equals(sessionVerifiCode) || null == sessionVerifiCode) {
                return Result.fail().message("验证码失效,请刷新后重试");
            }
            if (!sessionVerifiCode.equalsIgnoreCase(loginVerifiCode)) {
                return Result.fail().message("验证码有误,请重新输入");
            }
            //从session域中移除现有验证码
            request.getSession().removeAttribute("verifiCode");
    
            Map map = new LinkedHashMap();
    
            //分用户类型进行校验
            Integer userType = loginForm.getUserType();
            switch (userType) {
                case 1:
                    try {
                        Admin admin = adminService.login(loginForm);
                        if (null != admin) {
                            String token = JwtHelper.createToken(admin.getId().longValue(), 1);
                            map.put("token", token);
                        } else {
                            throw new RuntimeException("用户名或密码错误");
                        }
                        return Result.ok(map);
                    } catch (RuntimeException e) {
                        e.printStackTrace();
                        return Result.fail().message(e.getMessage());
                    }
    
                case 2:
                    try {
                        Student student = studentService.login(loginForm);
                        if (null != student) {
                            String token = JwtHelper.createToken(student.getId().longValue(), 2);
                            map.put("token", token);
                        } else {
                            throw new RuntimeException("用户名或密码错误");
                        }
                        return Result.ok(map);
                    } catch (RuntimeException e) {
                        e.printStackTrace();
                        return Result.fail().message(e.getMessage());
                    }
    
                case 3:
                    try {
                        Teacher teacher = teacherService.login(loginForm);
                        if (null != teacher) {
                            String token = JwtHelper.createToken(teacher.getId().longValue(), 3);
                            map.put("token", token);
                        } else {
                            throw new RuntimeException("用户名或密码错误");
                        }
                        return Result.ok(map);
                    } catch (RuntimeException e) {
                        e.printStackTrace();
                        return Result.fail().message(e.getMessage());
                    }
    
    
            }
    
            return Result.fail().message("查无此用户");
        }
    
    
    }
    
    • 1
    • 2
    • 3
    • 4
    • 5
    • 6
    • 7
    • 8
    • 9
    • 10
    • 11
    • 12
    • 13
    • 14
    • 15
    • 16
    • 17
    • 18
    • 19
    • 20
    • 21
    • 22
    • 23
    • 24
    • 25
    • 26
    • 27
    • 28
    • 29
    • 30
    • 31
    • 32
    • 33
    • 34
    • 35
    • 36
    • 37
    • 38
    • 39
    • 40
    • 41
    • 42
    • 43
    • 44
    • 45
    • 46
    • 47
    • 48
    • 49
    • 50
    • 51
    • 52
    • 53
    • 54
    • 55
    • 56
    • 57
    • 58
    • 59
    • 60
    • 61
    • 62
    • 63
    • 64
    • 65
    • 66
    • 67
    • 68
    • 69
    • 70
    • 71
    • 72
    • 73
    • 74
    • 75
    • 76
    • 77
    • 78
    • 79
    • 80
    • 81
    • 82
    • 83
    • 84
    • 85
    • 86
    • 87
    • 88
    • 89
    • 90
    • 91
    • 92
    • 93
    • 94
    • 95
    • 96
    • 97
    • 98
    • 99
    • 100
    • 101
    • 102
    • 103
    • 104
    • 105
    • 106
    • 107
    • 108
    • 109
    • 110
    • 111
    • 112
    • 113
    • 114
    • 115
    • 116
    • 117
    • 118
    • 119
    • 120
    • 121
    • 122
    • 123
    • 124
    • 125
    • 126
    • 127
    • 128
    • 129
    • 130
    • 131
    • 132
    • 133
    • 134
    • 135
    • 136
    • 137
    • 138
    • 139
    • 140
    • 141
    • 142
    • 143
    • 144
    • 145
    • 146
    • 147
    • 148
    • 149
    • 150
    • 151
    • 152
    • 153
    • 154
    • 155
    • 156
    • 157
    • 158
    • 159
    • 160
    • 161
    • 162
    • 163
    • 164
    • 165
    • 166
    • 167
    • 168
    • 169
    • 170
    • 171
    • 172
    • 173
    • 174
    • 175
    • 176
    • 177
    • 178
    • 179
    • 180
    • 181
    • 182
    • 183
    • 184
    • 185
    • 186
    • 187
    • 188
    • 189
    • 190
    • 191
    • 192
    • 193
    • 194
    • 195
    • 196
    • 197
    • 198
    • 199
    • 200
    • 201
    • 202
    • 203
    • 204
    • 205
    • 206
    • 207
    • 208
    • 209
    • 210
    • 211
    • 212
    • 213
    • 214
    • 215
    • 216
    • 217
    • 218
    • 219
    • 220
    • 221
    • 222
    • 223
    • 224
    • 225
    • 226
    • 227
    • 228
    • 229
    • 230
    • 231
    • 232
    • 233
    • 234
    • 235
    • 236
    • 237
    • 238
    • 239
    • 240
    • 241
    • 242

    五、论文参考

    • 计算机毕业设计选题推荐-记录生活微信小程序/安卓APP论文参考:
      计算机毕业设计选题推荐-记录生活微信小程序/安卓APP论文参考

    六、系统视频

    记录生活微信小程序/安卓APP项目视频:

    计算机毕业设计选题推荐-记录生活微信小程序/安卓APP

    结语

    计算机毕业设计选题推荐-记录生活微信小程序/安卓APP-项目实战
    大家可以帮忙点赞、收藏、关注、评论啦~
    源码获取:私信我

    精彩专栏推荐⬇⬇⬇
    Java项目
    Python项目
    安卓项目
    微信小程序项目

  • 相关阅读:
    VMtools安装Euler系统
    论文速览【RL - Exploration】—— 【Go-Explore】First return, then explore
    8.稳定性专题
    verdi显示OVM/UVM Hierarchy View
    安卓实现微信聊天气泡
    发力“幸福感”消费,荟语酒店如何引领创新体验?
    5. HTTPS的特点
    Java学习笔记——final关键字
    来自一位资深程序员的忠告
    MySQL慢查询优化、索引优化和表优化总结
  • 原文地址:https://blog.csdn.net/2301_79456892/article/details/134404043