generated from VLADIMIR/template_frontend
up
This commit is contained in:
@@ -342,6 +342,49 @@ service EveningDetectiveServer {
|
||||
};
|
||||
}
|
||||
|
||||
rpc SavePlaylistGroup(SavePlaylistGroupReq) returns (SavePlaylistGroupRsp) {
|
||||
option (google.api.http) = {
|
||||
post: "/api/playlists/{playlistID}/groups"
|
||||
body: "*"
|
||||
};
|
||||
option (grpc.gateway.protoc_gen_openapiv2.options.openapiv2_operation) = {
|
||||
tags : "Музыка";
|
||||
summary: "Сохранить группу плейлиста";
|
||||
};
|
||||
}
|
||||
|
||||
rpc DeletePlaylistGroup(DeletePlaylistGroupReq) returns (DeletePlaylistGroupRsp) {
|
||||
option (google.api.http) = {
|
||||
delete: "/api/playlists/{playlistID}/groups/{groupID}"
|
||||
};
|
||||
option (grpc.gateway.protoc_gen_openapiv2.options.openapiv2_operation) = {
|
||||
tags : "Музыка";
|
||||
summary: "Удалить группу, сохранив треки";
|
||||
};
|
||||
}
|
||||
|
||||
rpc ReorderPlaylistGroups(ReorderPlaylistGroupsReq) returns (ReorderPlaylistGroupsRsp) {
|
||||
option (google.api.http) = {
|
||||
put: "/api/playlists/{playlistID}/groups/order"
|
||||
body: "*"
|
||||
};
|
||||
option (grpc.gateway.protoc_gen_openapiv2.options.openapiv2_operation) = {
|
||||
tags : "Музыка";
|
||||
summary: "Изменить порядок групп плейлиста";
|
||||
};
|
||||
}
|
||||
|
||||
rpc SetPlaylistTrackGroup(SetPlaylistTrackGroupReq) returns (SetPlaylistTrackGroupRsp) {
|
||||
option (google.api.http) = {
|
||||
put: "/api/playlists/{playlistID}/tracks/{trackID}/group"
|
||||
body: "*"
|
||||
};
|
||||
option (grpc.gateway.protoc_gen_openapiv2.options.openapiv2_operation) = {
|
||||
tags : "Музыка";
|
||||
summary: "Назначить треку группу";
|
||||
};
|
||||
}
|
||||
|
||||
rpc GetPlaylists(GetPlaylistsReq) returns (GetPlaylistsRsp) {
|
||||
option (google.api.http) = { get: "/api/playlists" };
|
||||
option (grpc.gateway.protoc_gen_openapiv2.options.openapiv2_operation) = {
|
||||
@@ -1400,17 +1443,71 @@ message DownloadFileReq {
|
||||
string filename = 1;
|
||||
}
|
||||
|
||||
enum PlaylistGroupEndMode {
|
||||
PLAYLIST_GROUP_END_MODE_REPEAT = 0;
|
||||
PLAYLIST_GROUP_END_MODE_STOP = 1;
|
||||
PLAYLIST_GROUP_END_MODE_NEXT = 2;
|
||||
}
|
||||
|
||||
message PlaylistGroup {
|
||||
int32 ID = 1;
|
||||
string name = 2;
|
||||
int32 position = 3;
|
||||
PlaylistGroupEndMode end_mode = 4;
|
||||
}
|
||||
|
||||
message SavePlaylistGroupReq {
|
||||
int32 playlistID = 1;
|
||||
int32 groupID = 2;
|
||||
string name = 3;
|
||||
PlaylistGroupEndMode end_mode = 4;
|
||||
}
|
||||
|
||||
message SavePlaylistGroupRsp {
|
||||
Playlist playlist = 1;
|
||||
}
|
||||
|
||||
message DeletePlaylistGroupReq {
|
||||
int32 playlistID = 1;
|
||||
int32 groupID = 2;
|
||||
}
|
||||
|
||||
message DeletePlaylistGroupRsp {
|
||||
Playlist playlist = 1;
|
||||
}
|
||||
|
||||
message ReorderPlaylistGroupsReq {
|
||||
int32 playlistID = 1;
|
||||
repeated int32 groupIDs = 2;
|
||||
}
|
||||
|
||||
message ReorderPlaylistGroupsRsp {
|
||||
Playlist playlist = 1;
|
||||
}
|
||||
|
||||
message SetPlaylistTrackGroupReq {
|
||||
int32 playlistID = 1;
|
||||
int32 trackID = 2;
|
||||
int32 groupID = 3;
|
||||
}
|
||||
|
||||
message SetPlaylistTrackGroupRsp {
|
||||
Playlist playlist = 1;
|
||||
}
|
||||
|
||||
message PlaylistTrack {
|
||||
int32 ID = 1;
|
||||
string name = 2;
|
||||
string filename = 3;
|
||||
int32 position = 4;
|
||||
int32 group_id = 5;
|
||||
}
|
||||
|
||||
message Playlist {
|
||||
int32 ID = 1;
|
||||
string name = 2;
|
||||
repeated PlaylistTrack tracks = 3;
|
||||
repeated PlaylistGroup groups = 4;
|
||||
}
|
||||
|
||||
message GetPlaylistsReq {}
|
||||
@@ -1885,6 +1982,7 @@ message MusicState {
|
||||
bool loop = 5;
|
||||
MusicPlaybackState playback = 6;
|
||||
int64 state_version = 7;
|
||||
int32 group_id = 8;
|
||||
}
|
||||
|
||||
message GetGameMusicReq {
|
||||
@@ -1906,6 +2004,7 @@ message SetGameMusicReq {
|
||||
int32 volume = 5;
|
||||
bool loop = 6;
|
||||
MusicPlaybackState playback = 7;
|
||||
int32 group_id = 8;
|
||||
}
|
||||
|
||||
message SetGameMusicRsp {
|
||||
@@ -1915,6 +2014,7 @@ message SetGameMusicRsp {
|
||||
message AdvanceScreenMusicReq {
|
||||
string screenID = 1;
|
||||
string accessToken = 2;
|
||||
string expected_state_version = 3;
|
||||
}
|
||||
|
||||
message AdvanceScreenMusicRsp {
|
||||
@@ -2052,10 +2152,12 @@ message ScreenTeam {
|
||||
string ID = 1;
|
||||
string name = 2;
|
||||
}
|
||||
|
||||
message GetScreenTeamsReq {
|
||||
string screenID = 1;
|
||||
string access_token = 2;
|
||||
}
|
||||
|
||||
message GetScreenTeamsRsp {
|
||||
repeated ScreenTeam teams = 1;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user