Skip to content

Eikoo dev #21

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 3 commits into from
Aug 20, 2024
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
79 changes: 79 additions & 0 deletions campusapis/skl/v1/skl.proto
Original file line number Diff line number Diff line change
@@ -0,0 +1,79 @@
syntax = "proto3";

package campusapis.skl.v1;

import "google/api/annotations.proto";

option go_package = "./campusapis/skl/v1";


//// Skl 数据库中的student_history_info表
//message SklStudentHistoryInfo {
// string StudentName = 1; // 学生姓名
// string UnitId = 2; // 学院ID
// //18,卓越学院
// //27,网络空间安全学院(浙江保密学院)
// //14,会计学院
// //06,自动化学院(人工智能学院)
// //15,经济学院
// //01,机械工程学院
// //07,理学院
// //03,管理学院
// //05,计算机学院(软件学院)
// //34,法学院
// //11,外国语学院
// //08,通信工程学院
// //33,人文艺术与数字媒体学院
// //20,材料与环境工程学院
// //12,人文与法学院
// //17,国际教育学院
// //28,人文艺术与数字媒体学院、法学院
// //22,数字媒体与艺术设计学院
// //32,圣光机联合学院
// //31,继续教育学院
// //04,电子信息学院(集成电路科学与工程学院)
// //19,生命信息与仪器工程学院
// string UnitName = 3; // 学院名称
// string MajorCode = 4; // 专业代码
// string Major = 5; // 专业名称
// string ClassNo = 6; // 班级
// string Grade = 7; // 年级
// string TeacherId = 8; // 辅导员工号
// string SchoolYear = 9; // 学年
// string Semester = 10; // 学期
// string StudentId = 11; // 学号
//}

service SklService {
// 获取某学院某年级的学生信息
rpc GetStaffUnitInfo(StaffUnitInfoRequest) returns (StaffUnitInfoResponse) {
option (google.api.http) = {
get: "/skl/unitInfo"
additional_bindings {
get: "/skl/v1/unitInfo"
}
};
}
}

// 用于从Skl数据库中筛选某年级某学院的学生
message SklUnitInfo {
string unitId = 1; // 学院ID
string unitName = 2; // 学院名称
string grade = 3; // 年级
repeated string teachers = 4; // 辅导员
repeated string classNos = 5;
}

message StaffUnitInfoRequest {
string StaffId = 1; // 学/工号
}

message StaffUnitInfoResponse {
int32 error = 1;
string msg = 2;
repeated SklUnitInfo data = 3;
}



Loading