From 7f315b95ce17c455c249307f481fbf500a0552a1 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E5=A5=94=E8=B7=91=E7=9A=84=E9=9D=A2=E6=9D=A1?= <1262327911@qq.com> Date: Sun, 22 May 2022 14:05:57 +0800 Subject: [PATCH] =?UTF-8?q?feat:=20=E6=96=B0=E5=A2=9E=E9=A1=B9=E7=9B=AE?= =?UTF-8?q?=E5=88=97=E8=A1=A8=E6=8E=A5=E5=8F=A3?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/api/path/project.ts | 10 ++++++++++ 1 file changed, 10 insertions(+) diff --git a/src/api/path/project.ts b/src/api/path/project.ts index 58c83c4b..902e412a 100644 --- a/src/api/path/project.ts +++ b/src/api/path/project.ts @@ -2,6 +2,16 @@ import { http } from '@/api/http' import { httpErrorHandle } from '@/utils' import { RequestHttpEnum, ModuleTypeEnum } from '@/enums/httpEnum' +// * 项目列表 +export const projectListApi = async (data: object) => { + try { + const res = await http(RequestHttpEnum.GET)(`${ModuleTypeEnum.PROJECT}/list`, data); + return res; + } catch { + httpErrorHandle(); + } +} + // * 新增项目 export const createProjectApi = async (data: object) => { try {