2024-10-23 16:13:16 +00:00
|
|
|
syntax = "proto3";
|
|
|
|
|
|
|
|
option go_package = ".;proto";
|
|
|
|
|
|
|
|
package proto;
|
|
|
|
|
2024-10-31 13:07:53 +00:00
|
|
|
service AuditService {
|
|
|
|
rpc RecordEvent(RecordEventRequest) returns (RecordEventResponse) {}
|
2024-10-23 16:13:16 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
message RecordEventRequest {
|
2024-10-31 13:07:53 +00:00
|
|
|
uint64 user_id = 1;
|
|
|
|
string action = 2;
|
|
|
|
string target = 3;
|
|
|
|
string ip = 4;
|
|
|
|
string user_agent = 5;
|
2024-10-23 16:13:16 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
message RecordEventResponse {
|
2024-10-31 13:07:53 +00:00
|
|
|
bool is_success = 1;
|
2024-10-23 16:13:16 +00:00
|
|
|
}
|