syntax = "proto3"; //在web层重新生成pb.go的方法 /* protoc -I Business/BaseTeacherImporexcel/BaseTeacherImporexcelProto/ Business/BaseTeacherImporexcel/BaseTeacherImporexcelProto/BaseTeacherImporexcel.proto --go_out=plugins=grpc:Business/BaseTeacherImporexcel/BaseTeacherImporexcelProto */ package BaseTeacherImporexcelProto; option go_package = ".;BaseTeacherImporexcelProto"; option java_multiple_files = true; option java_package = "com.dsideal.dsmin.base"; option java_outer_classname = "BaseTeacherImporexcel"; option objc_class_prefix = ""; service BaseTeacherImporexcelManage { //获取单条 rpc GetBaseTeacherImporexcel (ModelArg) returns (Reply) {} //增加 rpc AddBaseTeacherImporexcel (ModelArg) returns (Reply) {} //批量删除 rpc DeleteBaseTeacherImporexcel (DeleteIdsArg) returns (Reply) {} //修改 rpc UpdateBaseTeacherImporexcel (ModelArg) returns (Reply) {} //查询(分页) rpc PageBaseTeacherImporexcel (QueryArg) returns (Reply) {} } message ModelArg { //ID string Id = 1; //教师姓名 string Xm = 2; //性别码 string Xbm = 3; //出生日期 string Csrq = 4; //民族码 string Mzm = 5; //政治面貌码 string Zzmmm = 6; //身份证件类型码 string Sfzjlxm = 7; //身份证件号 string Sfzjh = 8; //学历码 string Xlm = 9; //学位码 string Xwm = 10; //职称码 string Zcm = 11; //编制类型码 string Bzlbm = 12; //主要任课学段 string StageId = 13; //主要任课学科 string SubjectId = 14; //岗位 string Gwzym = 15; //联系电话 string Lxdh = 16; //电子信箱 string Dzxx = 17; //部门ID string OrgId = 18; //部门名称 string OrgName = 19; //批次ID string BatchId = 20; //对应的EXCEL是第几行的数据 int32 RowNumber = 21; //人员ID string PersonId = 22; //需要强制更新的列 repeated string ForceUpdateFields = 23; } // 查询参数 message QueryArg{ int32 Page = 1; int32 Limit = 2; } // 查询请求响应 message Reply{ bool Success = 1; string Message = 2; int32 Count = 3; string List = 4; } //删除参数 message DeleteIdsArg { //一个或多个ID repeated string Ids = 1; }