Blame view

babylon-vue-4.0.0/src/service/CustomerService.js 688 Bytes
0f94839d   함상기   babylon client fo...
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
  export default class CustomerService {
      getCustomersSmall() {
          return fetch('demo/data/customers-small.json')
              .then((res) => res.json())
              .then((d) => d.data);
      }
  
      getCustomersMedium() {
          return fetch('demo/data/customers-medium.json')
              .then((res) => res.json())
              .then((d) => d.data);
      }
  
      getCustomersLarge() {
          return fetch('demo/data/customers-large.json')
              .then((res) => res.json())
              .then((d) => d.data);
      }
  
      getCustomersXLarge() {
          return fetch('demo/data/customers-xlarge.json')
              .then((res) => res.json())
              .then((d) => d.data);
      }
  }