{"size": 259, "ext": "js", "max_stars_repo_path": "service/koa-mongo-case/src/utils/resp.js", "max_stars_repo_name": "Clearives/cc-nodejs", "max_stars_repo_stars_event_min_datetime": "2019-11-21T03:17:05.000Z", "max_stars_repo_stars_event_max_datetime": "2019-11-21T03:17:05.000Z", "max_issues_repo_path": "service/koa-mongo-case/src/utils/resp.js", "max_issues_repo_name": "Clearives/cc-nodejs", "max_issues_repo_issues_event_min_datetime": "2019-11-15T05:58:26.000Z", "max_issues_repo_issues_event_max_datetime": "2022-03-03T22:57:22.000Z", "max_forks_repo_path": "service/koa-mongo-case/src/utils/resp.js", "max_forks_repo_name": "Clearives/cc-nodejs", "max_forks_repo_forks_event_min_datetime": null, "max_forks_repo_forks_event_max_datetime": null}
{"max_stars_count": 1, "max_issues_count": 17, "max_forks_count": null, "avg_line_length": 15.2352941176, "max_line_length": 53, "alphanum_fraction": 0.4362934363}
export default ({isOk = true, code = 200, data}) => {
  let res = {}
  if(isOk) {
    res = {
      status: 'ok',
      code: code,
      data: data
    }
  } else {
    res = {
      status: 'error',
      code: code,
      msg: data
    }
  }
  return res
}