Second commit
added few test, first api to add book
This commit is contained in:
7
internal/api/dto.go
Normal file
7
internal/api/dto.go
Normal 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"`
|
||||
}
|
||||
Reference in New Issue
Block a user