Skip to content

Commit 534ccd8

Browse files
committed
feat(proto): Add RecordApi and InfoApi services and related message definitions
- Add RecordApi service, including methods for fetching single record from Lxns and DivingFish - Add InfoApi service, including methods for obtaining chart information and achievement information - Add corresponding request message definitions for the new services - Adjust the field order of DivingFishBestsRequest message, moving the token field to the first position
1 parent a2c6339 commit 534ccd8

File tree

1 file changed

+40
-6
lines changed

1 file changed

+40
-6
lines changed

src/Protos/kumabot.proto

Lines changed: 40 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -16,6 +16,16 @@ service ListApi {
1616
rpc GetFromDivingFish (DivingFishListRequest) returns (stream ImageResponse);
1717
}
1818

19+
service RecordApi {
20+
rpc GetFromLxns (LxnsRecordRequest) returns (stream ImageResponse);
21+
rpc GetFromDivingFish (DivingFishRecordRequest) returns (stream ImageResponse);
22+
}
23+
24+
service InfoApi {
25+
rpc GetChartInfo (ChartInfoRequest) returns (stream ImageResponse);
26+
rpc GetAchievementInfo (AchievementInfoRequest) returns (stream ImageResponse);
27+
}
28+
1929
message LxnsBestsRequest {
2030
string devToken = 1;
2131
google.protobuf.StringValue personalToken = 2;
@@ -25,12 +35,13 @@ message LxnsBestsRequest {
2535
}
2636

2737
message DivingFishBestsRequest {
28-
uint32 qq = 1;
29-
google.protobuf.StringValue condition = 2;
30-
sint32 frame = 3;
31-
sint32 plate = 4;
32-
sint32 icon = 5;
33-
repeated string tags = 6;
38+
google.protobuf.StringValue token = 1;
39+
uint32 qq = 2;
40+
google.protobuf.StringValue condition = 3;
41+
sint32 frame = 4;
42+
sint32 plate = 5;
43+
sint32 icon = 6;
44+
repeated string tags = 7;
3445
}
3546

3647
message LxnsListRequest {
@@ -51,6 +62,29 @@ message DivingFishListRequest {
5162
repeated string tags = 7;
5263
}
5364

65+
message LxnsRecordRequest {
66+
string devToken = 1;
67+
string personalToken = 2;
68+
string songId = 3;
69+
}
70+
71+
message DivingFishRecordRequest {
72+
string token = 1;
73+
uint32 qq = 2;
74+
string songId = 3;
75+
}
76+
77+
message ChartInfoRequest {
78+
string prober = 1;
79+
string songId = 2;
80+
}
81+
82+
message AchievementInfoRequest {
83+
string prober = 1;
84+
string difficulty = 2;
85+
string songId = 3;
86+
}
87+
5488
message ImageResponse {
5589
bytes data = 1;
5690
}

0 commit comments

Comments
 (0)