diff --git a/src/api/enterprises/index.ts b/src/api/enterprises/index.ts index ab443c4..dedc358 100644 --- a/src/api/enterprises/index.ts +++ b/src/api/enterprises/index.ts @@ -22,31 +22,31 @@ export interface EnterprisesVO { export const EnterprisesApi = { // 查询企业分页 getEnterprisesPage: async (params: any) => { - return await request.get({ url: `/system/enterprise/page`, params }) + return await request.get({ url: `/system/enterprises/page`, params }) }, // 查询企业详情 getEnterprises: async (id: number) => { - return await request.get({ url: `/system/enterprise/get?id=` + id }) + return await request.get({ url: `/system/enterprises/get?id=` + id }) }, // 新增企业 createEnterprises: async (data: EnterprisesVO) => { - return await request.post({ url: `/system/enterprise/create`, data }) + return await request.post({ url: `/system/enterprises/create`, data }) }, // 修改企业 updateEnterprises: async (data: EnterprisesVO) => { - return await request.put({ url: `/system/enterprise/update`, data }) + return await request.put({ url: `/system/enterprises/update`, data }) }, // 删除企业 deleteEnterprises: async (id: number) => { - return await request.delete({ url: `/system/enterprise/delete?id=` + id }) + return await request.delete({ url: `/system/enterprises/delete?id=` + id }) }, // 导出企业 Excel exportEnterprises: async (params) => { - return await request.download({ url: `/system/enterprise/export-excel`, params }) + return await request.download({ url: `/system/enterprises/export-excel`, params }) }, }