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