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 |   63 ++++++++++++++++++++++++++++++-
 1 files changed, 60 insertions(+), 3 deletions(-)

diff --git a/src/api/Api.js b/src/api/Api.js
index f4b202e..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-13 21:27:18
+ * @LastEditTime: 2024-01-18 23:37:37
  * @FilePath: /belleson-frontend/Users/mache/Documents/demo/mdc/src/api/Api.js
  */
 import ajax from '@/utils/ajax'
@@ -13,25 +13,49 @@
     // 鍙拌处淇濆瓨
     accountCreate: '/account/create',
     accountUpdate: '/account/update',
+	//璁惧绫诲瀷
+	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',
         method: 'POST'
     },
+    deviceTypeQuery: {
+        url: '/devicetype/pageQuery',
+        method: 'POST'
+	},
     maintainCreate: {
         url: '/maintain/save',
         method: 'POST'
     },
     maintainUpdate: {
-        url: '/maintain/update',
+        url: '/maintain/modify',
+        method: 'POST'
+    },
+    maintainDel: {
+        url: '/maintain/delete',
         method: 'POST'
     },
     maintaindelete: {
@@ -50,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',
@@ -61,6 +89,22 @@
     machineConcern: {
         url: '/machine/concern',
         method: 'POST'
+    },
+    machineQuery: {
+        url: '/machine/pageQuery',
+        method: 'POST'
+    },
+    machineSave: {
+        url: '/machine/save',
+        method: 'POST'
+    },
+    machineUpdate: {
+        url: '/machine/modify',
+        method: 'POST'
+    },
+    userList: {
+        url: '/user/list',
+        method: 'GET'
     }
 }
 // 姝e紡鐜閰嶇疆鍦板潃
@@ -109,6 +153,19 @@
 export function accountUpdate(params) {
     return sendRequest(HttpConstants.accountUpdate, params)
 }
+
+// 璁惧绫诲瀷淇濆瓨
+export function deviceTypeCreate(params) {
+    return sendRequest(HttpConstants.deviceTypeCreate, params)
+}
+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) {
     return getData(HttpConstants.getWsl, params)

--
Gitblit v1.9.3