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/BaseTeacher/BaseTeacherProto/ Business/BaseTeacher/BaseTeacherProto/BaseTeacher.proto --go_out=plugins=grpc:Business/BaseTeacher/BaseTeacherProto
*/
package BaseTeacherProto ;
option go_package = ".;BaseTeacherProto" ;
option java_multiple_files = true ;
option java_package = "com.dsideal.dsmin.base" ;
option java_outer_classname = "BaseTeacher" ;
option objc_class_prefix = "" ;
service BaseTeacherManage {
//获取单条
rpc GetBaseTeacher ( ModelArg ) returns ( Reply ) { }
//增加
rpc AddBaseTeacher ( ModelArg ) returns ( Reply ) { }
//批量删除
rpc DeleteBaseTeacher ( DeleteIdsArg ) returns ( Reply ) { }
//修改
rpc UpdateBaseTeacher ( ModelArg ) returns ( Reply ) { }
//查询(分页)
rpc PageBaseTeacher ( QueryArg ) returns ( Reply ) { }
}
message ModelArg {
//教师ID
string PersonId = 1 ;
//人员身份ID
int32 IdentityId = 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 ;
//学历 (有字典)
string Xlm = 13 ;
//学位 (有字典)
string Xwm = 14 ;
//职称 (有字典)
string Zcm = 15 ;
//编制 (有字典)
string Bzlbm = 16 ;
//从教年月
string Cjny = 17 ;
//主要任课学段 (有字典)
string StageId = 18 ;
//主要任课学科 (有字典)
string SubjectId = 19 ;
//岗位 (有字典)
string Gwzym = 20 ;
//联系电话
string Lxdh = 21 ;
//电子信箱
string Dzxx = 22 ;
//是否启用 0: 未启用 1: 启用
int32 BUse = 23 ;
//教师状态码
int32 StateId = 24 ;
//最后修改时间
string LastUpdatedTime = 25 ;
//创建时间
string CreateTime = 26 ;
//需要强制更新的列
repeated string ForceUpdateFields = 27 ;
}
// 查询参数
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 ;
}