🎨完成基本构想的全部
This commit is contained in:
@@ -13,6 +13,16 @@ export const downloadClient = (id: string) => {
|
||||
});
|
||||
};
|
||||
|
||||
// 客户端IP生成
|
||||
export const generateClientIP = (data?: object) => {
|
||||
return http.request<any>("post", baseUri("/client/assignIP"), { data });
|
||||
};
|
||||
|
||||
// 生成客户端密钥对
|
||||
export const generateClientKeys = () => {
|
||||
return http.request<any>("post", baseUri("/client/generate-keys"));
|
||||
};
|
||||
|
||||
// 获取客户端配置二维码
|
||||
export const clientQrCode = (id: string) => {
|
||||
return http.request<any>("post", baseUri("/client/generate-qrcode/" + id));
|
||||
@@ -32,3 +42,8 @@ export const deleteClient = (id: string) => {
|
||||
export const getClientConnects = () => {
|
||||
return http.request<any>("get", baseUri("/client/status"));
|
||||
};
|
||||
|
||||
// 强制下线客户端
|
||||
export const offlineClient = (id: string) => {
|
||||
return http.request<any>("post", baseUri("/client/offline/" + id));
|
||||
};
|
||||
|
Reference in New Issue
Block a user