冲刺博客Day5

DAY5

1.会议照片

2.工作详情

成员 昨天已完成的工作 今天计划完成的工作 工作中遇到的困难
周讯超 随心贴模块前端 发布页面的制作
林佳浩 随心贴模块后端开发 收藏模块代码的完成 暂无
黄欣茵 数据库与后端相连接并进行连接测试 负责icon和图片的整理 部分知识点的不足耽误了较多时间,对端口的问题也有点模糊
江男辉 部分功能编码完成 学习前端知识 虽然容易但是较繁琐样式多
夏依达 修复开发过程中已知BUG 优化项目管理 数据库还能进一步优化
阿卜杜乃比 修复开发过程中已知BUG 优化项目管理 数据库还能进一步优化

3.燃尽图

4.签入记录

5.主要代码截图

点击查看代码
    // 1.收藏
    @PostMapping("/star")
    public ReturnResult star(@RequestBody Store store) {
        Integer storeId = storeService.star(store);
        if (storeId != null && storeId != 0) {
            HashMap map = new HashMap<>();
            map.put("storeId", storeId);
            returnResult.success(map);
        } else {
            returnResult.failed();
        }
        return returnResult;
    }

    // 2.根据id找到一条收藏
    @GetMapping("/find/{storeId}")
    public ReturnResult findStore(@PathVariable(value = "storeId", required = true) Integer storeId) {
        Store store = storeService.findStore(storeId);
        if (store != null) {
            returnResult.success(store);
        } else {
            returnResult.failed();
        }
        return returnResult;
    }


    // 3.根据id取消收藏
    @DeleteMapping("/unstar/{storeId}")
    public ReturnResult unstar(@PathVariable(value = "storeId", required = true) Integer storeId) {
        Integer result = storeService.unstar(storeId);
        if (result != null) {
            returnResult.success(result);
        } else {
            returnResult.failed();
        }
        return returnResult;
    }

    // 4.获取用户的所有收藏
    @GetMapping("/getByUid/{userId}")
    public ReturnResult getByUid(@PathVariable(value = "userId", required = true) Integer userId) {
        List<Store> stores = storeService.getByUid(userId);
        if (stores != null) {
            for (Store store : stores) {
                Post post = postService.getPost(store.getPostId());
                store.setPost(post);
            }
            returnResult.success(stores);
        } else {
            returnResult.failed();
        }
        return returnResult;
    }
}

6.运行截图

前端发布页

标记话题插入测试

结果

7.每日工作总结

成员 总结
周讯超 完成发布页面
林佳浩 今天完成了收藏模块,明天继续肝
黄欣茵 管理模块进行编写
江男辉 回顾知识点,会学到很多不一样的东西,思考也更加深入
夏依达 训练项目分析、设计、编程、纠错的能力
阿卜杜乃比 训练项目分析、设计、编程、纠错的能力
posted @ 2021-11-27 01:00  代码能跑就行  阅读(28)  评论(0编辑  收藏  举报