add post userbook
needed a refactor to check the id in db during dto validation
This commit is contained in:
5
internal/dto/userbookpostcreate.go
Normal file
5
internal/dto/userbookpostcreate.go
Normal file
@@ -0,0 +1,5 @@
|
||||
package dto
|
||||
|
||||
type UserBookPostCreate struct {
|
||||
BookID uint `json:"bookId" binding:"required"`
|
||||
}
|
||||
Reference in New Issue
Block a user