mirror of
https://github.com/DarkflameUniverse/DarkflameServer.git
synced 2026-06-05 22:34:21 +00:00
- Implemented dashboard audit logging with InsertAuditLog, GetRecentAuditLogs, GetAuditLogsByIP, and CleanupOldAuditLogs methods. - Created dashboard configuration management with GetDashboardConfig and SetDashboardConfig methods. - Added new tables for dashboard_audit_log and dashboard_config in both MySQL and SQLite migrations. - Updated CMakeLists to include Crow and ASIO for dashboard server functionality. - Enhanced existing database classes to support new dashboard features, including character, play key, and property management. - Added new methods for retrieving and managing play keys, properties, and pet names. - Updated TestSQLDatabase to include stubs for new dashboard-related methods. - Modified shared and dashboard configuration files for new settings.
26 lines
566 B
C++
26 lines
566 B
C++
#ifndef __ICOMMANDLOG__H__
|
|
#define __ICOMMANDLOG__H__
|
|
|
|
#include <cstdint>
|
|
#include <string>
|
|
#include <string_view>
|
|
#include <vector>
|
|
|
|
class ICommandLog {
|
|
public:
|
|
struct Entry {
|
|
uint64_t timestamp{};
|
|
LWOOBJID characterId{};
|
|
std::string command;
|
|
std::string arguments;
|
|
};
|
|
|
|
// Insert a new slash command log entry.
|
|
virtual void InsertSlashCommandUsage(const LWOOBJID characterId, const std::string_view command) = 0;
|
|
|
|
// Get recent command log entries
|
|
virtual std::vector<Entry> GetCommandLogs(uint32_t limit = 100) = 0;
|
|
};
|
|
|
|
#endif //!__ICOMMANDLOG__H__
|