syntax = "proto3"; //在web层重新生成pb.go的方法 /* protoc -I Business/BaseStudenimporexcel/BaseStudenimporexcelProto/ Business/BaseStudenimporexcel/BaseStudenimporexcelProto/BaseStudenimporexcel.proto --go_out=plugins=grpc:Business/BaseStudenimporexcel/BaseStudenimporexcelProto */ package BaseStudenimporexcelProto; option go_package = ".;BaseStudenimporexcelProto"; option java_multiple_files = true; option java_package = "com.dsideal.dsmin.base"; option java_outer_classname = "BaseStudenimporexcel"; option objc_class_prefix = ""; service BaseStudenimporexcelManage { //获取单条 rpc GetBaseStudenimporexcel (ModelArg) returns (Reply) {} //增加 rpc AddBaseStudenimporexcel (ModelArg) returns (Reply) {} //批量删除 rpc DeleteBaseStudenimporexcel (DeleteIdsArg) returns (Reply) {} //修改 rpc UpdateBaseStudenimporexcel (ModelArg) returns (Reply) {} //查询(分页) rpc PageBaseStudenimporexcel (QueryArg) returns (Reply) {} } message ModelArg { //ID string Id = 1; //单位ID string BureauId = 2; //学部ID string StageId = 3; //入学年份 int32 Rxnf = 4; //班号 int32 Bh = 5; //班级号 string ClassId = 6; //学生姓名 string Xm = 7; //性别码 string Xbm = 8; //出生日期 string Csrq = 9; //民族码 string Mzm = 10; //政治面貌码 string Zzmmm = 11; //身份证件类型码 string Sfzjlxm = 12; //身份证件号 string Sfzjh = 13; //独生子女 int32 Dszybz = 14; //随迁子女 int32 Sqznbz = 15; //进城务工人员子女 int32 Jcwgrysqznbz = 16; //孤儿 int32 Gebz = 17; //留守儿童 int32 Lsetbz = 18; //残疾儿童 int32 Cjbz = 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; }