UNPKG

ttk-app-core

Version:

@ttk/recat enterprise develop framework

34 lines (32 loc) 791 B
import moment from 'moment' export default [ { url: '/form/attributeForm', type: 'post', response: (req, res, next) => { // req.body 可获取post参数 // req.query 可获取get参数 return new Promise((res, rej) => { setTimeout(() => { res({ body: { name: "李三", sortNo: 2, isCycle: Math.round(Math.random()), isUse: Math.round(Math.random()), dateStart: '2015-06-06', dateEnd: '2015-06-06', testType: ["A", "B"], isDefault: true, url: "99" }, head: { errorCode: '0', data: null } }) }, 2000) }) } } ]