Browse Source

pull

master
listen 2 years ago
parent
commit
14fd9a69ca
2 changed files with 8 additions and 0 deletions
  1. +2
    -0
      user.client.go
  2. +6
    -0
      user.proto

+ 2
- 0
user.client.go View File

@ -41,6 +41,8 @@ func GetUserByToken(dbname, token string, url ...string) (map[string]string, err
"Usercode": res.GetUsercode(),
"GroupId": res.GetGroupId(),
"Type": res.GetType(),
"ThirdId": res.GetThirdId(),
"Platform": res.GetPlatform(),
}, nil
}


+ 6
- 0
user.proto View File

@ -32,6 +32,8 @@ message UserResponse {
string usercode = 11;//
string group_id = 12;//ID
string type = 13;//
string third_id = 14; //token对应的third_id
string platform = 15; //
}
//
@ -58,6 +60,8 @@ message LoginResponse {
string usercode = 12;//
string group_id = 13;//ID
string type = 14;//
string third_id = 15; //token对应的third_id
string platform = 16; //
}
@ -84,4 +88,6 @@ service UserService {
rpc bindThird (Request) returns (Response); //
rpc getThird(Request) returns (Response); //
rpc getBusiness(Request) returns (Response); //
rpc getUserScore(Request) returns (Response); //
rpc getUserRedEnvelope(Request) returns (Response); //
}

Loading…
Cancel
Save