Git Product home page Git Product logo

techwave-backend's Introduction

Hi there, I'm Baokker 👋

  • 🏫 Currently studying at Tongji University, software engineering
  • 🗻 Here is my blog website, where I will share my opinion, reading books, as well as some technical experience
  • 📫 Contact with me through my email: [email protected]
  • 😉 Enjoy it!

Baokker's github stats

techwave-backend's People

Contributors

baokker avatar chillygwind avatar main-voice avatar ovaltine0712 avatar ssr123-ssr avatar

Stargazers

 avatar

techwave-backend's Issues

createTokenByAccountOrEmail缺陷,测试密码是否正确时缺少对密码是否为空的判断

if (user == null) {
            QueryWrapper<User> queryAccountWrapper = new QueryWrapper<>();
            queryAccountWrapper.eq("account", accountOrEmail);
            user = userMapper.selectOne(queryAccountWrapper);
            if (user == null) {
                return Result.fail(TCode.ACCOUNT_NOT_EXIST.getCode(), "User does not exist", null);
            }
        }

        boolean matches = passwordEncoder.matches(password, user.getPassword());
        if (!matches) {
            return Result.fail(TCode.PWD_ERROR.getCode(), TCode.PWD_ERROR.getMsg(), null);
        }

在上面的代码中,没有对于密码是否为空的判断,在判断完用户是否存在之后就直接去对密码进行了匹配

PostService出现bug

PostService中的getPostData方法在进行集成测试时出现bug,postId为空时报错error,需要进行bug修复。

SectionController中的发布帖子业务有bug

PostServiceImpl中的publishPost方法出现问题,当sectionId和subsectionId不存在数据库中时,仍然能够保存成功而不是提出输入有误的反馈,需要进行bug修复。

UserController中的注册登录业务出现bug

RegisterService中的register方法中的password为空时也能注册成功,而不是提醒参数输入有误,需要进行bug修复。
LoginService中的login方法也有同样bug。

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.