style: 引导接口函数变更
This commit is contained in:
51
src/api/system/quick-start/bootloader.ts
Normal file
51
src/api/system/quick-start/bootloader.ts
Normal file
@@ -0,0 +1,51 @@
|
||||
import { request } from '@/plugins/http-fetch';
|
||||
|
||||
/**
|
||||
* 首次引导开始
|
||||
* @returns object
|
||||
*/
|
||||
export function bootloaderStart() {
|
||||
return request({
|
||||
url: `/bootloader`,
|
||||
method: 'post',
|
||||
whithToken: false,
|
||||
repeatSubmit: false,
|
||||
});
|
||||
}
|
||||
|
||||
/**
|
||||
* 首次引导完成
|
||||
* @returns object
|
||||
*/
|
||||
export function bootloaderDone() {
|
||||
return request({
|
||||
url: `/bootloader`,
|
||||
method: 'put',
|
||||
});
|
||||
}
|
||||
|
||||
/**
|
||||
* 引导系统数据重置
|
||||
* @returns object
|
||||
*/
|
||||
export function bootloaderReset() {
|
||||
return request({
|
||||
url: `/bootloader`,
|
||||
method: 'delete',
|
||||
});
|
||||
}
|
||||
|
||||
/**
|
||||
* 管理员账号变更
|
||||
* @returns object
|
||||
*/
|
||||
export function bootloaderAccount(username: string, password: string) {
|
||||
return request({
|
||||
url: `/bootloader/account`,
|
||||
method: 'put',
|
||||
data: {
|
||||
username,
|
||||
password,
|
||||
},
|
||||
});
|
||||
}
|
||||
Reference in New Issue
Block a user