2
0
mirror of https://github.com/acepanel/panel.git synced 2026-02-06 07:27:16 +08:00

feat: 项目管理阶段2

This commit is contained in:
2026-01-11 00:34:20 +08:00
parent 035046449d
commit 6ea1295f86
7 changed files with 261 additions and 14 deletions

View File

@@ -0,0 +1,15 @@
import { http } from '@/utils'
export default {
// 获取项目列表
list: (type: string, page: number, limit: number): any =>
http.Get('/project', { params: { type, page, limit } }),
// 获取项目详情
get: (id: number): any => http.Get(`/project/${id}`),
// 创建项目
create: (data: any): any => http.Post('/project', data),
// 更新项目
update: (id: number, data: any): any => http.Put(`/project/${id}`, data),
// 删除项目
delete: (id: number): any => http.Delete(`/project/${id}`)
}