{"size": 528, "ext": "js", "max_stars_repo_path": "src/api/user.js", "max_stars_repo_name": "F999999999/community-parking", "max_stars_repo_stars_event_min_datetime": null, "max_stars_repo_stars_event_max_datetime": null, "max_issues_repo_path": "src/api/user.js", "max_issues_repo_name": "F999999999/community-parking", "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": "F999999999/community-parking", "max_forks_repo_forks_event_min_datetime": "2022-03-22T01:45:59.000Z", "max_forks_repo_forks_event_max_datetime": "2022-03-22T01:45:59.000Z"}
{"max_stars_count": null, "max_issues_count": null, "max_forks_count": 1, "avg_line_length": 25.1428571429, "max_line_length": 80, "alphanum_fraction": 0.6950757576}
import { requestWithoutToken } from "@/utils/request";
/***
 * 用户登录
 * @param username 用户名
 * @param password 密码
 * @returns {Promise}
 */
export function loginByUsernameAndPassword({ username, password }) {
  return requestWithoutToken("/users/login", "post", { username, password });
}

/***
 * 用户注册
 * @param username 用户名
 * @param password 密码
 * @returns {Promise}
 */
export function registerByUsernameAndPassword({ username, password }) {
  return requestWithoutToken("/users/register", "post", { username, password });
}
