Browse Source

chore(api): 更新接口

wangshun 3 tháng trước cách đây
mục cha
commit
98a3c3765a
1 tập tin đã thay đổi với 8 bổ sung0 xóa
  1. 8 0
      src/api/index.ts

+ 8 - 0
src/api/index.ts

@@ -226,6 +226,14 @@ export const gatewayLinkProtocolReset = async (protocolReset: ProtocolReset) =>
   });
   });
 };
 };
 
 
+export const postProtocolCandidatesList = async (protocolList: ProtocolList, gatewayId: number) => {
+  const data = await request<ProtocolItemData>(apiBiz(`${'/gatewayLinkProtocol/getProtocolCandidates/'}${gatewayId}`), {
+    method: 'POST',
+    body: JSON.stringify(protocolList),
+  });
+  return data;
+};
+
 // 组织网关
 // 组织网关
 
 
 export const orgGatewayRegister = async (gatewayId: number) => {
 export const orgGatewayRegister = async (gatewayId: number) => {