dorisbot/database/interfaces/public/facebook.go

17 lines
441 B
Go
Raw Permalink Normal View History

2019-09-16 14:06:23 +00:00
package public
import (
dsmodel "dorisbot/database/models/discord"
pubmodel "dorisbot/database/models/public"
)
// FacebookDAO -
type FacebookDAO interface {
Create(fb *pubmodel.FacebookPage) error
UpdatePost(fb *pubmodel.FacebookPage, postID string) error
2019-09-17 10:08:41 +00:00
GetByID(id string) (pubmodel.FacebookPage, bool, error)
2019-09-16 14:06:23 +00:00
GetAll() ([]pubmodel.FacebookPage, error)
Delete(id string) error
2019-09-17 10:08:41 +00:00
GetChannels(id string) ([]dsmodel.Channel, error)
2019-09-16 14:06:23 +00:00
}