2024-08-01 17:01:50 +00:00
|
|
|
module history.data;
|
|
|
|
|
|
|
|
import std.datetime;
|
|
|
|
|
|
|
|
import handy_httpd.components.optional;
|
|
|
|
|
|
|
|
import history.model;
|
|
|
|
|
|
|
|
interface HistoryRepository {
|
|
|
|
Optional!History findById(ulong id);
|
|
|
|
HistoryItem[] findItemsBefore(ulong historyId, SysTime timestamp, uint limit);
|
|
|
|
HistoryItemText getTextItem(ulong itemId);
|
2024-09-19 19:12:23 +00:00
|
|
|
void addTextItem(ulong historyId, SysTime timestamp, string text);
|
2024-08-01 17:01:50 +00:00
|
|
|
void deleteById(ulong id);
|
|
|
|
}
|