jokes-bapak2/api/core/schema/submit.go

25 lines
670 B
Go
Raw Normal View History

package schema
2021-08-04 02:51:22 +00:00
type Submission struct {
2022-09-03 10:53:46 +00:00
ID int `json:"id,omitempty"`
Link string `json:"link"`
Image string `json:"image,omitempty"`
CreatedAt string `json:"created_at"`
Author string `json:"author"`
Status int `json:"status"`
2021-08-04 02:51:22 +00:00
}
type SubmissionQuery struct {
Author string `query:"author"`
Limit string `query:"limit"`
Page string `query:"page"`
Approved string `query:"approved"`
}
type ResponseSubmission struct {
2021-09-27 13:02:58 +00:00
ID string `json:"id,omitempty"`
Message string `json:"message,omitempty"`
Submission Submission `json:"submission,omitempty"`
AuthorPage string `json:"author_page,omitempty"`
2021-08-04 02:51:22 +00:00
}