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.

76 lines
1.8 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/BaseChargeWork/BaseChargeWorkProto/ Business/BaseChargeWork/BaseChargeWorkProto/BaseChargeWork.proto --go_out=plugins=grpc:Business/BaseChargeWork/BaseChargeWorkProto
*/
package BaseChargeWorkProto;
option go_package = ".;BaseChargeWorkProto";
option java_multiple_files = true;
option java_package = "com.dsideal.dsmin.base";
option java_outer_classname = "BaseChargeWork";
option objc_class_prefix = "";
service BaseChargeWorkManage {
//获取单条
rpc GetBaseChargeWork (ModelArg) returns (Reply) {}
//增加
rpc AddBaseChargeWork (ModelArg) returns (Reply) {}
//批量删除
rpc DeleteBaseChargeWork (DeleteIdsArg) returns (Reply) {}
//修改
rpc UpdateBaseChargeWork (ModelArg) returns (Reply) {}
//查询(分页)
rpc PageBaseChargeWork (QueryArg) returns (Reply) {}
}
message ModelArg {
//主键
string Id = 1;
//整数ID
int32 IdInt = 2;
//编码
string Code = 3;
//分管工作名称
string Name = 4;
//上级节点
string ParentId = 5;
//1虚根节点 2单位等级 3单位类型 4分管工作
int32 LevelId = 6;
//单位等级 1市级 2区级
int32 BureauLevel = 7;
//单位类型 1教育局 2学校 7教辅单位
int32 OrgType = 8;
//是否启用
int32 BUse = 9;
//排序号
int32 SortId = 10;
//最后修改时间
string LastUpdatedTime = 11;
//创建时间
string CreateTime = 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;
}