Skip to content

esay mock

LEI SHENG edited this page Jun 3, 2019 · 1 revision

esay-mock 使用说明

后台接口模拟地址:https://easy-mock.com/


我的后台接口地址: https://easy-mock.com/mock/5cf380b5cfcb92308b8d04cd/react-bike esay-mock截图

后台接口

用户管理

获取用户列表 GET : /table/list

接口配置

{
  "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",
    }]
  }
}

城市管理

城市管理:列表 GET /city

接口配置

{
  "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"
    }]
  }
}

开通城市 POST /city/open

接口配置

{
  "code": "0",
  "message": "success",
  "data": {}
}

订单管理

查询订单列表 POST /order

接口配置

{
  "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"
    }]
  }
}