add userbook from searched book

This commit is contained in:
2025-10-20 17:56:12 +02:00
parent 6d15374c87
commit e5347e3583
5 changed files with 43 additions and 6 deletions

View File

@@ -3,4 +3,5 @@ package dto
type BookSearchGet struct {
Title string `json:"title" binding:"required,max=300"`
Author string `json:"author" binding:"max=100"`
ID uint `json:"id"`
}

View File

@@ -9,5 +9,6 @@ func BookDbToWs(b *model.Book) dto.BookSearchGet {
return dto.BookSearchGet{
Title: b.Title,
Author: b.Author,
ID: b.ID,
}
}