add methods in Repository and Model for importing data
This commit is contained in:
@@ -43,6 +43,8 @@ func ConvertArticlesToDtos(articles []Article) []ArticleDTO {
|
||||
return dtos
|
||||
}
|
||||
|
||||
type ArticleDTOList []ArticleDTO
|
||||
|
||||
type CreateArticleDTO struct {
|
||||
Title string `json:"title" binding:"required"`
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user