Bluemage/go/api/images_recently_added.go

36 lines
657 B
Go
Raw Permalink Normal View History

2024-08-19 21:16:22 +07:00
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) {
}