Commit 84d0fe6e by liyijie

feat: export_header 增加 items的选项

parent 0891caff
module TalltyImportExport
module Attr
class ExportHeader
class ExportHeaderItem
include AttrJson::Model
attr_json_config(bad_cast: :as_nil, unknown_key: :allow)
......@@ -17,5 +17,12 @@ module TalltyImportExport
attr_json :proc, ActiveModel::Type::Value.new, array: true
attr_json :list, self.to_type, array: true
end
class ExportHeader
include AttrJson::Model
attr_json_config(bad_cast: :as_nil, unknown_key: :allow)
attr_json :items, ExportHeaderItem.to_type, array: true
end
end
end
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment