26 lines
545 B
Go
26 lines
545 B
Go
package builder
|
|
|
|
import (
|
|
"git.dragse.it/anthrove/e621-sdk-go/pkg/e621/endpoints"
|
|
"git.dragse.it/anthrove/e621-sdk-go/pkg/e621/model"
|
|
)
|
|
|
|
type DBExportListBuilder interface {
|
|
Execute() ([]string, error)
|
|
}
|
|
|
|
func NewGetDBExportListBuilder(requestContext model.RequestContext) DBExportListBuilder {
|
|
return &getDBExportList{
|
|
requestContext: requestContext,
|
|
}
|
|
}
|
|
|
|
type getDBExportList struct {
|
|
requestContext model.RequestContext
|
|
}
|
|
|
|
func (g *getDBExportList) Execute() ([]string, error) {
|
|
return endpoints.GetDBExportList(g.requestContext)
|
|
|
|
}
|