package validate_service

type Article struct {
	Title      string `json:"title" validate:"required"`
	LogoPic    string `json:"logo_pic"  validate:"required"`
	ImgUrl     string `json:"img_url"  validate:"required"`
	Content    string `json:"content"  validate:"required"`
	Source     string `json:"source"`
	Top        uint8  `json:"top"`
	Highlight  uint8  `json:"highlight"`
	PlatformId int    `json:"platform_id"`
}

type EditArticle struct {
	Article
	Id int `json:"id" validate:"required"`
}
