Browse Source

pull

master
listen 5 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