Refactor api code: split between packages
This commit is contained in:
6
internal/dto/bookpostcreate.go
Normal file
6
internal/dto/bookpostcreate.go
Normal file
@@ -0,0 +1,6 @@
|
||||
package dto
|
||||
|
||||
type BookPostCreate struct {
|
||||
Title string `json:"title" binding:"required,max=300"`
|
||||
Author string `json:"author" binding:"max=100"`
|
||||
}
|
||||
Reference in New Issue
Block a user