Sfoglia il codice sorgente

chore(api): 更新接口

wangshun 3 mesi fa
parent
commit
98a3c3765a
1 ha cambiato i file con 8 aggiunte e 0 eliminazioni
  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) => {