| 12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061 |
- import { Model, Collection } from 'js-abstract-model'
- class Banner extends Model {
- constructor (data) {
- super(data, [
- { key: 'id' },
- { key: 'title' },
- { key: 'body' },
- { key: 'photo' },
- {
- key: 'features',
- default: {
- xl: {
- src: '',
- width: '',
- height: ''
- },
- lg: {
- src: '',
- width: '',
- height: ''
- },
- md: {
- src: '',
- width: '',
- height: ''
- },
- sm: {
- src: '',
- width: '',
- height: ''
- },
- xs: {
- src: '',
- width: '',
- height: ''
- }
- }
- },
- { key: 'link' },
- { key: 'order' },
- { key: 'ratio' },
- { key: 'useAEEEvent' },
- {
- key: 'AEEEventBody',
- default: {
- id: '-',
- name: '-',
- creative: null,
- position: null
- }
- }
- ])
- }
- }
- class BannerList extends Collection {
- model () {
- return Banner
- }
- }
- export { Banner, BannerList }
|