2021-09-26 19:13:38 +00:00
|
|
|
package submit
|
2021-08-04 02:51:22 +00:00
|
|
|
|
|
|
|
type Submission struct {
|
|
|
|
ID int `json:"id,omitempty" db:"id"`
|
|
|
|
Link string `json:"link" form:"link" db:"link"`
|
|
|
|
Image string `json:"image,omitempty" form:"image"`
|
|
|
|
CreatedAt string `json:"created_at" db:"created_at"`
|
|
|
|
Author string `json:"author" form:"author" db:"author"`
|
|
|
|
Status int `json:"status" db:"status"`
|
|
|
|
}
|
|
|
|
|
|
|
|
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
|
|
|
}
|
|
|
|
|
2021-09-26 19:13:38 +00:00
|
|
|
type Error struct {
|
|
|
|
Error string `json:"error"`
|
2021-08-04 02:51:22 +00:00
|
|
|
}
|