-
Notifications
You must be signed in to change notification settings - Fork 2
esay mock
LEI SHENG edited this page Jun 3, 2019
·
1 revision
后台接口模拟地址:https://easy-mock.com/
我的后台接口地址: https://easy-mock.com/mock/5cf380b5cfcb92308b8d04cd/react-bike
接口配置
{
"code": '0',
"message": 'success',
"data": {
"page": 1,
"pageSize": 20,
"totalCount|50-100": 10,
"result|50-100": [{
"id|+1": 1,
"userName": '@cname',
"sex|1-3": 1,
"state|1-6": 1,
"interest|1-9": 1,
"birthday": "@date(yyyy-MM-dd)",
"address": "@county(true)",
"time": "@datetime",
}]
}
}
接口配置
{
"code": "0",
"message": "success",
"data": {
"page": 1,
"pageSize": 20,
"totalCount|1-30": 10,
"result|10-50": [{
"id|+1": 1,
"name": "@city",
"mode|1-2": 1,
"opMode|1-3": 1,
"franchiseeName": "@cname",
"cityAdmins|1-3": [{
"userName": "@cname"
}],
"openTime": "@datetime('yyyy-MM-dd HH:mm:ss')",
"updateTime": "@datetime('yyyy-MM-dd HH:mm:ss')",
"sysUserName": "@cname",
"time": "@now"
}]
}
}
接口配置
{
"code": "0",
"message": "success",
"data": {}
}
接口配置
{
"code": "0",
"message": "success",
"data": {
"page": 1,
"pageSize": 20,
"totalCount|1-30": 10,
"result|10-50": [{
"id|+1": 1,
"orderSn|+1": 1,
"bikeSn|+1": 1,
"userName": "@cname",
"mobile|10000-99999": 10000,
"distance|1-100": 1,
"totalTime|1-200": 1,
"status|1-2": 1,
"startTime": "@datetime('yyyy-MM-dd HH:mm:ss')",
"endTime": "@datetime('yyyy-MM-dd HH:mm:ss')",
"totalFee|0-10": 1,
"userPay|0-10": 1,
"time": "@now"
}]
}
}