Skip to content
@hello-ooad

hello-ooad

OOAD-BACKEND-PROJECT

user:

  • http://10.27.26.94:9090/user/islogin

  • http://10.27.26.94:9090/user/list

  • http://10.27.26.94:9090/user/signin?userName=admin&userPassword=123456

  • http://10.27.26.94:9090/user/logout

  • /user

    • /signin:登录

      • 查询参数:

      • userPassword

      • userName

      • 返回:

      • {

        "code": 501,
        
        "msg": "用户名不存在",
        
        "data": **null**,
        
        "dataCount": **null**
        

        }

      • {

        "code": 502,
        
        "msg": "用户名或密码错误",
        
        "data": **null**,
        
        "dataCount": **null**
        

        }

      • {

        "code": 200,
        
        "msg": "success!",
        
        "data": **null**,
        
        "dataCount": **null**
        

        }

    • /list:显示全部用户信息(包括账户,密码)需要权限:admin

      • 返回:
      • userId
      • userName
      • userPassword
    • /new:新增用户

      • 查询参数:
      • userPassword
      • userName
      • 返回:T/F
    • /islogin: 检查是否登录

      • 查询参数:null

      • 返回:

      • {

        "code": 401,
          
        "msg": "token 无效:549530c3-dd5d-4a46-8292-1d0585359f1f",
          
        "data": **null**,
          
        "dataCount": **null**
        

        }

      • {

        "code": 200,
        
        "msg": "success!",
        
        "data": [
        
          "student",
        
          "admin",
        
          "manager"
        
        ],
        
        "dataCount": **null**
        

        }

    • /username:查询用户名是否存在

      • 查询参数:

      • userName

      • 返回:

      • {

        "code": 200,

        "msg": "success!",

        "data": null,

        "dataCount": null

        }

      • {

        "code": 501,

        "msg": "用户名不存在",

        "data": null,

        "dataCount": null

        }

    • /logout:登出

      • 查询参数:

      • 返回:

      • {

        "code": 200,

        "msg": "success!",

        "data": null,

        "dataCount": null

        }

Popular repositories Loading

  1. demo-springboot-proj demo-springboot-proj Public

    Java

  2. .github .github Public

Repositories

Showing 2 of 2 repositories

People

This organization has no public members. You must be a member to see who’s a part of this organization.

Top languages

Loading…

Most used topics

Loading…