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.

32 lines
713 B

syntax = "proto3";
//生成 GRPC:
//protoc -I MyService/Auth/AuthGrpc/AuthGrpcProto MyService/Auth/AuthGrpc/AuthGrpcProto/AuthGrpc.proto --go_out=plugins=grpc:MyService/Auth/AuthGrpc
//生成 WSDL:
//protoc -I MyService/Auth/AuthGrpc/AuthGrpcProto MyService/Auth/AuthGrpc/AuthGrpcProto/AuthGrpc.proto --wsdl_out=MyService/Auth/AuthWS/AuthWSWsdl
package AuthGrpcProto;
option go_package = "/AuthGrpcProto";
option objc_class_prefix = "";
service AuthGrpcService {
//接入系统鉴权
rpc SystemAuth (Auth) returns (Result) {}
}
message Auth {
//
string SystemID = 1;
//
string SystemToken = 2;
//
string AuthTime = 3;
}
message Result {
//
bool Success = 1;
//
string Message = 2;
}