17 lines
426 B
Go
17 lines
426 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, error)
|
||
|
GetAll() ([]pubmodel.FacebookPage, error)
|
||
|
Delete(id string) error
|
||
|
GetChannels() ([]dsmodel.Channel, error)
|
||
|
}
|