blob: 359a3ef5b3bf5495720d721241fdd120d0aebdf5 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
|
package district
import (
"shrine/types/user"
"time"
)
type DistrictResponse struct {
Slug string `json:"slug"`
Name string `json:"name"`
Description string `json:"description"`
Background string `json:"background"`
Foreground string `json:"foreground"`
Detail string `json:"detail"`
SiteCount int64 `json:"site_count"`
}
type TagResponse struct {
Name string `json:"name"`
Count int64 `json:"count"`
}
type SiteResponse struct {
Ref string `json:"ref"`
District string `json:"district"`
DistrictSlug string `json:"district_slug"`
Title string `json:"title"`
URL string `json:"url"`
Description string `json:"description"`
ThumbnailURL string `json:"thumbnail_url"`
Tags []string `json:"tags"`
Submitter user.CitizenSummaryResponse `json:"submitter"`
CreatedAt time.Time `json:"created_at"`
}
type SiteRequestResponse struct {
SiteResponse
Status string `json:"status"`
ReviewedBy *user.CitizenSummaryResponse `json:"reviewed_by"`
ReviewedAt *time.Time `json:"reviewed_at"`
}
type AdminSiteResponse struct {
SiteResponse
Status string `json:"status"`
ReviewedBy *user.CitizenSummaryResponse `json:"reviewed_by"`
ReviewedAt *time.Time `json:"reviewed_at"`
}
|