summaryrefslogtreecommitdiffstats
path: root/internal/models/reddit.go
blob: 4d81aa80a59e5c76de26c84c28a1724b3b4f882d (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
package models

type RedditSubredditParams struct {
	Subreddit string `json:"subreddit"`
}

type RedditUserParams struct {
	Username string `json:"username"`
}

type RedditResponse struct {
	Subreddit string      `json:"subreddit,omitempty"`
	Username  string      `json:"username,omitempty"`
	Type      string      `json:"type,omitempty"`
	Results   interface{} `json:"results"`
	Credits   struct {
		Remaining int  `json:"remaining"`
		Unlimited bool `json:"unlimited"`
	} `json:"credits"`
	Error string `json:"error,omitempty"`
}