You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

154 lines
3.8 KiB

This file contains ambiguous Unicode characters!

This file contains ambiguous Unicode characters that may be confused with others in your current locale. If your use case is intentional and legitimate, you can safely ignore this warning. Use the Escape button to highlight these characters.

syntax = "proto3";
//在web层重新生成pb.go的方法
/*
protoc -I Business/BaseStudent/BaseStudentProto/ Business/BaseStudent/BaseStudentProto/BaseStudent.proto --go_out=plugins=grpc:Business/BaseStudent/BaseStudentProto
*/
package BaseStudentProto;
option go_package = ".;BaseStudentProto";
option java_multiple_files = true;
option java_package = "com.dsideal.dsmin.base";
option java_outer_classname = "BaseStudent";
option objc_class_prefix = "";
service BaseStudentManage {
//获取单条
rpc GetBaseStudent (ModelArg) returns (Reply) {}
//增加
rpc AddBaseStudent (ModelArg) returns (Reply) {}
//批量删除
rpc DeleteBaseStudent (DeleteIdsArg) returns (Reply) {}
//修改
rpc UpdateBaseStudent (ModelArg) returns (Reply) {}
//查询(分页)
rpc PageBaseStudent (QueryArg) returns (Reply) {}
//学生调整班级
rpc ReviseStudentClass (ReviseArg) returns (Reply) {}
//导出学生账号信息到EXCEL
rpc ExportStudentAccountInfoExcel (ModelArg) returns (Reply) {}
//导出学生信息到EXCEL
rpc ExportStudentInfoExcel (ModelArg) returns (Reply) {}
//导入本校学生信息
rpc ImportStudentInfoExcel (ImportArg) returns (Reply) {}
}
message ImportArg {
//单位ID
string BureauId = 1;
//EXCEL路径
string ExcelPath = 2;
//操作人
string ActionPersonId = 3;
//操作IP
string ActionIpAddress = 4;
}
//学生调整班级
message ReviseArg {
//一个或多个ID
repeated string Ids = 1;
//调整后的班级ID
string ClassId = 2;
//操作人
string ActionPersonId = 3;
//操作IP
string ActionIpAddress = 4;
}
message ModelArg {
//学生ID
string PersonId = 1;
//整数ID
int32 IdInt = 2;
//学生姓名
string Xm = 3;
//姓名拼音
string Xmpy = 4;
//曾用名
string Cym = 5;
//性别(有字典)
string Xbm = 6;
//出生日期
string Csrq = 7;
//民族 (有字典)
string Mzm = 8;
//政治面貌 (有字典)
string Zzmmm = 9;
//身份证件类型代码 (有字典)
string Sfzjlxm = 10;
//身份证件号
string Sfzjh = 11;
//独生子女标志 0不是 1
int32 Dszybz = 12;
//随迁子女标志 0不是 1
int32 Sqznbz = 13;
//进城务工人员随迁子女标志 0不是 1
int32 Jcwgrysqznbz = 14;
//孤儿标志 0不是 1
int32 Gebz = 15;
//留守儿童标志 0不是 1
int32 Lsetbz = 16;
//残疾标志 0不是 1
int32 Cjbz = 17;
//班级ID
string ClassId = 18;
//学校ID
string BureauId = 19;
//是否启用 0未启用 1启用
int32 BUse = 20;
//状态码
int32 StateId = 21;
//所在省行政区划码
string ProvinceCode = 22;
//所在市行政区划码
string CityCode = 23;
//所在区行政区划码
string DistrictCode = 24;
//所在主校ID
string MainSchoolId = 25;
//最后修改时间
string LastUpdatedTime = 26;
//导出的EXCEL是否要数据 0空的 1有数据
int32 ExportExcelStatus = 27;
//需要强制更新的列
repeated string ForceUpdateFields = 28;
//操作人
string ActionPersonId = 29;
//操作IP
string ActionIpAddress = 30;
}
// 查询参数
message QueryArg{
int32 Page = 1;
int32 Limit = 2;
//班级ID
string ClassId = 6;
//学生姓名
string Xm = 7;
//操作人
string ActionPersonId = 8;
//操作IP
string ActionIpAddress = 9;
}
// 查询请求响应
message Reply{
bool Success = 1;
string Message = 2;
int32 Count = 3;
string List = 4;
string ExcelPath = 5;
}
//删除参数
message DeleteIdsArg {
//一个或多个ID
repeated string Ids = 1;
//操作人
string ActionPersonId = 2;
//操作IP
string ActionIpAddress = 3;
}