|
|
syntax = "proto3";
|
|
|
|
|
|
//在web层重新生成pb.go的方法
|
|
|
/*
|
|
|
protoc -I Business/BaseClass/BaseClassProto/ Business/BaseClass/BaseClassProto/BaseClass.proto --go_out=plugins=grpc:Business/BaseClass/BaseClassProto
|
|
|
*/
|
|
|
package BaseClassProto;
|
|
|
|
|
|
option go_package = ".;BaseClassProto";
|
|
|
|
|
|
option java_multiple_files = true;
|
|
|
option java_package = "com.dsideal.dsmin.base";
|
|
|
option java_outer_classname = "BaseClass";
|
|
|
option objc_class_prefix = "";
|
|
|
|
|
|
service BaseClassManage {
|
|
|
//获取单条
|
|
|
rpc GetBaseClass (ModelArg) returns (Reply) {}
|
|
|
//增加
|
|
|
rpc AddBaseClass (ModelArg) returns (Reply) {}
|
|
|
//删除
|
|
|
rpc DeleteBaseClass (DeleteIdsArg) returns (Reply) {}
|
|
|
//修改
|
|
|
rpc UpdateBaseClass (ModelArg) returns (Reply) {}
|
|
|
//查询(分页)
|
|
|
rpc PageBaseClass (QueryArg) returns (Reply) {}
|
|
|
//根据学校ID获取学部(学段)信息
|
|
|
rpc GetStage (ModelArg) returns (Reply) {}
|
|
|
//根据学校ID和学部(学段)ID获取入学年份
|
|
|
rpc GetRxnf (ModelArg) returns (Reply) {}
|
|
|
|
|
|
}
|
|
|
|
|
|
message ModelArg {
|
|
|
//班级ID
|
|
|
string ClassId = 1;
|
|
|
//整数ID
|
|
|
int32 IdInt = 2;
|
|
|
//班号
|
|
|
int32 Bh = 3;
|
|
|
//班级编码 规则:10位学校编码+4位入学年份+1位学段+3位班号 学段:0:幼儿 1:小学 2:初中 3:高中 4:职业 5:高等
|
|
|
string ClassCode = 4;
|
|
|
//班级名称
|
|
|
string ClassName = 5;
|
|
|
//班级别名
|
|
|
string ClassAlias = 6;
|
|
|
//入学年份
|
|
|
int32 Rxnf = 7;
|
|
|
//入学季节
|
|
|
int32 Rxjj = 8;
|
|
|
//学制
|
|
|
int32 SchoolingLength = 9;
|
|
|
//所属学段ID
|
|
|
string StageId = 10;
|
|
|
//班主任ID
|
|
|
string TeacherId = 11;
|
|
|
//所在部门(除职业和高等外都是0)
|
|
|
string OrgId = 12;
|
|
|
//所在学校ID
|
|
|
string BureauId = 13;
|
|
|
//是否启用 0:未启用 1:启用
|
|
|
int32 BUse = 14;
|
|
|
//所在省行政区划码
|
|
|
string ProvinceCode = 15;
|
|
|
//所在市行政区划码
|
|
|
string CityCode = 16;
|
|
|
//所在区行政区划码
|
|
|
string DistrictCode = 17;
|
|
|
//主校ID
|
|
|
string MainSchoolId = 18;
|
|
|
//最后修改时间
|
|
|
string LastUpdatedTime = 19;
|
|
|
//开始班号
|
|
|
int32 StartBh = 20;
|
|
|
//结束班号
|
|
|
int32 EndBh = 21;
|
|
|
//需要强制更新的列
|
|
|
repeated string ForceUpdateFields = 22;
|
|
|
//操作人
|
|
|
string ActionPersonId = 23;
|
|
|
//操作IP
|
|
|
string ActionIpAddress = 24;
|
|
|
}
|
|
|
|
|
|
// 查询参数
|
|
|
message QueryArg{
|
|
|
int32 Page = 1;
|
|
|
int32 Limit = 2;
|
|
|
//学校ID
|
|
|
string BureauId = 3;
|
|
|
//学部ID
|
|
|
string stageId = 4;
|
|
|
//入学年份
|
|
|
int32 Rxnf = 5;
|
|
|
//需要滤掉的班级ID
|
|
|
string RemoveClassId = 6;
|
|
|
//操作人
|
|
|
string ActionPersonId = 7;
|
|
|
//操作IP
|
|
|
string ActionIpAddress = 8;
|
|
|
|
|
|
}
|
|
|
|
|
|
// 查询请求响应
|
|
|
message Reply{
|
|
|
bool Success = 1;
|
|
|
string Message = 2;
|
|
|
int32 Count = 3;
|
|
|
string List = 4;
|
|
|
}
|
|
|
|
|
|
//删除参数
|
|
|
message DeleteIdsArg {
|
|
|
//一个或多个ID
|
|
|
repeated string Ids = 1;
|
|
|
//操作人
|
|
|
string ActionPersonId = 2;
|
|
|
//操作IP
|
|
|
string ActionIpAddress = 3;
|
|
|
} |