refine code

This commit is contained in:
Pan
2019-03-18 18:07:55 +08:00
parent c93d88a348
commit 8b382e1e15
13 changed files with 167 additions and 165 deletions

View File

@@ -8,9 +8,10 @@ for (let i = 0; i < count; i++) {
name: '@first'
}))
}
NameList.push({ name: 'mockPan' })
NameList.push({ name: 'mock-Pan' })
export default [
// username search
{
url: '/search/user',
type: 'get',
@@ -23,14 +24,15 @@ export default [
return { items: mockNameList }
}
},
// transaction list
{
url: '/transaction/list',
type: 'get',
response: _ => {
const count = 20
return {
total: count,
[`items|${count}`]: [{
total: 20,
'items|20': [{
order_no: '@guid()',
timestamp: +Mock.Random.date('T'),
username: '@name()',