Skip to content
This repository has been archived by the owner on May 6, 2024. It is now read-only.
/ gpa-v2 Public archive

飞扬俱乐部GPA绩点计算器API

Notifications You must be signed in to change notification settings

fyscu/gpa-v2

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

18 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

飞扬俱乐部GPA绩点计算器API

gpa_v2

安装

编译安装

go install https://github.com/mohuishou/gpa-v2

使用

./gpa -p=6666 -d=frontend/dist
# -d 前端文件路径
# -p 端口号

获取本学期成绩

path: /gpa
method: post
param: {
    uid: //学号
    password: //密码
}
return: {
  "status": 1,
  "msg": "本学期成绩获取成功",
  "data": [
    {
      "course_id": "998013000",
      "lesson_id": "24",
      "course_name": "形势与政策-5",
      "credit": "0",
      "course_type": "必修",
      "grade": "94",
      "term": 1, //学期标识,只在所有成绩有效
      "term_name": "" 
    },
    ......
  ]
}

获取所有成绩

path: /gpa/all
method: post
param: {
    uid: //学号
    password: //密码
}
return: {
  "status": 1,
  "msg": "所有成绩获取成功",
  "data": [
    [
      {
        "course_id": "105366020",
        "lesson_id": "273",
        "course_name": "大学英语(综合)-1",
        "credit": "2",
        "course_type": "必修",
        "grade": "65.0",
        "term": 0,
        "term_name": "2014-2015学年秋(两学期)"
      },
    ],
  ],
}

获取不及格成绩

path: /gpa/not-pass
method: post
param: {
    uid: //学号
    password: //密码
}
return:{
  "status": 1,
  "msg": "不及格成绩获取成功",
  "data": [
    [ //第一个数组 尚不及格成绩
      {
        "course_id": "201051020",
        "lesson_id": "01",
        "course_name": "数学建模",
        "credit": "2",
        "course_type": "选修",
        "grade": "不及格",
        "term": 0,
        "term_name": ""
      }
    ],
    [ 
        //第二个数组 曾不及格成绩
    ]
  ]
}

About

飞扬俱乐部GPA绩点计算器API

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published