auth.proto 597 Bytes
Newer Older
kzkzzzz's avatar
kzkzzzz committed
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26
syntax = "proto3";

package user;

import "cv_user_detail.proto";
import "user_base.proto";

option go_package = "hilo/api/user;user";

message LoginReq {
  string ThirdPartyId = 1; // @gotags: validate:"required"
  EThirdPartyType ThirdPartyType = 2; // @gotags: validate:"required"
  string ThirdPartyToken = 3; // @gotags: validate:"required"
  ESex Sex = 4;
  string Avatar = 5;
  string Nick = 6;
  string Country = 7;
}

message LoginRep {
  string Token = 1;
  string RongyunToken = 2;
  string TencentyunToken = 3;
  EThirdPartyType ThirdPartyType = 4;
  optional CvUserDetail User = 5;
}