sso.proto 460 B

12345678910111213141516171819202122232425
  1. syntax = "proto3";
  2. //protoc --go_out=. --go-grpc_out=. rpc/protos/sso.proto
  3. package rpc;
  4. option go_package = "./rpc/sso/;sso";
  5. service SSOLogin {
  6. rpc Login(LoginRequest) returns (LoginResponse) {}
  7. }
  8. message LoginRequest {
  9. string code = 1;
  10. string source = 2;
  11. }
  12. message UserInfo {
  13. string userId = 1;
  14. string username = 2;
  15. string name = 3;
  16. }
  17. message LoginResponse {
  18. int32 errCode = 1;
  19. string errMsg = 2;
  20. string msg = 3;
  21. UserInfo data = 4;
  22. }