log.js 504 B

1234567891011121314151617181920212223242526
  1. const Mock = require('mockjs')
  2. module.exports = [
  3. {
  4. url: '/vue-admin-template/log/list',
  5. type: 'get',
  6. response: config => {
  7. const data = Mock.mock({
  8. 'items|9': [{
  9. content: '@csentence',
  10. category: '@word(2, 3)',
  11. level: '@integer(1, 3)',
  12. time: '@datetime'
  13. }]
  14. })
  15. const items = data.items
  16. return {
  17. code: 20000,
  18. data: {
  19. total: 9 * 10,
  20. items: items
  21. }
  22. }
  23. }
  24. }
  25. ]