-
Notifications
You must be signed in to change notification settings - Fork 9
/
Copy pathuser.thrift
40 lines (32 loc) · 900 Bytes
/
user.thrift
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
27
28
29
30
31
32
33
34
35
36
37
38
39
40
namespace go user
include "model.thrift"
// for backend testing
struct GetLoginDataRequest {
1: required string id
2: required string password
}
struct GetLoginDataResponse {
1: required model.BaseResp base,
2: required string id
3: required string cookies
}
struct GetUserInfoRequest{
}
struct GetUserInfoResponse{
1: required model.BaseResp base,
2: optional model.UserInfo data,
}
struct GetLoginDataForYJSYRequest{
1: required string id
2: required string password
}
struct GetLoginDataForYJSYResponse{
1: required model.BaseResp base,
2: required string id
3: required string cookies
}
service UserService {
GetLoginDataResponse GetLoginData(1: GetLoginDataRequest req),
GetUserInfoResponse GetUserInfo(1: GetUserInfoRequest request),
GetLoginDataForYJSYResponse GetGetLoginDataForYJSY(1:GetLoginDataForYJSYRequest request),
}