{"size": 651, "ext": "js", "max_stars_repo_path": "src/mock/admin/member/index.js", "max_stars_repo_name": "Aysnine/vue-magua-movie", "max_stars_repo_stars_event_min_datetime": "2019-01-12T02:13:12.000Z", "max_stars_repo_stars_event_max_datetime": "2020-10-20T09:16:28.000Z", "max_issues_repo_path": "src/mock/admin/member/index.js", "max_issues_repo_name": "Aysnine/vue-magua-movie", "max_issues_repo_issues_event_min_datetime": null, "max_issues_repo_issues_event_max_datetime": null, "max_forks_repo_path": "src/mock/admin/member/index.js", "max_forks_repo_name": "Aysnine/vue-magua-movie", "max_forks_repo_forks_event_min_datetime": null, "max_forks_repo_forks_event_max_datetime": null}
{"max_stars_count": 4, "max_issues_count": null, "max_forks_count": null, "avg_line_length": 23.25, "max_line_length": 73, "alphanum_fraction": 0.4869431644}
export default [
  /* 获取会员 */
  {
    path: /\/member\/fetchMember.*/,
    method: 'post',
    handle({ body, db }) {
      let { searchFeild, searchValue } = body
      searchValue = searchValue ? searchValue.trim() : searchValue
      let chain = db.get('member')
      chain =
        searchFeild &&
        searchValue &&
        ['account', 'nickname'].indexOf(searchFeild) > -1
          ? chain.filter(
              i => i[searchFeild].toLowerCase().indexOf(searchValue) > -1
            )
          : chain
      return {
        code: 0,
        data: chain
          .cloneDeep()
          .reverse()
          .value()
      }
    }
  }
]
