dorisbot/database/interfaces/public/facebook.go
2019-09-17 10:08:41 +00:00

17 lines
441 B
Go

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
GetByID(id string) (pubmodel.FacebookPage, bool, error)
GetAll() ([]pubmodel.FacebookPage, error)
Delete(id string) error
GetChannels(id string) ([]dsmodel.Channel, error)
}