syntax = "proto3"; option go_package = "./pb;pb"; package account; import "public.proto"; message ServiceInfo { string id = 1; string name = 2; string address = 3; } message AccountInfo{ string phone = 2; string password = 3; int64 uid = 4; string device = 5; } message CreateTokenRsp { string token = 1; ServiceInfo game_service = 2; } message Register { string phone = 1; string password = 2; int32 code = 3; } service Account{ rpc RegisterHandler(Register) returns (public.PubRsp) {} rpc CreateTokenHandler(AccountInfo) returns (CreateTokenRsp) {} }