From 5b9a1d6cb3a7d59c8f2de83c495bba1a069b2723 Mon Sep 17 00:00:00 2001 From: gaosp <gaosp> Date: 星期五, 19 一月 2024 00:23:15 +0800 Subject: [PATCH] update --- src/api/Api.js | 35 ++++++++++++++++++++++++++++++++--- 1 files changed, 32 insertions(+), 3 deletions(-) diff --git a/src/api/Api.js b/src/api/Api.js index 2ed11c1..a8c7064 100644 --- a/src/api/Api.js +++ b/src/api/Api.js @@ -1,7 +1,7 @@ /* * @Date: 2024-01-10 20:37:45 * @LastEditors: Sneed - * @LastEditTime: 2024-01-14 15:03:32 + * @LastEditTime: 2024-01-18 23:37:37 * @FilePath: /belleson-frontend/Users/mache/Documents/demo/mdc/src/api/Api.js */ import ajax from '@/utils/ajax' @@ -16,14 +16,27 @@ //璁惧绫诲瀷 deviceTypeCreate: '/devicetype/create', deviceTypeUpdate: '/devicetype/update', + deviceTypeDelete: '/devicetype/delete', // 杞﹂棿 宸ユ涓嬪暒鏁版嵁 getWsl: '/machine/workshopList', getPcl: '/machine/protocolList' } const getFnObj = { + login: { + url: '/user/login', + method: 'POST' + }, accountQuery: { url: '/account/remainings', method: 'GET' + }, + deviceRemainings: { + url: '/account/remainings', + method: 'GET' + }, + accountDel: { + url: '/account/delete', + method: 'POST' }, componentQuery: { url: '/component/pageQuery', @@ -38,7 +51,11 @@ method: 'POST' }, maintainUpdate: { - url: '/maintain/update', + url: '/maintain/modify', + method: 'POST' + }, + maintainDel: { + url: '/maintain/delete', method: 'POST' }, maintaindelete: { @@ -57,9 +74,13 @@ url: '/devicetype/update', method: 'POST' }, - deviceTypeDel: { + deviceTypeDelete: { url: '/devicetype/delete', method: 'POST' + }, + deviceTypeList: { + url: '/devicetype/list', + method: 'GET' }, machineList: { url: '/machine/list', @@ -80,6 +101,10 @@ machineUpdate: { url: '/machine/modify', method: 'POST' + }, + userList: { + url: '/user/list', + method: 'GET' } } // 姝e紡鐜閰嶇疆鍦板潃 @@ -136,6 +161,10 @@ export function deviceTypeUpdate(params) { return sendRequest(HttpConstants.deviceTypeUpdate, params) } +export function deviceTypeDelete(ids) { + console.log(HttpConstants.deviceTypeDelete) + return sendRequest(HttpConstants.deviceTypeDelete, { ids: ids }) +} // export function getWsl(params) { -- Gitblit v1.9.3