syntax = "proto3"; //protoc --go_out=. --go-grpc_out=. rpc/protos/sso.proto package rpc; option go_package = "./rpc/sso/;sso"; service SSOLogin { rpc Login(LoginRequest) returns (LoginResponse) {} } message LoginRequest { string code = 1; string source = 2; } message UserInfo { string userId = 1; string username = 2; string name = 3; } message LoginResponse { int32 errCode = 1; string errMsg = 2; string msg = 3; UserInfo data = 4; }