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.

71 lines
1.7 KiB

This file contains ambiguous Unicode characters!

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/BasePersonOrg/BasePersonOrgProto/ Business/BasePersonOrg/BasePersonOrgProto/BasePersonOrg.proto --go_out=plugins=grpc:Business/BasePersonOrg/BasePersonOrgProto
*/
package BasePersonOrgProto;
option go_package = ".;BasePersonOrgProto";
option java_multiple_files = true;
option java_package = "com.dsideal.dsmin.base";
option java_outer_classname = "BasePersonOrg";
option objc_class_prefix = "";
service BasePersonOrgManage {
//获取单条
rpc GetBasePersonOrg (ModelArg) returns (Reply) {}
//增加
rpc AddBasePersonOrg (ModelArg) returns (Reply) {}
//删除
rpc DeleteBasePersonOrg (ModelArg) returns (Reply) {}
//修改
rpc UpdateBasePersonOrg (ModelArg) returns (Reply) {}
//查询(分页)
rpc PageBasePersonOrg (QueryArg) returns (Reply) {}
}
message ModelArg {
//主键
string Id = 1;
//整数ID
int32 IdInt = 2;
//人员ID
string PersonId = 3;
//所在单位ID
string BureauId = 4;
//所在部门ID
string OrgId = 5;
//编制所在单位标志 0不是 1
int32 Bzszdwbz = 6;
//是否启用 0未启用 1启用
int32 BUse = 7;
//所在省行政区划码
string ProvinceCode = 8;
//所在市行政区划码
string CityCode = 9;
//所在区行政区划码
string DistrictCode = 10;
//主校ID
string MainSchoolId = 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;
}