mirror of
https://github.com/m-xlsea/ruoyi-plus-soybean.git
synced 2025-09-24 07:49:47 +08:00
feat:对接日志管理
This commit is contained in:
36
src/service/api/monitor/login-infor.ts
Normal file
36
src/service/api/monitor/login-infor.ts
Normal file
@ -0,0 +1,36 @@
|
||||
import { request } from '@/service/request';
|
||||
|
||||
/** 获取系统访问记录列表 */
|
||||
export function fetchGetLoginInforList(params?: Api.Monitor.LoginInforSearchParams) {
|
||||
return request<Api.Monitor.LoginInforList>({
|
||||
url: '/monitor/logininfor/list',
|
||||
method: 'get',
|
||||
params
|
||||
});
|
||||
}
|
||||
|
||||
/** 新增系统访问记录 */
|
||||
export function fetchCreateLoginInfor(data: Api.Monitor.LoginInforOperateParams) {
|
||||
return request<boolean>({
|
||||
url: '/monitor/logininfor',
|
||||
method: 'post',
|
||||
data
|
||||
});
|
||||
}
|
||||
|
||||
/** 修改系统访问记录 */
|
||||
export function fetchUpdateLoginInfor(data: Api.Monitor.LoginInforOperateParams) {
|
||||
return request<boolean>({
|
||||
url: '/monitor/logininfor',
|
||||
method: 'put',
|
||||
data
|
||||
});
|
||||
}
|
||||
|
||||
/** 批量删除系统访问记录 */
|
||||
export function fetchBatchDeleteLoginInfor(infoIds: CommonType.IdType[]) {
|
||||
return request<boolean>({
|
||||
url: `/monitor/logininfor/${infoIds.join(',')}`,
|
||||
method: 'delete'
|
||||
});
|
||||
}
|
26
src/service/api/monitor/oper-log.ts
Normal file
26
src/service/api/monitor/oper-log.ts
Normal file
@ -0,0 +1,26 @@
|
||||
import { request } from '@/service/request';
|
||||
|
||||
/** 获取操作日志记录列表 */
|
||||
export function fetchGetOperLogList(params?: Api.Monitor.OperLogSearchParams) {
|
||||
return request<Api.Monitor.OperLogList>({
|
||||
url: '/monitor/operlog/list',
|
||||
method: 'get',
|
||||
params
|
||||
});
|
||||
}
|
||||
|
||||
/** 批量删除操作日志记录 */
|
||||
export function fetchBatchDeleteOperLog(operIds: CommonType.IdType[]) {
|
||||
return request<boolean>({
|
||||
url: `/monitor/operlog/${operIds.join(',')}`,
|
||||
method: 'delete'
|
||||
});
|
||||
}
|
||||
|
||||
/** 清理操作日志记录 */
|
||||
export function fetchCleanOperLog() {
|
||||
return request<boolean>({
|
||||
url: '/monitor/operlog/clean',
|
||||
method: 'delete'
|
||||
});
|
||||
}
|
@ -1,36 +1,43 @@
|
||||
import { request } from '@/service/request';
|
||||
|
||||
/** 获取参数配置列表 */
|
||||
export function fetchGetConfigList (params?: Api.System.ConfigSearchParams) {
|
||||
return request<Api.System.ConfigList>({
|
||||
url: '/system/config/list',
|
||||
method: 'get',
|
||||
params
|
||||
});
|
||||
export function fetchGetConfigList(params?: Api.System.ConfigSearchParams) {
|
||||
return request<Api.System.ConfigList>({
|
||||
url: '/system/config/list',
|
||||
method: 'get',
|
||||
params
|
||||
});
|
||||
}
|
||||
|
||||
/** 新增参数配置 */
|
||||
export function fetchCreateConfig (data: Api.System.ConfigOperateParams) {
|
||||
return request<boolean>({
|
||||
url: '/system/config',
|
||||
method: 'post',
|
||||
data
|
||||
});
|
||||
export function fetchCreateConfig(data: Api.System.ConfigOperateParams) {
|
||||
return request<boolean>({
|
||||
url: '/system/config',
|
||||
method: 'post',
|
||||
data
|
||||
});
|
||||
}
|
||||
|
||||
/** 修改参数配置 */
|
||||
export function fetchUpdateConfig (data: Api.System.ConfigOperateParams) {
|
||||
return request<boolean>({
|
||||
url: '/system/config',
|
||||
method: 'put',
|
||||
data
|
||||
});
|
||||
export function fetchUpdateConfig(data: Api.System.ConfigOperateParams) {
|
||||
return request<boolean>({
|
||||
url: '/system/config',
|
||||
method: 'put',
|
||||
data
|
||||
});
|
||||
}
|
||||
|
||||
/** 批量删除参数配置 */
|
||||
export function fetchBatchDeleteConfig (configIds: CommonType.IdType[]) {
|
||||
return request<boolean>({
|
||||
url: `/system/config/${configIds.join(',')}`,
|
||||
method: 'delete'
|
||||
});
|
||||
export function fetchBatchDeleteConfig(configIds: CommonType.IdType[]) {
|
||||
return request<boolean>({
|
||||
url: `/system/config/${configIds.join(',')}`,
|
||||
method: 'delete'
|
||||
});
|
||||
}
|
||||
/** 刷新缓存 */
|
||||
export function fetchRefreshCache() {
|
||||
return request<boolean>({
|
||||
url: `/system/config/refreshCache`,
|
||||
method: 'delete'
|
||||
});
|
||||
}
|
||||
|
@ -49,3 +49,10 @@ export function fetchBatchDeleteDictType(dictIds: CommonType.IdType[]) {
|
||||
method: 'delete'
|
||||
});
|
||||
}
|
||||
/** 刷新缓存 */
|
||||
export function fetchRefreshCache() {
|
||||
return request<boolean>({
|
||||
url: `/system/dict/type/refreshCache`,
|
||||
method: 'delete'
|
||||
});
|
||||
}
|
||||
|
Reference in New Issue
Block a user