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