Second commit

added few test, first api to add book
This commit is contained in:
2025-09-23 17:16:48 +02:00
parent 0457ca2011
commit 8432902df1
19 changed files with 298 additions and 123 deletions

7
internal/api/dto.go Normal file
View File

@@ -0,0 +1,7 @@
package api
type bookPostCreate struct {
Title string `json:"title" binding:"required"`
Author string `json:"author"`
Rating int `json:"rating" binding:"min=0,max=10"`
}