mirror of
https://github.com/continew-org/continew-admin.git
synced 2026-01-11 08:57:10 +08:00
新增:新增系统管理/部门管理/查询列表功能,并将所有描述字段名从 notes 调整为 description,将部分前端方法名前缀从 query 调整为 get,以及去除部分冗余代码
This commit is contained in:
@@ -47,7 +47,7 @@ export interface LoginLogListRes {
|
||||
list: LoginLogRecord[];
|
||||
total: number;
|
||||
}
|
||||
export function queryLoginLogList(params: LoginLogParams) {
|
||||
export function getLoginLogList(params: LoginLogParams) {
|
||||
return axios.get<LoginLogListRes>('/monitor/log/login', {
|
||||
params,
|
||||
paramsSerializer: (obj) => {
|
||||
@@ -66,7 +66,7 @@ export interface OperationLogListRes {
|
||||
list: OperationLogRecord[];
|
||||
total: number;
|
||||
}
|
||||
export function queryOperationLogList(params: OperationLogParams) {
|
||||
export function getOperationLogList(params: OperationLogParams) {
|
||||
return axios.get<OperationLogListRes>('/monitor/log/operation', {
|
||||
params,
|
||||
paramsSerializer: (obj) => {
|
||||
@@ -85,7 +85,7 @@ export interface SystemLogListRes {
|
||||
list: SystemLogRecord[];
|
||||
total: number;
|
||||
}
|
||||
export function querySystemLogList(params: SystemLogParams) {
|
||||
export function getSystemLogList(params: SystemLogParams) {
|
||||
return axios.get<SystemLogListRes>('/monitor/log/system', {
|
||||
params,
|
||||
paramsSerializer: (obj) => {
|
||||
@@ -94,6 +94,6 @@ export function querySystemLogList(params: SystemLogParams) {
|
||||
});
|
||||
}
|
||||
|
||||
export function querySystemLogDetail(logId: string) {
|
||||
export function getSystemLogDetail(logId: string) {
|
||||
return axios.get<SystemLogDetailRecord>(`/monitor/log/system/${logId}`);
|
||||
}
|
||||
@@ -21,7 +21,7 @@ export interface OnlineUserListRes {
|
||||
total: number;
|
||||
}
|
||||
|
||||
export function queryOnlineUserList(params: OnlineUserParams) {
|
||||
export function getOnlineUserList(params: OnlineUserParams) {
|
||||
return axios.get<OnlineUserListRes>('/monitor/online/user', {
|
||||
params,
|
||||
paramsSerializer: (obj) => {
|
||||
|
||||
30
continew-admin-ui/src/api/system/dept.ts
Normal file
30
continew-admin-ui/src/api/system/dept.ts
Normal file
@@ -0,0 +1,30 @@
|
||||
import axios from 'axios';
|
||||
|
||||
import qs from 'query-string';
|
||||
|
||||
export interface DeptRecord {
|
||||
deptId: string;
|
||||
deptName: string;
|
||||
parentId: string;
|
||||
deptSort: number;
|
||||
description: string;
|
||||
status: number;
|
||||
updateUserString: string;
|
||||
updateTime: string;
|
||||
children: Array<DeptRecord>,
|
||||
}
|
||||
|
||||
export interface DeptParams extends Partial<DeptRecord> {
|
||||
page: number;
|
||||
size: number;
|
||||
sort: Array<string>;
|
||||
}
|
||||
|
||||
export function getDeptList(params: DeptParams) {
|
||||
return axios.get<DeptRecord[]>('/system/dept', {
|
||||
params,
|
||||
paramsSerializer: (obj) => {
|
||||
return qs.stringify(obj);
|
||||
},
|
||||
});
|
||||
}
|
||||
Reference in New Issue
Block a user