You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
This file contains ambiguous Unicode characters that may be confused with others in your current locale. If your use case is intentional and legitimate, you can safely ignore this warning. Use the Escape button to highlight these characters.
syntax = "proto3" ;
//在web层重新生成pb.go的方法
/*
protoc -I Business/BaseStudent/BaseStudentProto/ Business/BaseStudent/BaseStudentProto/BaseStudent.proto --go_out=plugins=grpc:Business/BaseStudent/BaseStudentProto
*/
package BaseStudentProto ;
option go_package = ".;BaseStudentProto" ;
option java_multiple_files = true ;
option java_package = "com.dsideal.dsmin.base" ;
option java_outer_classname = "BaseStudent" ;
option objc_class_prefix = "" ;
service BaseStudentManage {
//获取单条
rpc GetBaseStudent ( ModelArg ) returns ( Reply ) { }
//增加
rpc AddBaseStudent ( ModelArg ) returns ( Reply ) { }
//批量删除
rpc DeleteBaseStudent ( DeleteIdsArg ) returns ( Reply ) { }
//修改
rpc UpdateBaseStudent ( ModelArg ) returns ( Reply ) { }
//查询(分页)
rpc PageBaseStudent ( QueryArg ) returns ( Reply ) { }
}
message ModelArg {
//学生ID
string PersonId = 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 ;
//班级ID
string ClassId = 18 ;
//学校ID
string BureauId = 19 ;
//是否启用 -1: 未启用 1: 启用
int32 BUse = 20 ;
//状态码
int32 StateId = 21 ;
//所在省行政区划码
string ProvinceCode = 22 ;
//所在市行政区划码
string CityCode = 23 ;
//所在区行政区划码
string DistrictCode = 24 ;
//所在主校ID
string MainSchoolId = 25 ;
//最后修改时间
string LastUpdatedTime = 26 ;
//创建时间
string CreateTime = 27 ;
//需要强制更新的列
repeated string ForceUpdateFields = 28 ;
}
// 查询参数
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 ;
}