Add books page

This commit is contained in:
2023-06-26 21:07:29 +10:00
parent c92b74b238
commit 2e019c00f4
13 changed files with 179 additions and 2 deletions

View File

@@ -0,0 +1,15 @@
module Adamantium
module Entities
class BookRequest < Dry::Struct
attribute :h, Types::Coercible::String
attribute :content, Types::Coercible::String
attribute :book_status, Types::Coercible::String
attribute :name, Types::Coercible::String
attribute :book_author, Types::Coercible::String
attribute :slug, Types::Coercible::String
attribute :category, Types::Array.of(Types::Coercible::String)
attribute :published_at, Types::Nominal::DateTime
attribute :post_type, Types::Coercible::String
end
end
end