14 lines
341 B
D
14 lines
341 B
D
|
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);
|
||
|
void deleteById(ulong id);
|
||
|
}
|