仰望星辰工作室

better-staridc-MNBT

Z zfhsh first commit 2 个月前
1import { apiGn } from '@/shared/api/http'
2
3const S = { silent: true }
4
5/** 检查更新 / 版本信息 */
6export function checkUpdate() {
7 return apiGn('mnbt', {}, S)
8}
9
10/** 系统信息(仪表盘) */
11export function systemInfo() {
12 return apiGn('system_info', {}, S)
13}
14
15/** 系统更新 */
16export function systemUpdate() {
17 return apiGn('update', {})
18}
19
20/** 重新检查更新(跳过服务端缓存,返回 GitHub Release 检查结果原始载荷) */
21export function updaterCheck(force = 1) {
22 return apiGn('upcheck', { force }, { silent: true })
23}
24
25/** 保存更新设置(仓库 / 镜像 / 可选 Token) */
26export function saveUpdaterConfig(data) {
27 return apiGn('upset', data)
28}
29
30/** 系统修复 */
31export function systemRepair(xx, xe) {
32 return apiGn('xtxf', { xx, xe })
33}