-
Notifications
You must be signed in to change notification settings - Fork 71
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
80 changed files
with
210 additions
and
179 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,7 +1,9 @@ | ||
import type * as Area from './type' | ||
import type * as T from './type' | ||
import http from '@/utils/http' | ||
|
||
export type * from './type' | ||
|
||
/** @desc 获取地区列表 */ | ||
export const getAreaList = (params: { type: 'province' | 'city' | 'area', code?: string }) => { | ||
return http.get<Area.AreaItem>('/area/list', params) | ||
return http.get<T.AreaItem>('/area/list', params) | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,14 +1,16 @@ | ||
import type * as Common from './type' | ||
import type * as T from './type' | ||
import http from '@/utils/http' | ||
|
||
export type * from './type' | ||
|
||
const BASE_URL = '/dashboard' | ||
|
||
/** @desc 查询访问趋势 */ | ||
export function listDashboardAccessTrend(days: number) { | ||
return http.get<Common.DashboardAccessTrendResp[]>(`${BASE_URL}/access/trend/${days}`) | ||
return http.get<T.DashboardAccessTrendResp[]>(`${BASE_URL}/access/trend/${days}`) | ||
} | ||
|
||
/** @desc 查询公告列表 */ | ||
export function listDashboardNotice() { | ||
return http.get<Common.DashboardNoticeResp[]>(`${BASE_URL}/notice`) | ||
return http.get<T.DashboardNoticeResp[]>(`${BASE_URL}/notice`) | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,24 +1,26 @@ | ||
import type * as Monitor from './type' | ||
import type * as T from './type' | ||
import http from '@/utils/http' | ||
|
||
export type * from './type' | ||
|
||
const BASE_URL = '/system/log' | ||
|
||
/** @desc 查询日志列表 */ | ||
export function listLog(query: Monitor.LogPageQuery) { | ||
return http.get<PageRes<Monitor.LogResp[]>>(`${BASE_URL}`, query) | ||
export function listLog(query: T.LogPageQuery) { | ||
return http.get<PageRes<T.LogResp[]>>(`${BASE_URL}`, query) | ||
} | ||
|
||
/** @desc 查询日志详情 */ | ||
export function getLog(id: string) { | ||
return http.get<Monitor.LogDetailResp>(`${BASE_URL}/${id}`) | ||
return http.get<T.LogDetailResp>(`${BASE_URL}/${id}`) | ||
} | ||
|
||
/** @desc 导出登录日志 */ | ||
export function exportLoginLog(query: Monitor.LogQuery) { | ||
export function exportLoginLog(query: T.LogQuery) { | ||
return http.download<any>(`${BASE_URL}/export/login`, query) | ||
} | ||
|
||
/** @desc 导出操作日志 */ | ||
export function exportOperationLog(query: Monitor.LogQuery) { | ||
export function exportOperationLog(query: T.LogQuery) { | ||
return http.download<any>(`${BASE_URL}/export/operation`, query) | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.