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.

190 lines
4.6 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/BaseTeacher/BaseTeacherProto/ Business/BaseTeacher/BaseTeacherProto/BaseTeacher.proto --go_out=plugins=grpc:Business/BaseTeacher/BaseTeacherProto
*/
package BaseTeacherProto;
option go_package = ".;BaseTeacherProto";
option java_multiple_files = true;
option java_package = "com.dsideal.dsmin.base";
option java_outer_classname = "BaseTeacher";
option objc_class_prefix = "";
service BaseTeacherManage {
//获取单条
rpc GetBaseTeacher (ModelArg) returns (Reply) {}
//增加
rpc AddBaseTeacher (ModelArg) returns (Reply) {}
//删除
rpc DeleteBaseTeacher (DeleteIdsArg) returns (Reply) {}
//修改
rpc UpdateBaseTeacher (ModelArg) returns (Reply) {}
//查询(分页)
rpc PageBaseTeacher (QueryArg) returns (Reply) {}
//教师调整部门
rpc ReviseTeacherOrg (ReviseArg) returns (Reply) {}
//导出本单位教职工账号信息到EXCEL
rpc ExportTeacherAccountInfoExcel (ModelArg) returns (Reply) {}
//导出本单位教职工信息到EXCEL
rpc ExportTeacherInfoExcel (ModelArg) returns (Reply) {}
//导入本校教师信息
rpc ImportTeacherInfoExcel (ImportArg) returns (Reply) {}
//设置教师多单位
rpc SettingTeacherMultipleBureau (SettingMultipleBureauArg) returns (Reply) {}
//根据教职工ID获取该教职工所在多单位列表
rpc PageTeacherMultipleBureau (PageMultipleBureauArg) returns (Reply) {}
//删除教职工所在多单位信息
rpc DeleteTeacherMultipleBureau (MultipleBureauIdArg) returns (Reply) {}
//设置主单位
rpc SettingMainOrg (SettingMainOrgArg) returns (Reply) {}
//教师调转单位
rpc TeacherTransfer (SettingMultipleBureauArg) returns (Reply) {}
}
message SettingMainOrgArg {
string Id = 1;
string PersonId = 2;
}
message MultipleBureauIdArg {
string Id = 1;
}
message PageMultipleBureauArg {
//教师ID
string PersonId = 1;
}
message SettingMultipleBureauArg {
//教师ID
string PersonId = 1;
//部门ID
string OrgId = 2;
}
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 OrgId = 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;
//学历 (有字典)
string Xlm = 12;
//学位 (有字典)
string Xwm = 13;
//职称 (有字典)
string Zcm = 14;
//编制 (有字典)
string Bzlbm = 15;
//从教年月
string Cjny = 16;
//主要任课学段 (有字典)
string StageId = 17;
//主要任课学科 (有字典)
string SubjectId = 18;
//岗位 (有字典)
string Gwzym = 19;
//联系电话
string Lxdh = 20;
//电子信箱
string Dzxx = 21;
//是否启用 0未启用 1启用
int32 BUse = 22;
//教师状态码
int32 StateId = 23;
//最后修改时间
string LastUpdatedTime = 24;
//所在部门ID
string OrgId = 25;
//排序号
int32 SortId = 26;
//所在单位ID
string BureauId = 27;
//导出的EXCEL是否要数据 0空的 1有数据
int32 ExportExcelStatus = 28;
//需要强制更新的列
repeated string ForceUpdateFields = 29;
//操作人
string ActionPersonId = 30;
//操作IP
string ActionIpAddress = 31;
//人员职务ID
repeated string PositionIds = 32;
}
// 查询参数
message QueryArg{
int32 Page = 1;
int32 Limit = 2;
//单位ID或部门ID
string OrgId = 3;
//教师姓名
string Xm = 4;
//操作人
string ActionPersonId = 5;
//操作IP
string ActionIpAddress = 6;
}
// 查询请求响应
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;
}