1
0
justguestbook/guestbook/database.go

16 lines
368 B
Go
Raw Normal View History

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)
Count() (int64, error)
2022-10-19 03:25:43 +04:00
NewEntry(entry *Entry) error
2023-05-06 22:18:20 +04:00
EditEntry(entry *Entry) error
DeleteEntry(entryID int64) error
2022-10-19 03:25:43 +04:00
NewReply(reply *Reply) error
2023-05-06 22:18:20 +04:00
EditReply(reply *Reply) error
DeleteReply(entryID int64) error
2022-10-19 03:25:43 +04:00
Close() error
}