ContentTopicCategory.js 446 B

1234567891011121314151617181920212223
  1. import { Collection, Model } from 'js-abstract-model'
  2. class ContentTopicCategory extends Model {
  3. constructor (data) {
  4. super(data, [
  5. { key: 'id' },
  6. { key: 'title' },
  7. { key: 'parent' },
  8. {
  9. key: 'children',
  10. defalut: []
  11. }
  12. ])
  13. }
  14. }
  15. class ContentTopicCategoryList extends Collection {
  16. model () {
  17. return ContentTopicCategory
  18. }
  19. }
  20. export { ContentTopicCategory, ContentTopicCategoryList }