Skip to content
This repository has been archived by the owner on Aug 17, 2024. It is now read-only.
/ ZJUintl-gRPC Public archive

gRPC service for Zhejiang University Intl Campus.

Notifications You must be signed in to change notification settings

QSCTech/ZJUintl-gRPC

Repository files navigation

gRPC service for ZJUintl

注意:由于getbbalert这个接口无法在内网中正确获取数据(原因不详),因此暂时走的是位于106.14.216.254:50053上的rpc服务

Overview

As described above, this project is a gRPC service for ZJUintl Campus, it aims at providing safe and stable application interface for developers to get data they want which includes course information, exam details, exam scores etc. For a developer who want to use our service, you do not need to learn gRPC at all, what you need to do is to install our particular SDK which will be published later.

Hopefully, you guys will have a good developing experience.

Server Side Deploy

npm i
npm start

Also, you need to create a config file yourself according to the sample given by.

mv config_sample.js config.js
vim config.js

Bug Report

The same course at same time in one day (even has distinct date) should has same room, instructor name and end time.

Endponit Lists

  1. Connect_test - Test whether you can connect to our sevice.
Accept{
    name: String   //Your name
}
Return{
    status: String,
    message: String 
}
  1. getCourse - Get the course list and time table from PeopleSoft
Accept{
    username: String   //ZJUid
    password: String   //Password corresponding to that ZJUid
}
Return{
    status: String
    course: [{
        id, name, time, type, room, instructor, week, month, date, weeknum
    }]
}
  1. getBBGradeList - Get the course list with a sum grade from BlackBoard
Accept{
    username: String
    password: String
}
Return{
    status: String
    courses: [{
        name, grade, courseid
    }]
}
  1. getBBCertainGrade - Get detail grade for one certain course from BalckBoard
Accept{
    username: String
    password: String
    courseid: String
}
Return{
    status: String
    items: [{
        name, grade
    }]
}

Status Code Reference

Case Code Generated at Client or Server
Username or password is wrong. USERWRONG Server
Some error occurs when fetching data. FETCHERROR Server
Some error occurs for your client. CLIENTERROR Client
Success fetching data. SUCCESS Both
You didn't input complete user info(username, password). PARAMERROR Server

Controbutor

Laphets i@laphets.com 求是潮技术研发中心

If you have any problem when using our service, pls let me know.

About

gRPC service for Zhejiang University Intl Campus.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published