const { mock } = require('mockjs') const { icons } = require('../utils') module.exports = [ { url: '/sys/sysType/v1/getTypesByKey', type: 'get', response() { return { success: true, code: 200, message: '成功', data: { rows: [ { id: '6', name: '流程分类', typeKey: 'FLOW_TYPE', parentId: '0', isLeaf: 'N', open: 'true', isParent: 'true', pkVal: '6', children: mock({ 'data|20': [ { createTime: '2021-02-01 17:53:08', id: '@id', typeGroupKey: 'FLOW_TYPE', name: '@cword(3,8)', typeKey: '111', struType: 1, parentId: '1301112336211382272', depth: 1, path: '6.1301112336211382272.1356178762215067648.', isLeaf: 'Y', ownerId: '0', sn: 0, isParent: 'false', pkVal: '1356178762215067648', }, ], }).data, }, ], }, } }, }, ]