Files
jurong_circle_front_app/api/auth.js

22 lines
388 B
JavaScript
Raw Normal View History

2025-09-16 16:05:34 +08:00
import {
http
} from "../util/api"
2025-09-15 21:03:25 +08:00
// 认证相关API
export const authAPI = {
// 登录
login: (data) => http.post('/auth/login', data),
// 注册
register: (data) => http.post('/auth/register', data),
// 获取当前用户信息
me: () => http.get('/auth/me'),
// 修改密码
changePassword: (data) => http.put('/auth/change-password', data)
}
export default {
authAPI
}