Signed-off-by: 吴文峰 <kevin@lmve.net>

This commit is contained in:
2026-04-16 20:36:03 +08:00
commit 3bb51d0794
29 changed files with 1063 additions and 0 deletions
+24
View File
@@ -0,0 +1,24 @@
/**
* API 接口汇总
* 按模块分组管理接口
*/
// 用户相关
export const user = {
login: (data) => post('/api/user/login', data),
logout: () => post('/api/user/logout'),
info: () => get('/api/user/info')
}
// 订单相关
export const order = {
list: (data) => get('/api/order/list', data),
detail: (id) => get('/api/order/detail', { id }),
create: (data) => post('/api/order/create', data)
}
// 消息相关
export const message = {
list: (data) => get('/api/message/list', data),
read: (id) => post('/api/message/read', { id })
}