Code Monkey home page Code Monkey logo

cls_sys's Introduction

班级量化管理系统

一、接口说明文档

1. 登陆验证接口

  • 请求方式:POST

  • 参数:username、password

    • 说明:
      • username:用户名
      • password:密码
    • 举例:
      • 吴洁需要登陆: username="吴洁",password="wujie321"
  • 返回结果

    • 正确请求:
      {   "status_code":200,
          "msg":{
              "error_msg":"",
              "token":"token值",
              "id":"id值",
              "name":"姓名",
              "is_headdepart":"是否系主任,1是,0否",
              "is_inspector":"是否检查员,1是,0否",
              "is_headteacher":"是否班主任,1是,0否",
              "permission_level":"权限等级,1~4级,4级最高",
          }
      }
      
    • 错误请求:
      • 参数错误(即"username"或"password"这两个单词拼写错误,或者它们对应的值为空):
      {   "status_code":200,
          "msg":{
              "error_msg":"用户名或密码为空!",
              "token":"",
              "id":"",
              "name":"",
              "is_headdepart":"",
              "is_inspector":"",
              "is_headteacher":"",
              "permission_level":"",
          }
      }
      
      • 用户名或密码错误
      {   "status_code":200,
          "msg":{
              "error_msg":"用户名或密码有误!",
              "token":"",
              "id":"",
              "name":"",
              "is_headdepart":"",
              "is_inspector":"",
              "is_headteacher":"",
              "permission_level":"",
          }
      }
      
  • 举例如图:

    • 正确访问:
    • 参数错误:
    • 用户名或密码错误

cls_sys's People

Contributors

westonzhang avatar

Watchers

 avatar

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.