🔨 数据清理时添加条数限制.
This commit is contained in:
@@ -1,5 +1,19 @@
|
||||
import axios from 'axios';
|
||||
|
||||
/**
|
||||
* 应用信息查询响应
|
||||
*/
|
||||
export interface SystemLicenseResponse {
|
||||
userCount: number;
|
||||
hostCount: number;
|
||||
release: string;
|
||||
releaseName: string;
|
||||
issueDate: number;
|
||||
expireDate: number;
|
||||
expireDay: number;
|
||||
uuid: string;
|
||||
}
|
||||
|
||||
/**
|
||||
* 应用信息查询响应
|
||||
*/
|
||||
@@ -9,13 +23,20 @@ export interface AppInfoResponse {
|
||||
}
|
||||
|
||||
/**
|
||||
* 仓库版本信息查询响应
|
||||
* 应用最新版本信息
|
||||
*/
|
||||
export interface RepoReleaseResponse {
|
||||
tag_name: string;
|
||||
export interface AppReleaseResponse {
|
||||
tagName: string;
|
||||
body: string;
|
||||
}
|
||||
|
||||
/**
|
||||
* 查询 license 信息
|
||||
*/
|
||||
export function getSystemLicenseInfo() {
|
||||
return axios.get<SystemLicenseResponse>('/infra/system-setting/license');
|
||||
}
|
||||
|
||||
/**
|
||||
* 查询应用信息
|
||||
*/
|
||||
@@ -24,10 +45,10 @@ export function getSystemAppInfo() {
|
||||
}
|
||||
|
||||
/**
|
||||
* 获取仓库最后版本信息
|
||||
* 获取应用最新版本信息
|
||||
*/
|
||||
export function getRepoLatestRelease() {
|
||||
return axios.get<RepoReleaseResponse>('https://visor.orionsec.cn/releases-latest.json', {
|
||||
export function getAppLatestRelease() {
|
||||
return axios.get<AppReleaseResponse>('https://visor.orionsec.cn/releases-latest.json', {
|
||||
// 不添加请求头 否则会报 401
|
||||
setAuthorization: false,
|
||||
// 返回原始输出
|
||||
|
||||
Reference in New Issue
Block a user