syntax = "proto3"; //在web层重新生成pb.go的方法 /* protoc -I Business/VBaseStudent/VBaseStudentProto/ Business/VBaseStudent/VBaseStudentProto/VBaseStudent.proto --go_out=plugins=grpc:Business/VBaseStudent/VBaseStudentProto */ package VBaseStudentProto; option go_package = ".;VBaseStudentProto"; option java_multiple_files = true; option java_package = "com.dsideal.dsmin.base"; option java_outer_classname = "VBaseStudent"; option objc_class_prefix = ""; service VBaseStudentManage { //获取单条 rpc GetVBaseStudent (ModelArg) returns (Reply) {} //增加 rpc AddVBaseStudent (ModelArg) returns (Reply) {} //批量删除 rpc DeleteVBaseStudent (DeleteIdsArg) returns (Reply) {} //修改 rpc UpdateVBaseStudent (ModelArg) returns (Reply) {} //查询(分页) rpc PageVBaseStudent (QueryArg) returns (Reply) {} } message ModelArg { // string StudentId = 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; //独生子女标志 -1:不是 1:是 int32 Dszybz = 12; //随迁子女标志 -1:不是 1:是 int32 Sqznbz = 13; //进城务工人员随迁子女标志 -1:不是 1:是 int32 Jcwgrysqznbz = 14; //孤儿标志 -1:不是 1:是 int32 Gebz = 15; //留守儿童标志 -1:不是 1:是 int32 Lsetbz = 16; //残疾标志 -1:不是 1:是 int32 Cjbz = 17; // string ClassId = 18; // string BureauId = 19; //是否启用 -1:未启用 1:启用 int32 BUse = 20; //状态码 int32 StateId = 21; //所在省行政区划码 string ProvinceCode = 22; //所在市行政区划码 string CityCode = 23; //所在区行政区划码 string DistrictCode = 24; // string MainSchoolId = 25; //最后修改时间 string LastUpdatedTime = 26; //主校类型,1:普通校,2:主校,3:分校 int32 MainSchoolType = 27; //学校办别(学校专有属性)有字典 string Xxbbm = 28; //学校办学类型(学校专有属性)有字典 string Xxbxlxm = 29; //学校城乡类型(学校专有属性)有字典 string Szdcxlxm = 30; //所属学段ID string StageId = 31; //入学年份 int32 Rxnf = 32; //需要强制更新的列 repeated string ForceUpdateFields = 33; } // 查询参数 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; }