supplier.js 877 B

123456789101112131415161718192021222324252627282930313233343536373839
  1. const Mock = require('mockjs')
  2. const supplierList = []
  3. const count = 20
  4. for (let i = 0; i < count; i++) {
  5. supplierList.push(Mock.mock({
  6. authUserId: '@increment(1)',
  7. brandId: '@id', // 品牌id
  8. name: '@cname',
  9. linkMan: '@cname', // 联系人
  10. mobile: '18888888888', // 手机号
  11. pageNum: 0, // 页码
  12. pageSize: 20, // 分页大小
  13. shopName: '@cname', // 供应商名称
  14. shopType: '@boolean', // 供应商类型
  15. shopStatus: '@integer(0,1)',
  16. brandName: '@ctitle',
  17. createTime: '@date',
  18. createBy: '@name'
  19. }))
  20. }
  21. module.exports = [
  22. // {
  23. // url: '/shop/list',
  24. // type: 'get',
  25. // response: config => {
  26. // return {
  27. // code: 0,
  28. // data: {
  29. // list: supplierList,
  30. // total: supplierList.length
  31. // }
  32. // }
  33. // }
  34. // }
  35. ]