{"size": 445, "ext": "js", "max_stars_repo_path": "src/services/auth.js", "max_stars_repo_name": "Talbot1/creditdemo", "max_stars_repo_stars_event_min_datetime": null, "max_stars_repo_stars_event_max_datetime": null, "max_issues_repo_path": "src/services/auth.js", "max_issues_repo_name": "Talbot1/creditdemo", "max_issues_repo_issues_event_min_datetime": null, "max_issues_repo_issues_event_max_datetime": null, "max_forks_repo_path": "src/services/auth.js", "max_forks_repo_name": "Talbot1/creditdemo", "max_forks_repo_forks_event_min_datetime": "2021-06-20T08:16:27.000Z", "max_forks_repo_forks_event_max_datetime": "2021-06-20T08:16:27.000Z"}
{"max_stars_count": null, "max_issues_count": null, "max_forks_count": 1, "avg_line_length": 21.1904761905, "max_line_length": 42, "alphanum_fraction": 0.5730337079}
import { post } from '../utils/request'
/**
 * 用户注册
 * @param {*} user 
 * email, telephone, password, name
 */
export function registerApi(user) {
    return post('/user/register', user)
}

export function loginApi(user) {
    return post('/login/jd', user)
}

// 模拟
// export async function loginApi(user) {
//     let res = {data:{}}
//     res.data.status = "success"
//     res.data.data = "token"
//     return res
// }