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.
//Protocol Buffer是Google的语言中立的, 平台中立的, 可扩展机制的, 用于序列化结构化数据 - 对比XML, 但更小, 更快, 更简单。
//指定您正在使用proto3语法: 如果您不这样做, protobuf 编译器将假定您正在使用proto2。
//必须是文件的第一个非空的非注释行
syntax = "proto3" ;
// 生成办法:
// protoc -I RpcService/BaseGlobal/ RpcService/BaseGlobal/BaseGlobal.proto --go_out=plugins=grpc:RpcService/BaseGlobal
//向.proto文件添加package可选说明符, 以防止协议消息类型之间的名称冲突
package BaseGlobal ;
//该包用作Go包名称, 除非您option go_package在.proto文件中明确提供。
option go_package = ".;BaseGlobal" ;
//用于生成java的代码配置
option java_multiple_files = true ;
option java_package = "com.dsideal.dsmin.base" ;
option java_outer_classname = "BaseGlobal" ;
option objc_class_prefix = "" ;
// BaseGlobal 微服务
service BaseGlobalManage {
rpc AddBaseGlobal ( ModelArg ) returns ( Reply ) { }
rpc DeleteBaseGlobal ( ModelArg ) returns ( Reply ) { }
rpc UpdateBaseGlobal ( ModelArg ) returns ( Reply ) { }
rpc PageBaseGlobal ( QueryArg ) returns ( Reply ) { }
}
// BaseGlobal 请求数据格式
message ModelArg {
int32 GlobalId = 1 ;
int32 GlobalTypeId = 2 ;
string GlobalCode = 3 ;
string GlobalValue = 4 ;
string GlobalRemarks = 5 ;
int32 SortId = 6 ;
int32 BUse = 7 ;
}
//查询参数
message QueryArg {
int32 Page = 1 ;
int32 Limit = 2 ;
int32 GlobalTypeId = 3 ;
}
//回复内容
message Reply {
bool Success = 1 ;
string Message = 2 ;
int64 Count = 3 ;
string List = 4 ;
}