Skip to content

Commit

Permalink
🌱Typo
Browse files Browse the repository at this point in the history
  • Loading branch information
dumindu committed Sep 14, 2023
1 parent d8e96ee commit 09ea289
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions api/resource/book/model.go
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ type DTO struct {
Title string `json:"title"`
Author string `json:"author"`
PublishedDate string `json:"published_date"`
ImageUrl string `json:"image_url"`
ImageURL string `json:"image_url"`
Description string `json:"description"`
}

Expand All @@ -29,7 +29,7 @@ type Book struct {
Title string
Author string
PublishedDate time.Time
ImageUrl string
ImageURL string
Description string
CreatedAt time.Time
UpdatedAt time.Time
Expand All @@ -44,7 +44,7 @@ func (b *Book) ToDto() *DTO {
Title: b.Title,
Author: b.Author,
PublishedDate: b.PublishedDate.Format("2006-01-02"),
ImageUrl: b.ImageUrl,
ImageURL: b.ImageURL,
Description: b.Description,
}
}
Expand All @@ -66,7 +66,7 @@ func (f *Form) ToModel() *Book {
Title: f.Title,
Author: f.Author,
PublishedDate: pubDate,
ImageUrl: f.ImageURL,
ImageURL: f.ImageURL,
Description: f.Description,
}
}

0 comments on commit 09ea289

Please sign in to comment.