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.9 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/DataexGbt2260Copy/DataexGbt2260CopyProto/ Business/DataexGbt2260Copy/DataexGbt2260CopyProto/DataexGbt2260Copy.proto --go_out=plugins=grpc:Business/DataexGbt2260Copy/DataexGbt2260CopyProto
*/
package DataexGbt2260CopyProto;
option go_package = ".;DataexGbt2260CopyProto";
option java_multiple_files = true;
option java_package = "com.dsideal.dsmin.base";
option java_outer_classname = "DataexGbt2260Copy";
option objc_class_prefix = "";
service DataexGbt2260CopyManage {
//获取单条
rpc GetDataexGbt2260Copy (ModelArg) returns (Reply) {}
//增加
rpc AddDataexGbt2260Copy (ModelArg) returns (Reply) {}
//批量删除
rpc DeleteDataexGbt2260Copy (DeleteIdsArg) returns (Reply) {}
//修改
rpc UpdateDataexGbt2260Copy (ModelArg) returns (Reply) {}
//查询(分页)
rpc PageDataexGbt2260Copy (QueryArg) returns (Reply) {}
}
message ModelArg {
//区域ID
string Id = 1;
//区域名称
string AreaName = 2;
//区域编码【国标】
string AreaCode = 3;
//区域类型【234区】
int32 AreaType = 4;
//类型2【1行政区2开发区】
int32 AreaType2 = 5;
//父亲节点ID
string ParentId = 6;
//区域简称
string ShortName = 7;
//建立时间
string CreateTime = 8;
//最近修改时间
string ChangeTime = 9;
//删除时间
string DeleteTime = 10;
//删除标志【默认-11删除-1正常】
int32 DeleteFlag = 11;
//启用标志【默认11启用-1禁用】
int32 EnableFlag = 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;
}