mirror of
https://github.com/Cockatrice/Cockatrice.git
synced 2026-06-12 09:04:53 -07:00
Support Mod/Admin Notes Section (#5361)
This commit is contained in:
parent
14807ba036
commit
1f58f7e93d
13 changed files with 175 additions and 3 deletions
|
|
@ -134,6 +134,7 @@ set(PROTO_FILES
|
|||
response_viewlog_history.proto
|
||||
response_warn_history.proto
|
||||
response_warn_list.proto
|
||||
response_get_admin_notes.proto
|
||||
response.proto
|
||||
room_commands.proto
|
||||
room_event.proto
|
||||
|
|
|
|||
|
|
@ -9,6 +9,8 @@ message ModeratorCommand {
|
|||
VIEWLOG_HISTORY = 1005;
|
||||
GRANT_REPLAY_ACCESS = 1006;
|
||||
FORCE_ACTIVATE_USER = 1007;
|
||||
GET_ADMIN_NOTES = 1008;
|
||||
UPDATE_ADMIN_NOTES = 1009;
|
||||
}
|
||||
extensions 100 to max;
|
||||
}
|
||||
|
|
@ -88,4 +90,19 @@ message Command_ForceActivateUser {
|
|||
}
|
||||
optional string username_to_activate = 1;
|
||||
optional string moderator_name = 2;
|
||||
}
|
||||
}
|
||||
|
||||
message Command_GetAdminNotes {
|
||||
extend ModeratorCommand {
|
||||
optional Command_GetAdminNotes ext = 1008;
|
||||
}
|
||||
optional string user_name = 1;
|
||||
}
|
||||
|
||||
message Command_UpdateAdminNotes {
|
||||
extend ModeratorCommand {
|
||||
optional Command_UpdateAdminNotes ext = 1009;
|
||||
}
|
||||
optional string user_name = 1;
|
||||
optional string notes = 2;
|
||||
}
|
||||
|
|
|
|||
|
|
@ -62,6 +62,7 @@ message Response {
|
|||
VIEW_LOG = 1015;
|
||||
FORGOT_PASSWORD_REQUEST = 1016;
|
||||
PASSWORD_SALT = 1017;
|
||||
GET_ADMIN_NOTES = 1018;
|
||||
REPLAY_LIST = 1100;
|
||||
REPLAY_DOWNLOAD = 1101;
|
||||
}
|
||||
|
|
|
|||
10
common/pb/response_get_admin_notes.proto
Normal file
10
common/pb/response_get_admin_notes.proto
Normal file
|
|
@ -0,0 +1,10 @@
|
|||
syntax = "proto2";
|
||||
import "response.proto";
|
||||
|
||||
message Response_GetAdminNotes {
|
||||
extend Response {
|
||||
optional Response_GetAdminNotes ext = 1018;
|
||||
}
|
||||
optional string user_name = 1;
|
||||
optional string notes = 2;
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue