2022-10-19 03:25:43 +04:00
|
|
|
package guestbook
|
|
|
|
|
|
|
|
const DateFormat = "2006-01-02 15:04:05"
|
|
|
|
|
|
|
|
type Guestbook interface {
|
|
|
|
Entries(page, pageSize int64) ([]*Entry, error)
|
2022-10-21 04:25:15 +04:00
|
|
|
Count() (int64, error)
|
2022-10-19 03:25:43 +04:00
|
|
|
NewEntry(entry *Entry) error
|
2023-02-05 20:03:36 +04:00
|
|
|
UpdateEntry(entry *Entry) error
|
2023-03-23 17:03:23 +04:00
|
|
|
DeleteEntry(entryID int64) (int64, error)
|
2022-10-19 03:25:43 +04:00
|
|
|
NewReply(reply *Reply) error
|
2023-02-05 20:03:36 +04:00
|
|
|
UpdateReply(reply *Reply) error
|
2023-03-23 17:03:23 +04:00
|
|
|
DeleteReply(entryID int64) (int64, error)
|
2022-10-19 03:25:43 +04:00
|
|
|
Close() error
|
|
|
|
}
|