| 1234567891011121314151617181920212223 |
- import { Collection, Model } from 'js-abstract-model'
- class ContentTopicCategory extends Model {
- constructor (data) {
- super(data, [
- { key: 'id' },
- { key: 'title' },
- { key: 'parent' },
- {
- key: 'children',
- defalut: []
- }
- ])
- }
- }
- class ContentTopicCategoryList extends Collection {
- model () {
- return ContentTopicCategory
- }
- }
- export { ContentTopicCategory, ContentTopicCategoryList }
|