flat:初始化

This commit is contained in:
史典卓
2024-11-18 16:38:38 +08:00
commit 903776f4b9
242 changed files with 24577 additions and 0 deletions

153
src/types/monitor/cache.d.ts vendored Normal file
View File

@@ -0,0 +1,153 @@
/* *
*
* @author whiteshader@163.com
* @datetime 2021/09/16
*
* */
declare namespace API.Monitor {
export type CommandInfo = {
name: string;
value: string;
};
export type CacheRuntimeInfo = {
active_defrag_hits: string;
active_defrag_key_hits: string;
active_defrag_key_misses: string;
active_defrag_misses: string;
active_defrag_running: string;
allocator_active: string;
allocator_allocated: string;
allocator_frag_bytes: string;
allocator_frag_ratio: string;
allocator_resident: string;
allocator_rss_bytes: string;
allocator_rss_ratio: string;
aof_current_rewrite_time_sec: string;
aof_enabled: string;
aof_last_bgrewrite_status: string;
aof_last_cow_size: string;
aof_last_rewrite_time_sec: string;
aof_last_write_status: string;
aof_rewrite_in_progress: string;
aof_rewrite_scheduled: string;
arch_bits: string;
atomicvar_api: string;
blocked_clients: string;
client_recent_max_input_buffer: string;
client_recent_max_output_buffer: string;
cluster_enabled: string;
config_file: string;
configured_hz: string;
connected_clients: string;
connected_slaves: string;
db0: string;
db1: string;
evicted_keys: string;
executable: string;
expired_keys: string;
expired_stale_perc: string;
expired_time_cap_reached_count: string;
gcc_version: string;
hz: string;
instantaneous_input_kbps: number;
instantaneous_ops_per_sec: string;
instantaneous_output_kbps: number;
keyspace_hits: string;
keyspace_misses: string;
latest_fork_usec: string;
lazyfree_pending_objects: string;
loading: string;
lru_clock: string;
master_repl_offset: string;
master_replid: string;
master_replid2: string;
maxmemory: string;
maxmemory_human: string;
maxmemory_policy: string;
mem_allocator: string;
mem_aof_buffer: string;
mem_clients_normal: string;
mem_clients_slaves: string;
mem_fragmentation_bytes: string;
mem_fragmentation_ratio: string;
mem_not_counted_for_evict: string;
mem_replication_backlog: string;
migrate_cached_sockets: string;
multiplexing_api: string;
number_of_cached_scripts: string;
os: string;
process_id: string;
pubsub_channels: string;
pubsub_patterns: string;
rdb_bgsave_in_progress: string;
rdb_changes_since_last_save: string;
rdb_current_bgsave_time_sec: string;
rdb_last_bgsave_status: string;
rdb_last_bgsave_time_sec: string;
rdb_last_cow_size: string;
rdb_last_save_time: string;
redis_build_id: string;
redis_git_dirty: string;
redis_git_sha1: string;
redis_mode: string;
redis_version: string;
rejected_connections: string;
repl_backlog_active: string;
repl_backlog_first_byte_offset: string;
repl_backlog_histlen: string;
repl_backlog_size: string;
role: string;
rss_overhead_bytes: string;
rss_overhead_ratio: string;
run_id: string;
second_repl_offset: string;
slave_expires_tracked_keys: string;
sync_full: string;
sync_partial_err: string;
sync_partial_ok: string;
tcp_port: string;
total_commands_processed: string;
total_connections_received: string;
total_net_input_bytes: string;
total_net_output_bytes: string;
total_system_memory: number;
total_system_memory_human: string;
uptime_in_days: string;
uptime_in_seconds: string;
used_cpu_sys: string;
used_cpu_sys_children: string;
used_cpu_user: string;
used_cpu_user_children: number;
used_memory: number;
used_memory_dataset: number;
used_memory_dataset_perc: string;
used_memory_human: string;
used_memory_lua: string;
used_memory_lua_human: string;
used_memory_overhead: string;
used_memory_peak: string;
used_memory_peak_human: string;
used_memory_peak_perc: string;
used_memory_rss: string;
used_memory_rss_human: string;
used_memory_scripts: string;
used_memory_scripts_human: string;
used_memory_startup: string;
};
export type CacheInfo = {
commandStats: CommandInfo[];
dbSize: number;
info: CacheRuntimeInfo;
};
export type CacheInfoResult = {
data: CacheInfo;
code: number;
msg: string;
};
}

36
src/types/monitor/cacheList.d.ts vendored Normal file
View File

@@ -0,0 +1,36 @@
/* *
*
* @author whiteshader@163.com
* @datetime 2022/06/27
*
* */
declare namespace API.Monitor {
export type CacheContent = {
cacheKey: string;
cacheName: string;
cacheValue: string;
remark: string;
};
export type CacheNamesResponse = {
data: CacheContent[];
code: number;
msg: string;
};
export type CacheKeysResponse = {
data: string[];
code: number;
msg: string;
};
export type CacheValueResponse = {
data: CacheContent;
code: number;
msg: string;
};
}

58
src/types/monitor/job.d.ts vendored Normal file
View File

@@ -0,0 +1,58 @@
/**
* 定时任务调度 Model Declare
*
* @author whiteshader@163.com
* @date 2023-02-07
*/
declare namespace API.Monitor {
export interface Job {
jobId: number;
jobName: string;
jobGroup: string;
invokeTarget: string;
cronExpression: string;
misfirePolicy: string;
concurrent: string;
nextValidTime: string;
status: string;
createBy: string;
createTime: Date;
updateBy: string;
updateTime: Date;
remark: string;
}
export interface JobListParams {
jobId?: string;
jobName?: string;
jobGroup?: string;
invokeTarget?: string;
cronExpression?: string;
misfirePolicy?: string;
concurrent?: string;
status?: string;
createBy?: string;
createTime?: string;
updateBy?: string;
updateTime?: string;
remark?: string;
pageSize?: string;
current?: string;
}
export interface JobInfoResult {
code: number;
msg: string;
data: Job;
}
export interface JobPageResult {
code: number;
msg: string;
total: number;
rows: Array<Job>;
}
}

47
src/types/monitor/jobLog.d.ts vendored Normal file
View File

@@ -0,0 +1,47 @@
/**
* 定时任务调度日志 Model Declare
*
* @author whiteshader
* @date 2023-02-07
*/
declare namespace API.Monitor {
export interface JobLog {
jobLogId: number;
jobName: string;
jobGroup: string;
invokeTarget: string;
jobMessage: string;
status: string;
exceptionInfo: string;
createTime: Date;
}
export interface JobLogListParams {
jobLogId?: string;
jobName?: string;
jobGroup?: string;
invokeTarget?: string;
jobMessage?: string;
status?: string;
exceptionInfo?: string;
createTime?: string;
pageSize?: string;
current?: string;
}
export interface JobLogInfoResult {
code: number;
msg: string;
data: JobLog;
}
export interface JobLogPageResult {
code: number;
msg: string;
total: number;
rows: Array<JobLog>;
}
}

43
src/types/monitor/logininfor.d.ts vendored Normal file
View File

@@ -0,0 +1,43 @@
declare namespace API.Monitor {
export interface Logininfor {
infoId: number;
userName: string;
ipaddr: string;
loginLocation: string;
browser: string;
os: string;
status: string;
msg: string;
loginTime: Date;
}
export interface LogininforListParams {
infoId?: string;
userName?: string;
ipaddr?: string;
loginLocation?: string;
browser?: string;
os?: string;
status?: string;
msg?: string;
loginTime?: string;
pageSize?: string;
current?: string;
}
export interface LogininforInfoResult {
code: number;
msg: string;
data: Logininfor;
}
export interface LogininforPageResult {
code: number;
msg: string;
total: number;
rows: Array<Logininfor>;
}
}

55
src/types/monitor/online.d.ts vendored Normal file
View File

@@ -0,0 +1,55 @@
/* *
*
* @author whiteshader@163.com
* @datetime 2023/02/07
*
* */
declare namespace API.Monitor {
export type OnlineUserType = {
tokenId: string;
userName: string;
ipaddr: string;
loginLocation: string;
browser: string;
os: string;
deptName: string;
loginTime: string;
};
export type OnlineUserListPagination = {
total: number;
pageSize: number;
current: number;
};
export type OnlineUserListData = {
list: OnlineUserType[];
pagination: Partial<OnlineUserListPagination>;
};
export type OnlineUserListParams = {
tokenId?: string;
userName?: string;
ipaddr?: string;
loginLocation?: string;
browser?: string;
os?: string;
deptName?: string;
loginTime?: string;
pageSize?: string;
current?: string;
pageNum?: string;
filter?: string;
sorter?: string;
};
export interface OnlineUserPageResult {
code: number;
msg: string;
total: number;
rows: Array<OnlineUser>;
}
}

57
src/types/monitor/operlog.d.ts vendored Normal file
View File

@@ -0,0 +1,57 @@
declare namespace API.Monitor {
export interface Operlog {
operId: number;
title: string;
businessType: number;
method: string;
requestMethod: string;
operatorType: number;
operName: string;
deptName: string;
operUrl: string;
operIp: string;
operLocation: string;
operParam: string;
jsonResult: string;
status: number;
errorMsg: string;
operTime: Date;
}
export interface OperlogListParams {
operId?: string;
title?: string;
businessType?: string;
method?: string;
requestMethod?: string;
operatorType?: string;
operName?: string;
deptName?: string;
operUrl?: string;
operIp?: string;
operLocation?: string;
operParam?: string;
jsonResult?: string;
status?: string;
errorMsg?: string;
operTime?: string;
pageSize?: string;
current?: string;
}
export interface OperlogInfoResult {
code: number;
msg: string;
data: Operlog;
}
export interface OperlogPageResult {
code: number;
msg: string;
total: number;
rows: Array<Operlog>;
}
}

84
src/types/monitor/server.d.ts vendored Normal file
View File

@@ -0,0 +1,84 @@
/* *
*
* @author whiteshader@163.com
* @datetime 2023/02/07
*
* */
declare namespace API.Monitor {
export type CpuInfoType = {
cpuNum: string;
total: string;
sys: string;
used: string;
wait: string;
free: string;
};
export type MemInfoType = {
total: string;
used: string;
usage: string;
free: string;
};
export type SysInfoType = {
computerIp: string;
computerName: string;
osArch: string;
osName: string;
userDir: string;
};
export type JvmInfoType = {
free: string;
home: string;
max: string;
name: string;
runTime: string;
startTime: string;
total: string;
usage: string;
used: string;
version: string;
};
export type DiskInfoType = {
dirName: string;
free: string;
sysTypeName: string;
total: string;
typeName: string;
usage: string;
used: string;
};
export type ServerInfoType = {
cpu: CpuInfoType;
mem: MemInfoType;
jvm: JvmInfoType;
sys: SysInfoType;
sysFiles: DiskInfoType[];
};
export type ServerInfoResponseType = {
data: ServerInfoType;
code: number;
msg: string;
};
export type CpuRowType = {
name: string;
value: string;
};
export type MemRowType = {
name: string;
mem: string;
jvm: string;
};
}

45
src/types/system/config.d.ts vendored Normal file
View File

@@ -0,0 +1,45 @@
declare namespace API.System {
export interface Config {
configId: number;
configName: string;
configKey: string;
configValue: string;
configType: string;
createBy: string;
createTime: Date;
updateBy: string;
updateTime: Date;
remark: string;
}
export interface ConfigListParams {
configId?: string;
configName?: string;
configKey?: string;
configValue?: string;
configType?: string;
createBy?: string;
createTime?: string;
updateBy?: string;
updateTime?: string;
remark?: string;
pageSize?: string;
current?: string;
}
export interface ConfigInfoResult {
code: number;
msg: string;
data: Config;
}
export interface ConfigPageResult {
code: number;
msg: string;
total: number;
rows: Array<Config>;
}
}

53
src/types/system/dept.d.ts vendored Normal file
View File

@@ -0,0 +1,53 @@
declare namespace API.System {
interface Dept {
deptId: number;
parentId: number;
ancestors: string;
deptName: string;
orderNum: number;
leader: string;
phone: string;
email: string;
status: string;
delFlag: string;
createBy: string;
createTime: Date;
updateBy: string;
updateTime: Date;
}
export interface DeptListParams {
deptId?: string;
parentId?: string;
ancestors?: string;
deptName?: string;
orderNum?: string;
leader?: string;
phone?: string;
email?: string;
status?: string;
delFlag?: string;
createBy?: string;
createTime?: string;
updateBy?: string;
updateTime?: string;
pageSize?: string;
current?: string;
}
export interface DeptInfoResult {
code: number;
msg: string;
data: Dept;
}
export interface DeptPageResult {
code: number;
msg: string;
total: number;
data: Array<Dept>;
}
}

53
src/types/system/dict-data.d.ts vendored Normal file
View File

@@ -0,0 +1,53 @@
declare namespace API.System {
interface DictData {
dictCode: number;
dictSort: number;
dictLabel: string;
dictValue: string;
dictType: string;
cssClass: string;
listClass: string;
isDefault: string;
status: string;
createBy: string;
createTime: Date;
updateBy: string;
updateTime: Date;
remark: string;
}
export interface DictDataListParams {
dictCode?: string;
dictSort?: string;
dictLabel?: string;
dictValue?: string;
dictType?: string;
cssClass?: string;
listClass?: string;
isDefault?: string;
status?: string;
createBy?: string;
createTime?: string;
updateBy?: string;
updateTime?: string;
remark?: string;
pageSize?: string;
currentPage?: string;
filter?: string;
sorter?: string;
}
export interface DictDataInfoResult {
current: number;
pageSize: number;
total: number;
data: DictData;
}
export interface DictDataPageResult {
code: number;
msg: string;
total: number;
rows: Array<DictData>;
}
}

48
src/types/system/dict.d.ts vendored Normal file
View File

@@ -0,0 +1,48 @@
declare namespace API.System {
export interface DictType {
dictId: number;
dictName: string;
dictType: string;
status: string;
createBy: string;
createTime: Date;
updateBy: string;
updateTime: Date;
remark: string;
}
export interface DictTypeListParams {
dictId?: string;
dictName?: string;
dictType?: string;
status?: string;
createBy?: string;
createTime?: string;
updateBy?: string;
updateTime?: string;
remark?: string;
pageSize?: string;
currentPage?: string;
filter?: string;
sorter?: string;
}
export interface DictTypeInfoResult {
code: number;
msg: string;
data: Dict;
}
export interface DictTypePageResult {
code: number;
msg: string;
total: number;
rows: Array<Dict>;
}
export interface DictTypeResult {
code: number;
msg: string;
data: Array<Dict>;
}
}

66
src/types/system/menu.d.ts vendored Normal file
View File

@@ -0,0 +1,66 @@
declare namespace API.System {
interface Menu {
menuId: number;
menuName: string;
parentId: number;
orderNum: number;
path: string;
component: string;
query: string;
isFrame: number;
isCache: number;
menuType: string;
visible: string;
status: string;
perms: string;
icon: string;
createBy: string;
createTime: Date;
updateBy: string;
updateTime: Date;
remark: string;
}
export interface MenuListParams {
menuId?: string;
menuName?: string;
parentId?: string;
orderNum?: string;
path?: string;
component?: string;
query?: string;
isFrame?: string;
isCache?: string;
menuType?: string;
visible?: string;
status?: string;
perms?: string;
icon?: string;
createBy?: string;
createTime?: string;
updateBy?: string;
updateTime?: string;
remark?: string;
pageSize?: string;
currentPage?: string;
filter?: string;
sorter?: string;
}
export interface MenuInfoResult {
current: number;
pageSize: number;
total: number;
data: Menu;
}
export interface MenuPageResult {
current: number;
pageSize: number;
total: number;
data: Array<Menu>;
}
}

45
src/types/system/notice.d.ts vendored Normal file
View File

@@ -0,0 +1,45 @@
declare namespace API.System {
export interface Notice {
noticeId: number;
noticeTitle: string;
noticeType: string;
noticeContent: string;
status: string;
createBy: string;
createTime: Date;
updateBy: string;
updateTime: Date;
remark: string;
}
export interface NoticeListParams {
noticeId?: string;
noticeTitle?: string;
noticeType?: string;
noticeContent?: string;
status?: string;
createBy?: string;
createTime?: string;
updateBy?: string;
updateTime?: string;
remark?: string;
pageSize?: string;
current?: string;
}
export interface NoticeInfoResult {
code: number;
msg: string;
data: Notice;
}
export interface NoticePageResult {
code: number;
msg: string;
total: number;
rows: Array<Notice>;
}
}

45
src/types/system/post.d.ts vendored Normal file
View File

@@ -0,0 +1,45 @@
declare namespace API.System {
interface Post {
postId: number;
postCode: string;
postName: string;
postSort: number;
status: string;
createBy: string;
createTime: Date;
updateBy: string;
updateTime: Date;
remark: string;
}
export interface PostListParams {
postId?: string;
postCode?: string;
postName?: string;
postSort?: string;
status?: string;
createBy?: string;
createTime?: string;
updateBy?: string;
updateTime?: string;
remark?: string;
pageSize?: string;
current?: string;
}
export interface PostInfoResult {
code: number;
msg: string;
data: Post;
}
export interface PostPageResult {
code: number;
msg: string;
total: number;
rows: Array<Post>;
}
}

65
src/types/system/role.d.ts vendored Normal file
View File

@@ -0,0 +1,65 @@
declare namespace API.System {
interface Role {
roleId: number;
roleName: string;
roleKey: string;
roleSort: number;
dataScope: string;
menuCheckStrictly: number;
deptCheckStrictly: number;
status: string;
delFlag: string;
createBy: string;
createTime: Date;
updateBy: string;
updateTime: Date;
remark: string;
}
export interface RoleListParams {
roleId?: string;
roleName?: string;
roleKey?: string;
roleSort?: string;
dataScope?: string;
menuCheckStrictly?: string;
deptCheckStrictly?: string;
status?: string;
delFlag?: string;
createBy?: string;
createTime?: string;
updateBy?: string;
updateTime?: string;
remark?: string;
pageSize?: string;
current?: string;
}
export interface RoleInfoResult {
code: number;
msg: string;
data: Role;
}
export interface RolePageResult {
code: number;
msg: string;
total: number;
rows: Array<Role>;
}
export type RoleMenuNode = {
id: number|string;
label: string;
children?: Array<RoleMenuNode>;
}
export interface RoleMenuResult {
code: number;
msg: string;
checkedKeys: number[];
menus: Array<RoleMenuNode>;
}
}

71
src/types/system/user.d.ts vendored Normal file
View File

@@ -0,0 +1,71 @@
declare namespace API.System {
interface User {
userId: number;
deptId: number;
userName: string;
nickName: string;
userType: string;
email: string;
phonenumber: string;
sex: string;
avatar: string;
password: string;
status: string;
delFlag: string;
loginIp: string;
loginDate: Date;
createBy: string;
createTime: Date;
updateBy: string;
updateTime: Date;
remark: string;
}
export interface UserListParams {
userId?: string;
deptId?: string;
userName?: string;
nickName?: string;
userType?: string;
email?: string;
phonenumber?: string;
sex?: string;
avatar?: string;
password?: string;
status?: string;
delFlag?: string;
loginIp?: string;
loginDate?: string;
createBy?: string;
createTime?: string;
updateBy?: string;
updateTime?: string;
remark?: string;
pageSize?: string;
currentPage?: string;
filter?: string;
sorter?: string;
}
export interface UserInfoResult {
current: number;
pageSize: number;
total: number;
data: User;
posts: [];
postIds: any;
roleId: number;
roleIds: [];
roles: [];
}
export interface UserPageResult {
code: number;
msg: string;
total: number;
rows: Array<User>;
}
}

0
src/types/typings.d.ts vendored Normal file
View File