Files
bibliomane/internal/api/dto.go
Arthur Lefebvre 8432902df1 Second commit
added few test, first api to add book
2025-09-23 17:16:48 +02:00

8 lines
178 B
Go

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