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; }