TicketCategory.js 328 B

123456789101112131415161718
  1. import { Collection, Model } from 'js-abstract-model'
  2. class TicketCategory extends Model {
  3. constructor (data) {
  4. super(data, [
  5. { key: 'id' },
  6. { key: 'name' }
  7. ])
  8. }
  9. }
  10. class TicketCategoryList extends Collection {
  11. model () {
  12. return TicketCategory
  13. }
  14. }
  15. export { TicketCategory, TicketCategoryList }