syntax = "proto3"; //在web层重新生成pb.go的方法 /* protoc -I Business/BaseStudenlog/BaseStudenlogProto/ Business/BaseStudenlog/BaseStudenlogProto/BaseStudenlog.proto --go_out=plugins=grpc:Business/BaseStudenlog/BaseStudenlogProto */ package BaseStudenlogProto; option go_package = ".;BaseStudenlogProto"; option java_multiple_files = true; option java_package = "com.dsideal.dsmin.base"; option java_outer_classname = "BaseStudenlog"; option objc_class_prefix = ""; service BaseStudenlogManage { //获取单条 rpc GetBaseStudenlog (ModelArg) returns (Reply) {} //增加 rpc AddBaseStudenlog (ModelArg) returns (Reply) {} //批量删除 rpc DeleteBaseStudenlog (DeleteIdsArg) returns (Reply) {} //修改 rpc UpdateBaseStudenlog (ModelArg) returns (Reply) {} //查询(分页) rpc PageBaseStudenlog (QueryArg) returns (Reply) {} } message ModelArg { //日志主键 string LogId = 1; //学生ID string PersonId = 2; //整数ID int32 IdInt = 3; //学生姓名 string Xm = 4; //姓名拼音 string Xmpy = 5; //曾用名 string Cym = 6; //性别(有字典) string Xbm = 7; //出生日期 string Csrq = 8; //民族 (有字典) string Mzm = 9; //政治面貌 (有字典) string Zzmmm = 10; //身份证件类型代码 (有字典) string Sfzjlxm = 11; //身份证件号 string Sfzjh = 12; //独生子女标志 -1:不是 1:是 int32 Dszybz = 13; //随迁子女标志 -1:不是 1:是 int32 Sqznbz = 14; //进城务工人员随迁子女标志 -1:不是 1:是 int32 Jcwgrysqznbz = 15; //孤儿标志 -1:不是 1:是 int32 Gebz = 16; //留守儿童标志 -1:不是 1:是 int32 Lsetbz = 17; //残疾标志 -1:不是 1:是 int32 Cjbz = 18; //班级ID string ClassId = 19; //学校ID string BureauId = 20; //是否启用 -1:未启用 1:启用 int32 BUse = 21; //状态码 int32 StateId = 22; //所在省行政区划码 string ProvinceCode = 23; //所在市行政区划码 string CityCode = 24; //所在区行政区划码 string DistrictCode = 25; //所在主校ID string MainSchoolId = 26; //最后修改时间 string LastUpdatedTime = 27; //创建时间 string CreateTime = 28; //操作人员ID string ActionPersonId = 29; //操作IP string ActionIpAddress = 30; //操作时间 string ActionTime = 31; //操作代码 string ActionCode = 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; }