36 lines
657 B
Go
36 lines
657 B
Go
package api
|
|
|
|
import (
|
|
"context"
|
|
|
|
"github.com/tigorlazuardi/bluemage/go/gen/jet/model"
|
|
)
|
|
|
|
type RecentlyAddedImagesRequest struct {
|
|
Subreddits []string
|
|
Devices []string
|
|
Limit int64
|
|
After int64
|
|
Before int64
|
|
}
|
|
|
|
type RecentlyAddedImagesResponse struct {
|
|
Groups []RecentlyAddedImagesSubredditGroup
|
|
After *int64
|
|
Before *int64
|
|
}
|
|
|
|
type RecentlyAddedImagesSubredditGroup struct {
|
|
Name string
|
|
Devices []RecentlyAddedImagesDeviceGroup
|
|
}
|
|
|
|
type RecentlyAddedImagesDeviceGroup struct {
|
|
Slug string
|
|
Name string
|
|
Images []model.Images
|
|
}
|
|
|
|
func (api *API) RecentlyAddedImages(ctx context.Context, request RecentlyAddedImagesRequest) {
|
|
}
|