22 lines
373 B
Protocol Buffer
22 lines
373 B
Protocol Buffer
|
syntax = "proto3";
|
||
|
|
||
|
option go_package = ".;proto";
|
||
|
|
||
|
package proto;
|
||
|
|
||
|
service EventRecorder {
|
||
|
rpc RecordEvent(RecordEventRequest) returns (RecordEventResponse) {}
|
||
|
}
|
||
|
|
||
|
message RecordEventRequest {
|
||
|
uint64 user_id = 1;
|
||
|
string action = 2;
|
||
|
string target = 3;
|
||
|
string ip = 4;
|
||
|
string user_agent = 5;
|
||
|
}
|
||
|
|
||
|
message RecordEventResponse {
|
||
|
bool is_success = 1;
|
||
|
}
|