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/BasePosition/BasePositionProto/ Business/BasePosition/BasePositionProto/BasePosition.proto --go_out=plugins=grpc:Business/BasePosition/BasePositionProto
*/
package BasePositionProto ;
option go_package = ".;BasePositionProto" ;
option java_multiple_files = true ;
option java_package = "com.dsideal.dsmin.base" ;
option java_outer_classname = "BasePosition" ;
option objc_class_prefix = "" ;
service BasePositionManage {
//获取单条
rpc GetBasePosition ( ModelArg ) returns ( Reply ) { }
//增加
rpc AddBasePosition ( ModelArg ) returns ( Reply ) { }
//批量删除
rpc DeleteBasePosition ( DeleteIdsArg ) returns ( Reply ) { }
//修改
rpc UpdateBasePosition ( ModelArg ) returns ( Reply ) { }
//获取职务所有的树形结构信息
rpc TreeBasePosition ( QueryArg ) returns ( Reply ) { }
//根据单位ID获取职务信息
rpc ListBasePositionByBureauId ( ListBasePositionByBureauIdArg ) returns ( Reply ) { }
}
message ListBasePositionByBureauIdArg {
//单位ID
string BureauId = 1 ;
}
message ModelArg {
//主键ID
string Id = 1 ;
//整数ID
int32 IdInt = 2 ;
//职务名称
string NodeName = 3 ;
//上级节点ID
string ParentId = 4 ;
//区域级别 -1: 无意义 1: 市级 2: 区级
int32 AreaLevel = 5 ;
//单位类型 1: 教育局 2: 学校 7: 教辅单位
int32 OrgType = 6 ;
//学校办学类型(学校专有属性)有字典
string Xxbxlxm = 7 ;
//第一位为增加 1: 有 0: 无 第二位为修改 1: 有 0: 无 第三位为删除 1: 有 0: 无
string MaintainId = 8 ;
//是否为职务 1: 是职务 0: 职务关系节点
int32 PostionFlag = 9 ;
//是否可用 1: 可用 -2: 不可用
int32 BUse = 10 ;
//节点内部排序号
int32 SortId = 11 ;
//最后修改时间
string LastUpdatedTime = 12 ;
//需要强制更新的列
repeated string ForceUpdateFields = 13 ;
}
// 查询参数
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 ;
}