thrift 协议

This commit is contained in:
hahwu 2026-03-06 12:25:28 +08:00
parent c9c3e5e319
commit 10decbebd8

61
proto/backend.thrift Normal file
View File

@ -0,0 +1,61 @@
namespace go backend
struct ResAdminInfo{
1: string Name,
2: i64 Uid,
3: i32 AreaId,
4: i32 Face;
5: double Charge;
6: double MaxCharge;
7: i32 Level;
8: i32 Diamond;
9: i32 Star;
10: i32 Energy;
11: string UserName;
12: i64 LoginTime;
13: i32 Cumulative;
14: i32 RegisterTime;
15: i8 Ban;
16: i32 TodayCumulative;
17: i32 Bouns;
18: string Code;
19: map<string, i32> ChessMap;
20: list<Actlog> ActLog;
21: list<FriendInfo> FriendList;
22: map<i32,OrderInfo> OrderList;
}
struct Actlog{
1: i8 Type;
2: i64 Time;
3: string Param;
}
struct OrderInfo{
1: i32 Id;
2: i32 Type;
3: i64 Time;
4: string ChessId;
5: i8 Diff;
}
struct FriendInfo{
1: i64 Uid;
2: string NickName;
3: i32 Level;
4: i64 LogoutTime;
5: i64 LoginTime;
6: i32 Face;
}
struct ResMessage{
1: i8 Code;
2: string Msg;
}
service GameAdminService{
ResAdminInfo ReqPlayerInfo(1:i64 Uid);
ResMessage ReqReloadServerMail();
ResMessage ReqConfigReload();
ResMessage ReqAdminGm(1:i64 Uid, 2:string Command);
ResMessage ReqAdminBan(1:i64 Uid, 2:i64 BanTime);
}