From b9bd29a1a81f6f7de479e3cc3fdfe3d85fc660bf Mon Sep 17 00:00:00 2001
From: he wei <858544502@qq.com>
Date: 星期三, 23 四月 2025 13:35:06 +0800
Subject: [PATCH] UA 整理提交

---
 src/api/keys.js |   63 ++++++++-----------------------
 1 files changed, 16 insertions(+), 47 deletions(-)

diff --git a/src/api/keys.js b/src/api/keys.js
index 22bb76e..0464ff8 100644
--- a/src/api/keys.js
+++ b/src/api/keys.js
@@ -1,70 +1,39 @@
 import request from '@/utils/request';
 
-/**
- * 娣诲姞閽ュ寵
- */
-export function addKey(data) {
-  return request({
-    url: 'lockInf/addKey',
-    method: 'POST',
-    data,
-  });
-}
+
 
 /**
- * 鍒犻櫎閽ュ寵
+ * 娣诲姞鎺堟潈鍗�
+ * idCardSet  鍗″彿
+ * lockId     閿佸彿
  */
-export function delKey(keyId) {
+export function addCard(idCardSet, lockId) {
   return request({
-    url: 'lockInf/delKey',
+    url: 'lockRt/addIdCardSet',
     method: 'GET',
-    params: { keyId },
+    params: { idCardSet, lockId },
   });
 }
 
 /**
- * 鏌ヨ鎵�鏈夐挜鍖欎俊鎭�
- * { keyName, pageNum, pageSize, uname
- * }
- * @returns
+ * 娓呯┖鎵�鏈夋巿鏉僆D鍗�
+ * lockId     閿佸彿
  */
-export function getAllKeyList(params) {
+export function cancleIdCard(lockId) {
   return request({
-    url: 'lockInf/getAllKeyInf',
+    url: 'lockRt/cancleIdCard',
     method: 'GET',
-    params
+    params: { lockId },
   });
 }
 
 /**
- * 鎺堟潈鏃舵煡璇㈡墍鏈夐挜鍖欎俊鎭�(涓嶅垎椤�)
- * 
- * @returns
+ * 绉婚櫎鎺堟潈鍗�
  */
-export function getKeyInfAuth() {
+export function delCard(idCardSet, lockId) {
   return request({
-    url: 'lockInf/getKeyInfAuth',
+    url: 'lockRt/delIdCardSet',
     method: 'GET',
-  });
-}
-
-/**
- * 鏌ヨ鎵�鏈夐挜鍖欏悕淇℃伅(鐢ㄤ簬涓嬫媺)
- */
-export function authKey() {
-  return request({
-    url: 'lockInf/getkinf',
-    method: 'GET',
-  });
-}
-
-/**
- * 鏇存柊閽ュ寵淇℃伅
- */
-export function updateKey(data) {
-  return request({
-    url: 'lockInf/updateKey',
-    method: 'POST',
-    data,
+    params: { idCardSet, lockId },
   });
 }
\ No newline at end of file

--
Gitblit v1.9.1