{"size": 296, "ext": "js", "max_stars_repo_path": "src/api/user.js", "max_stars_repo_name": "dianjiu/gos-log-vue", "max_stars_repo_stars_event_min_datetime": "2021-04-20T08:37:40.000Z", "max_stars_repo_stars_event_max_datetime": "2021-12-24T06:30:21.000Z", "max_issues_repo_path": "src/api/user.js", "max_issues_repo_name": "dianjiu/gos-log-vue", "max_issues_repo_issues_event_min_datetime": null, "max_issues_repo_issues_event_max_datetime": null, "max_forks_repo_path": "src/api/user.js", "max_forks_repo_name": "dianjiu/gos-log-vue", "max_forks_repo_forks_event_min_datetime": "2021-04-27T07:07:12.000Z", "max_forks_repo_forks_event_max_datetime": "2021-08-04T04:25:21.000Z"}
{"max_stars_count": 5, "max_issues_count": null, "max_forks_count": 2, "avg_line_length": 17.4117647059, "max_line_length": 47, "alphanum_fraction": 0.6621621622}
import req from '@/utils/mereq'

let baseUrl = "/api/admin"

export function login(data) {
  return req.postJson(`${baseUrl}/login`, data)
}

export function getInfo(token) {
  return req.get('/api/admin/info', {
    token
  })
}

export function logout() {
  return req.post(`${baseUrl}/exit`)
}