feat: 深度优化自媒体发布系统及修复关键BUG

This commit is contained in:
钟停为止
2026-03-05 10:12:40 +08:00
parent ab2dbb0de6
commit 23ee8d014f
11 changed files with 440 additions and 689 deletions
+3 -47
View File
@@ -1,49 +1,5 @@
import { http } from '@/utils/request'
// 用户相关API
export const userApi = {
// 获取用户信息
getUserInfo(id) {
return http.get(`/user/${id}`)
},
// 获取用户列表
getUserList(params) {
return http.get('/user/list', params)
},
// 创建用户
createUser(data) {
return http.post('/user', data)
},
// 更新用户信息
updateUser(id, data) {
return http.put(`/user/${id}`, data)
},
// 删除用户
deleteUser(id) {
return http.delete(`/user/${id}`)
},
// 用户登录
login(data) {
return http.post('/auth/login', data)
},
// 用户注册
register(data) {
return http.post('/auth/register', data)
},
// 用户登出
logout() {
return http.post('/auth/logout')
},
// 刷新token
refreshToken() {
return http.post('/auth/refresh')
}
}
// 用户相关API(预留)
// 注意:当前后端暂无用户认证接口,以下为预留定义
export const userApi = {}