feat: 开站引导开始完成接口

This commit is contained in:
TsMask
2024-04-24 15:24:00 +08:00
parent 86e1f07f08
commit 34754ea0b6
2 changed files with 27 additions and 2 deletions

View File

@@ -39,7 +39,6 @@ export async function listMain() {
const serialNum = (value as any).serialNum;
const version = (value as any).version;
const errCode = systemState && systemState['errorCode'];
var time = new Date();
// console.log(key, value);
@@ -59,7 +58,7 @@ export async function listMain() {
ipAddress,
serialNum,
name: key.split('/').join('_'),
expiryDate:'-',
expiryDate: '-',
status: 'Abnormal',
};
}
@@ -104,5 +103,30 @@ export function getSysConf() {
return request({
url: `/sys-conf`,
method: 'get',
whithToken: false,
});
}
/**
* 首次引导安装开始
* @returns object
*/
export function guideStart() {
return request({
url: `/guide`,
method: 'post',
whithToken: false,
repeatSubmit: false,
});
}
/**
* 首次引导安装完成
* @returns object
*/
export function guideDone() {
return request({
url: `/guide`,
method: 'put',
});
}

View File

@@ -168,6 +168,7 @@ export function savePara5GFile(data: Record<string, any>) {
url: `/ne/info/para5GFile`,
method: 'put',
data: data,
timeout: 60_000,
});
}