cool-admin-vue/build/cool/temp/service.d.ts

846 lines
13 KiB
TypeScript
Raw Normal View History

2022-04-02 22:50:51 +08:00
declare interface Crud {
/**
*
* @returns Promise<any>
*/
add(data: any): Promise<any>;
/**
*
* @returns Promise<any>
*/
delete(data: { ids?: number[] | string[]; [key: string]: any }): Promise<any>;
/**
*
* @returns Promise<any>
*/
update(data: { id?: number | string; [key: string]: any }): Promise<any>;
/**
*
* @returns Promise<any>
*/
info(data: { id?: number | string; [key: string]: any }): Promise<any>;
/**
*
* @returns Promise<any>
*/
list(data?: any): Promise<any>;
/**
*
* @returns Promise<PageResponse>
*/
page(data?: {
page?: number | string;
size?: number | string;
[key: string]: any;
}): Promise<PageResponse>;
}
declare interface PageResponse {
list: any[];
pagination: { size: number; page: number; total: number };
[key: string]: any;
}
declare interface RequestOptions {
params?: any;
data?: any;
url: string;
method?: "GET" | "get" | "POST" | "post" | string;
[key: string]: any;
}
declare interface BaseComm {
2022-06-14 16:07:47 +08:00
/**
* list
* @returns Promise<any>
*/
list(data?: any): Promise<any>;
/**
* page
* @returns Promise<PageResponse>
*/
page(data?: any): Promise<PageResponse>;
/**
* info
* @returns Promise<any>
*/
info(data?: any): Promise<any>;
/**
* update
* @returns Promise<any>
*/
update(data?: any): Promise<any>;
/**
* delete
* @returns Promise<any>
*/
delete(data?: any): Promise<any>;
/**
* add
* @returns Promise<any>
*/
add(data?: any): Promise<any>;
/**
2022-06-24 11:10:56 +08:00
* personUpdate
2022-06-14 16:07:47 +08:00
* @returns Promise<any>
*/
2022-06-24 11:10:56 +08:00
personUpdate(data?: any): Promise<any>;
2022-06-14 16:07:47 +08:00
/**
2022-06-24 11:10:56 +08:00
* uploadMode
2022-06-14 16:07:47 +08:00
* @returns Promise<any>
*/
2022-06-24 11:10:56 +08:00
uploadMode(data?: any): Promise<any>;
2022-06-14 16:07:47 +08:00
/**
2022-06-24 11:10:56 +08:00
* permmenu
2022-06-14 16:07:47 +08:00
* @returns Promise<any>
*/
2022-06-24 11:10:56 +08:00
permmenu(data?: any): Promise<any>;
/**
* logout
* @returns Promise<any>
*/
logout(data?: any): Promise<any>;
2022-06-14 16:07:47 +08:00
/**
*
*/
permission: {
list: string;
page: string;
info: string;
update: string;
delete: string;
add: string;
2022-06-24 11:10:56 +08:00
personUpdate: string;
uploadMode: string;
permmenu: string;
logout: string;
2022-06-14 16:07:47 +08:00
};
}
2022-06-24 11:10:56 +08:00
declare interface BaseOpen {
2022-06-14 16:07:47 +08:00
/**
* list
* @returns Promise<any>
*/
list(data?: any): Promise<any>;
/**
* page
* @returns Promise<PageResponse>
*/
page(data?: any): Promise<PageResponse>;
/**
* info
* @returns Promise<any>
*/
info(data?: any): Promise<any>;
/**
* update
* @returns Promise<any>
*/
update(data?: any): Promise<any>;
/**
* delete
* @returns Promise<any>
*/
delete(data?: any): Promise<any>;
/**
* add
* @returns Promise<any>
*/
add(data?: any): Promise<any>;
/**
2022-06-24 11:10:56 +08:00
* refreshToken
2022-04-02 22:50:51 +08:00
* @returns Promise<any>
*/
2022-06-24 11:10:56 +08:00
refreshToken(data?: any): Promise<any>;
2022-04-02 22:50:51 +08:00
/**
2022-06-24 11:10:56 +08:00
* captcha
2022-06-24 11:06:40 +08:00
* @returns Promise<any>
2022-04-02 22:50:51 +08:00
*/
2022-06-24 11:10:56 +08:00
captcha(data?: any): Promise<any>;
2022-04-02 22:50:51 +08:00
/**
2022-06-24 11:10:56 +08:00
* login
2022-04-02 22:50:51 +08:00
* @returns Promise<any>
*/
2022-06-24 11:10:56 +08:00
login(data?: any): Promise<any>;
2022-04-02 22:50:51 +08:00
/**
2022-06-24 11:10:56 +08:00
* html
2022-06-10 17:33:59 +08:00
* @returns Promise<any>
2022-04-02 22:50:51 +08:00
*/
2022-06-24 11:10:56 +08:00
html(data?: any): Promise<any>;
2022-04-02 22:50:51 +08:00
/**
2022-06-24 11:10:56 +08:00
* eps
2022-04-02 22:50:51 +08:00
* @returns Promise<any>
*/
2022-06-24 11:10:56 +08:00
eps(data?: any): Promise<any>;
2022-04-02 22:50:51 +08:00
/**
*
*/
permission: {
list: string;
2022-06-10 17:33:59 +08:00
page: string;
2022-06-24 11:06:40 +08:00
info: string;
2022-06-24 11:10:56 +08:00
update: string;
delete: string;
2022-06-14 16:07:47 +08:00
add: string;
2022-06-24 11:10:56 +08:00
refreshToken: string;
captcha: string;
login: string;
html: string;
eps: string;
2022-06-14 16:07:47 +08:00
};
}
2022-06-24 11:10:56 +08:00
declare interface BaseSysDepartment {
2022-06-14 16:07:47 +08:00
/**
* list
* @returns Promise<any>
*/
list(data?: any): Promise<any>;
/**
* page
* @returns Promise<PageResponse>
*/
page(data?: any): Promise<PageResponse>;
/**
* info
* @returns Promise<any>
*/
info(data?: any): Promise<any>;
/**
* update
* @returns Promise<any>
*/
update(data?: any): Promise<any>;
/**
* delete
* @returns Promise<any>
*/
delete(data?: any): Promise<any>;
/**
* add
* @returns Promise<any>
*/
add(data?: any): Promise<any>;
2022-06-24 11:10:56 +08:00
/**
* order
* @returns Promise<any>
*/
order(data?: any): Promise<any>;
2022-06-14 16:07:47 +08:00
/**
*
*/
permission: {
list: string;
page: string;
info: string;
update: string;
delete: string;
add: string;
2022-06-24 11:10:56 +08:00
order: string;
2022-06-14 16:07:47 +08:00
};
}
2022-06-24 11:10:56 +08:00
declare interface BaseSysLog {
2022-06-14 16:07:47 +08:00
/**
* list
* @returns Promise<any>
*/
list(data?: any): Promise<any>;
/**
* page
* @returns Promise<PageResponse>
*/
page(data?: any): Promise<PageResponse>;
/**
* info
* @returns Promise<any>
*/
info(data?: any): Promise<any>;
/**
* update
* @returns Promise<any>
*/
update(data?: any): Promise<any>;
/**
* delete
* @returns Promise<any>
*/
delete(data?: any): Promise<any>;
/**
* add
* @returns Promise<any>
*/
add(data?: any): Promise<any>;
2022-06-24 11:10:56 +08:00
/**
* setKeep
* @returns Promise<any>
*/
setKeep(data?: any): Promise<any>;
/**
* getKeep
* @returns Promise<any>
*/
getKeep(data?: any): Promise<any>;
/**
* clear
* @returns Promise<any>
*/
clear(data?: any): Promise<any>;
2022-06-14 16:07:47 +08:00
/**
*
*/
permission: {
list: string;
page: string;
info: string;
update: string;
delete: string;
add: string;
2022-06-24 11:10:56 +08:00
setKeep: string;
getKeep: string;
clear: string;
2022-06-14 16:07:47 +08:00
};
}
2022-06-24 11:10:56 +08:00
declare interface BaseSysMenu {
2022-06-14 16:07:47 +08:00
/**
* list
* @returns Promise<any>
*/
list(data?: any): Promise<any>;
/**
* page
* @returns Promise<PageResponse>
*/
page(data?: any): Promise<PageResponse>;
/**
* info
* @returns Promise<any>
*/
info(data?: any): Promise<any>;
/**
* update
* @returns Promise<any>
*/
update(data?: any): Promise<any>;
/**
* delete
* @returns Promise<any>
*/
delete(data?: any): Promise<any>;
/**
* add
* @returns Promise<any>
*/
add(data?: any): Promise<any>;
/**
*
*/
permission: {
list: string;
page: string;
info: string;
update: string;
delete: string;
add: string;
};
}
2022-06-24 11:10:56 +08:00
declare interface BaseSysParam {
2022-06-14 16:07:47 +08:00
/**
* list
* @returns Promise<any>
*/
list(data?: any): Promise<any>;
/**
* page
* @returns Promise<PageResponse>
*/
page(data?: any): Promise<PageResponse>;
/**
* info
* @returns Promise<any>
*/
info(data?: any): Promise<any>;
/**
* update
* @returns Promise<any>
*/
update(data?: any): Promise<any>;
/**
* delete
* @returns Promise<any>
*/
delete(data?: any): Promise<any>;
/**
* add
* @returns Promise<any>
*/
add(data?: any): Promise<any>;
2022-06-24 11:10:56 +08:00
/**
* html
* @returns Promise<any>
*/
html(data?: any): Promise<any>;
2022-06-14 16:07:47 +08:00
/**
*
*/
permission: {
list: string;
page: string;
info: string;
update: string;
delete: string;
add: string;
2022-06-24 11:10:56 +08:00
html: string;
2022-06-14 16:07:47 +08:00
};
}
2022-06-24 11:10:56 +08:00
declare interface BaseSysRole {
2022-06-14 16:07:47 +08:00
/**
* list
* @returns Promise<any>
*/
list(data?: any): Promise<any>;
/**
* page
* @returns Promise<PageResponse>
*/
page(data?: any): Promise<PageResponse>;
/**
* info
* @returns Promise<any>
*/
info(data?: any): Promise<any>;
/**
* update
* @returns Promise<any>
*/
update(data?: any): Promise<any>;
/**
* delete
* @returns Promise<any>
*/
delete(data?: any): Promise<any>;
/**
* add
* @returns Promise<any>
*/
add(data?: any): Promise<any>;
/**
*
*/
permission: {
list: string;
page: string;
info: string;
update: string;
delete: string;
add: string;
};
}
2022-06-24 11:10:56 +08:00
declare interface BaseSysUser {
2022-06-14 16:07:47 +08:00
/**
* list
* @returns Promise<any>
*/
list(data?: any): Promise<any>;
/**
* page
* @returns Promise<PageResponse>
*/
page(data?: any): Promise<PageResponse>;
/**
* info
* @returns Promise<any>
*/
info(data?: any): Promise<any>;
/**
* update
* @returns Promise<any>
*/
update(data?: any): Promise<any>;
/**
* delete
* @returns Promise<any>
*/
delete(data?: any): Promise<any>;
/**
* add
* @returns Promise<any>
*/
add(data?: any): Promise<any>;
/**
2022-06-24 11:10:56 +08:00
* move
2022-06-14 16:07:47 +08:00
* @returns Promise<any>
*/
2022-06-24 11:10:56 +08:00
move(data?: any): Promise<any>;
2022-06-14 16:07:47 +08:00
/**
*
*/
permission: {
list: string;
page: string;
info: string;
update: string;
delete: string;
add: string;
2022-06-24 11:10:56 +08:00
move: string;
2022-06-14 16:07:47 +08:00
};
}
2022-06-24 11:10:56 +08:00
declare interface DemoGoods {
2022-06-14 16:07:47 +08:00
/**
* list
* @returns Promise<any>
*/
list(data?: any): Promise<any>;
/**
* page
* @returns Promise<PageResponse>
*/
page(data?: any): Promise<PageResponse>;
/**
* info
* @returns Promise<any>
*/
info(data?: any): Promise<any>;
/**
* update
* @returns Promise<any>
*/
update(data?: any): Promise<any>;
/**
* delete
* @returns Promise<any>
*/
delete(data?: any): Promise<any>;
/**
* add
* @returns Promise<any>
*/
add(data?: any): Promise<any>;
/**
*
*/
permission: {
list: string;
page: string;
info: string;
update: string;
delete: string;
add: string;
};
}
2022-06-24 11:10:56 +08:00
declare interface SpaceInfo {
2022-06-14 16:07:47 +08:00
/**
* list
* @returns Promise<any>
*/
list(data?: any): Promise<any>;
/**
* page
* @returns Promise<PageResponse>
*/
page(data?: any): Promise<PageResponse>;
/**
* info
* @returns Promise<any>
*/
info(data?: any): Promise<any>;
/**
* update
* @returns Promise<any>
*/
update(data?: any): Promise<any>;
/**
* delete
* @returns Promise<any>
*/
delete(data?: any): Promise<any>;
/**
* add
* @returns Promise<any>
*/
add(data?: any): Promise<any>;
/**
*
*/
permission: {
list: string;
page: string;
info: string;
update: string;
delete: string;
add: string;
};
}
2022-06-24 11:10:56 +08:00
declare interface SpaceType {
2022-06-14 16:07:47 +08:00
/**
* list
* @returns Promise<any>
*/
list(data?: any): Promise<any>;
/**
* page
* @returns Promise<PageResponse>
*/
page(data?: any): Promise<PageResponse>;
/**
* info
* @returns Promise<any>
*/
info(data?: any): Promise<any>;
/**
* update
* @returns Promise<any>
*/
update(data?: any): Promise<any>;
/**
* delete
* @returns Promise<any>
*/
delete(data?: any): Promise<any>;
/**
* add
* @returns Promise<any>
*/
add(data?: any): Promise<any>;
/**
*
*/
permission: {
list: string;
page: string;
info: string;
update: string;
delete: string;
add: string;
};
}
2022-06-24 11:10:56 +08:00
declare interface TaskInfo {
2022-06-14 16:07:47 +08:00
/**
* list
* @returns Promise<any>
*/
list(data?: any): Promise<any>;
/**
* page
* @returns Promise<PageResponse>
*/
page(data?: any): Promise<PageResponse>;
/**
* info
* @returns Promise<any>
*/
info(data?: any): Promise<any>;
/**
* update
* @returns Promise<any>
*/
update(data?: any): Promise<any>;
/**
* delete
* @returns Promise<any>
*/
delete(data?: any): Promise<any>;
/**
* add
* @returns Promise<any>
*/
add(data?: any): Promise<any>;
/**
2022-06-24 11:10:56 +08:00
* start
* @returns Promise<any>
*/
start(data?: any): Promise<any>;
/**
* once
* @returns Promise<any>
*/
once(data?: any): Promise<any>;
/**
* stop
* @returns Promise<any>
*/
stop(data?: any): Promise<any>;
/**
* log
2022-06-14 16:07:47 +08:00
* @returns Promise<any>
*/
2022-06-24 11:10:56 +08:00
log(data?: any): Promise<any>;
2022-06-14 16:07:47 +08:00
/**
*
*/
permission: {
list: string;
page: string;
info: string;
update: string;
delete: string;
add: string;
2022-06-24 11:10:56 +08:00
start: string;
once: string;
stop: string;
log: string;
2022-06-14 16:07:47 +08:00
};
}
2022-06-24 11:10:56 +08:00
declare interface ChatMessage {
2022-06-14 16:07:47 +08:00
/**
* list
* @returns Promise<any>
*/
list(data?: any): Promise<any>;
/**
* page
* @returns Promise<PageResponse>
*/
page(data?: any): Promise<PageResponse>;
/**
* info
* @returns Promise<any>
*/
info(data?: any): Promise<any>;
/**
* update
* @returns Promise<any>
*/
update(data?: any): Promise<any>;
/**
* delete
* @returns Promise<any>
*/
delete(data?: any): Promise<any>;
/**
* add
* @returns Promise<any>
*/
add(data?: any): Promise<any>;
/**
*
*/
permission: {
list: string;
page: string;
info: string;
update: string;
delete: string;
add: string;
};
}
2022-06-24 11:10:56 +08:00
declare interface ChatSession {
2022-04-02 22:50:51 +08:00
/**
2022-06-10 17:33:59 +08:00
* list
2022-04-02 22:50:51 +08:00
* @returns Promise<any>
*/
2022-06-10 17:33:59 +08:00
list(data?: any): Promise<any>;
2022-04-02 22:50:51 +08:00
/**
2022-06-10 17:33:59 +08:00
* page
* @returns Promise<PageResponse>
2022-04-02 22:50:51 +08:00
*/
2022-06-10 17:33:59 +08:00
page(data?: any): Promise<PageResponse>;
2022-04-02 22:50:51 +08:00
/**
2022-06-10 17:33:59 +08:00
* info
2022-04-02 22:50:51 +08:00
* @returns Promise<any>
*/
info(data?: any): Promise<any>;
/**
2022-06-10 17:33:59 +08:00
* update
2022-04-02 22:50:51 +08:00
* @returns Promise<any>
*/
2022-06-10 17:33:59 +08:00
update(data?: any): Promise<any>;
2022-04-02 22:50:51 +08:00
/**
2022-06-10 17:33:59 +08:00
* delete
* @returns Promise<any>
2022-04-02 22:50:51 +08:00
*/
2022-06-10 17:33:59 +08:00
delete(data?: any): Promise<any>;
2022-04-02 22:50:51 +08:00
/**
2022-06-10 17:33:59 +08:00
* add
2022-04-02 22:50:51 +08:00
* @returns Promise<any>
*/
add(data?: any): Promise<any>;
/**
*
*/
permission: {
list: string;
page: string;
2022-06-10 17:33:59 +08:00
info: string;
update: string;
delete: string;
2022-04-02 22:50:51 +08:00
add: string;
};
}
2022-05-18 15:09:13 +08:00
declare interface Test {
2022-05-11 16:38:45 +08:00
/**
2022-05-18 15:09:13 +08:00
* list
2022-05-11 16:38:45 +08:00
* @returns Promise<any>
*/
2022-05-18 15:09:13 +08:00
list(data?: any): Promise<any>;
2022-05-11 16:38:45 +08:00
/**
2022-05-18 15:09:13 +08:00
* page
* @returns Promise<PageResponse>
2022-05-11 16:38:45 +08:00
*/
2022-05-18 15:09:13 +08:00
page(data?: any): Promise<PageResponse>;
2022-05-11 16:38:45 +08:00
/**
2022-05-18 15:09:13 +08:00
* info
2022-05-11 16:38:45 +08:00
* @returns Promise<any>
*/
info(data?: any): Promise<any>;
/**
2022-05-18 15:09:13 +08:00
* update
2022-05-11 16:38:45 +08:00
* @returns Promise<any>
*/
2022-05-18 15:09:13 +08:00
update(data?: any): Promise<any>;
2022-05-11 16:38:45 +08:00
/**
2022-05-18 15:09:13 +08:00
* delete
* @returns Promise<any>
2022-05-11 16:38:45 +08:00
*/
2022-05-18 15:09:13 +08:00
delete(data?: any): Promise<any>;
2022-05-11 16:38:45 +08:00
/**
2022-05-18 15:09:13 +08:00
* add
2022-05-11 16:38:45 +08:00
* @returns Promise<any>
*/
add(data?: any): Promise<any>;
/**
*
*/
permission: {
list: string;
page: string;
2022-05-18 15:09:13 +08:00
info: string;
update: string;
delete: string;
2022-05-11 16:38:45 +08:00
add: string;
};
}
2022-04-02 22:50:51 +08:00
declare type Service = {
request(data: RequestOptions): Promise<any>;
base: {
comm: BaseComm;
open: BaseOpen;
sys: {
department: BaseSysDepartment;
log: BaseSysLog;
menu: BaseSysMenu;
param: BaseSysParam;
role: BaseSysRole;
user: BaseSysUser;
};
};
demo: { goods: DemoGoods };
space: { info: SpaceInfo; type: SpaceType };
task: { info: TaskInfo };
2022-06-24 11:10:56 +08:00
chat: { message: ChatMessage; session: ChatSession };
2022-05-18 15:09:13 +08:00
test: Test;
2022-04-02 22:50:51 +08:00
};