feat: add audit proto files
All checks were successful
Publish / Publish Job (push) Successful in 2m24s

This commit is contained in:
Дмитрий
2026-04-13 21:02:13 +03:00
parent 4592be93bb
commit 3f2c00b1b1
2 changed files with 38 additions and 1 deletions

37
proto/admin/audit.proto Normal file
View File

@@ -0,0 +1,37 @@
syntax = "proto3";
package audit.v1;
option go_package = "git.lendry.ru/lendry-erp/proto.git/go;pb";
service AuditService {
rpc GetAuditLogs(GetAuditLogsRequest) returns (GetAuditLogsResponse);
}
message GetAuditLogsRequest {
optional string account_id = 1;
optional string type = 2;
optional string action = 3;
optional string start_date = 4; // ISO string
optional string end_date = 5; // ISO string
int32 page = 6;
int32 limit = 7;
}
message AuditLogItem {
string id = 1;
string account_id = 2;
string type = 3;
string action = 4;
string ip_address = 5;
string user_agent = 6;
string detail = 7;
string created_at = 8;
}
message GetAuditLogsResponse {
repeated AuditLogItem logs = 1;
int32 total = 2;
int32 page = 3;
int32 total_pages = 4;
}