2025-09-15

This commit is contained in:
2025-09-15 21:03:25 +08:00
parent 7f7ef99c18
commit 178bd0d1e9
26 changed files with 1606 additions and 25 deletions

27
api/user.js Normal file
View File

@@ -0,0 +1,27 @@
import {
http
} from "../util/api"
// 用户相关API
export const userAPI = {
// 获取用户列表
getList: (params = {}) => http.get('/users', {
params
}),
// 获取用户详情
getDetail: (id) => http.get(`/users/${id}`),
// 更新用户信息
update: (id, data) => http.put(`/users/${id}`, data),
// 删除用户
delete: (id) => http.delete(`/users/${id}`),
// 获取用户统计
getStats: () => http.get('/users/stats/overview')
}
export default {
userAPI
}