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/GovArea/GovAreaProto/ Business/GovArea/GovAreaProto/GovArea.proto --go_out=plugins=grpc:Business/GovArea/GovAreaProto
*/
package GovAreaProto ;
option go_package = ".;GovAreaProto" ;
option java_multiple_files = true ;
option java_package = "com.dsideal.dsmin.base" ;
option java_outer_classname = "GovArea" ;
option objc_class_prefix = "" ;
service GovAreaManage {
//获取单条
rpc GetGovArea ( ModelArg ) returns ( Reply ) { }
//增加
rpc AddGovArea ( ModelArg ) returns ( Reply ) { }
//删除
rpc DeleteGovArea ( DeleteIdsArg ) returns ( Reply ) { }
//修改
rpc UpdateGovArea ( ModelArg ) returns ( Reply ) { }
//查询(分页)
rpc PageGovArea ( QueryArg ) returns ( Reply ) { }
}
message ModelArg {
//行政区划代码
string AreaCode = 1 ;
//行政区划名称
string AreaName = 2 ;
//上级行政区划代码
string MasterCode = 3 ;
//行政区划级别 例:省、市、区
int32 AreaLevelId = 4 ;
//行政区划类型 0: 无 1: 县市区 2: 开发区
int32 AreaTypeId = 5 ;
//操作人
string ActionPersonId = 6 ;
//操作IP
string ActionIpAddress = 7 ;
}
// 查询参数
message QueryArg {
int32 Page = 1 ;
int32 Limit = 2 ;
//地区编码
string AreaCode = 3 ;
//操作人
string ActionPersonId = 4 ;
//操作IP
string ActionIpAddress = 5 ;
}
// 查询请求响应
message Reply {
bool Success = 1 ;
string Message = 2 ;
int32 Count = 3 ;
string List = 4 ;
}
//删除参数
message DeleteIdsArg {
//一个或多个ID
repeated string Ids = 1 ;
//操作人
string ActionPersonId = 2 ;
//操作IP
string ActionIpAddress = 3 ;
}