syntax = "proto3"; //在web层重新生成pb.go的方法 /* protoc -I Business/BaseParent/BaseParentProto/ Business/BaseParent/BaseParentProto/BaseParent.proto --go_out=plugins=grpc:Business/BaseParent/BaseParentProto */ package BaseParentProto; option go_package = ".;BaseParentProto"; option java_multiple_files = true; option java_package = "com.dsideal.dsmin.base"; option java_outer_classname = "BaseParent"; option objc_class_prefix = ""; service BaseParentManage { //获取单条 rpc GetBaseParent (ModelArg) returns (Reply) {} //增加 rpc AddBaseParent (ModelArg) returns (Reply) {} //批量删除 rpc DeleteBaseParent (DeleteIdsArg) returns (Reply) {} //修改 rpc UpdateBaseParent (ModelArg) returns (Reply) {} //查询(分页) rpc PageBaseParent (QueryArg) returns (Reply) {} } message ModelArg { //家长ID string PersonId = 1; //整数ID int32 IdInt = 2; //家长姓名 string Xm = 3; //联系电话 string Lxdh = 4; //对应的学生ID string StudentId = 5; //对应学生的所在班级ID string ClassId = 6; //对应学生的所在学校ID string BureauId = 7; //所在省行政区划码 string ProvinceCode = 8; //所在市行政区划码 string CityCode = 9; //所在区行政区划码 string DistrictCode = 10; //所在主校ID string MainSchoolId = 11; //是否启用 0:未启用 1:启用 int32 BUse = 12; //最后修改时间 string LastUpdatedTime = 13; //需要强制更新的列 repeated string ForceUpdateFields = 14; } // 查询参数 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; }