Initial commit: 商品售卖网站
This commit is contained in:
@@ -0,0 +1,21 @@
|
||||
package schemas
|
||||
|
||||
type CreateArticleRequest struct {
|
||||
Title string `json:"title" binding:"required"`
|
||||
Content string `json:"content" binding:"required"`
|
||||
Summary string `json:"summary"`
|
||||
CoverImage string `json:"cover_image"`
|
||||
IsPinned bool `json:"is_pinned"`
|
||||
IsPublished bool `json:"is_published"`
|
||||
SortOrder int `json:"sort_order"`
|
||||
}
|
||||
|
||||
type UpdateArticleRequest struct {
|
||||
Title *string `json:"title"`
|
||||
Content *string `json:"content"`
|
||||
Summary *string `json:"summary"`
|
||||
CoverImage *string `json:"cover_image"`
|
||||
IsPinned *bool `json:"is_pinned"`
|
||||
IsPublished *bool `json:"is_published"`
|
||||
SortOrder *int `json:"sort_order"`
|
||||
}
|
||||
Reference in New Issue
Block a user