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-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>;
/**
* page
* @returns Promise<PageResponse>
*/
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>
*/
2022-06-10 17:33:59 +08:00
info(data?: any): Promise<any>;
2022-04-02 22:50:51 +08:00
/**
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
2022-04-02 22:50:51 +08:00
* @returns Promise<any>
*/
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
* @returns Promise<any>
*/
add(data?: any): Promise<any>;
/**
* personUpdate
2022-04-02 22:50:51 +08:00
* @returns Promise<any>
*/
2022-06-10 17:33:59 +08:00
personUpdate(data?: any): Promise<any>;
2022-04-02 22:50:51 +08:00
/**
2022-06-10 17:33:59 +08:00
* uploadMode
* @returns Promise<any>
*/
uploadMode(data?: any): Promise<any>;
/**
* permmenu
* @returns Promise<any>
*/
permmenu(data?: any): Promise<any>;
/**
* logout
2022-04-02 22:50:51 +08:00
* @returns Promise<any>
*/
logout(data?: any): Promise<any>;
2022-06-10 17:33:59 +08:00
/**
*
*/
permission: {
list: string;
page: string;
info: string;
update: string;
delete: string;
add: string;
personUpdate: string;
uploadMode: string;
permmenu: string;
logout: string;
};
}
declare interface BaseOpen {
2022-04-02 22:50:51 +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-10 17:33:59 +08:00
* refreshToken
2022-04-02 22:50:51 +08:00
* @returns Promise<any>
*/
refreshToken(data?: any): Promise<any>;
/**
2022-06-10 17:33:59 +08:00
* captcha
2022-04-02 22:50:51 +08:00
* @returns Promise<any>
*/
captcha(data?: any): Promise<any>;
/**
2022-06-10 17:33:59 +08:00
* login
2022-04-02 22:50:51 +08:00
* @returns Promise<any>
*/
login(data?: any): Promise<any>;
/**
2022-06-10 17:33:59 +08:00
* html
2022-04-02 22:50:51 +08:00
* @returns Promise<any>
*/
html(data?: any): Promise<any>;
/**
2022-06-10 17:33:59 +08:00
* eps
2022-04-02 22:50:51 +08:00
* @returns Promise<any>
*/
eps(data?: any): Promise<any>;
2022-06-10 17:33:59 +08:00
/**
*
*/
permission: {
list: string;
page: string;
info: string;
update: string;
delete: string;
add: string;
refreshToken: string;
captcha: string;
login: string;
html: string;
eps: string;
};
}
declare interface BaseSysDepartment {
2022-04-02 22:50:51 +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-10 17:33:59 +08:00
/**
* order
* @returns Promise<any>
*/
order(data?: any): Promise<any>;
2022-04-02 22:50:51 +08:00
/**
*
*/
permission: {
list: string;
page: string;
info: string;
update: string;
delete: string;
add: string;
2022-06-10 17:33:59 +08:00
order: string;
2022-04-02 22:50:51 +08:00
};
}
2022-06-10 17:33:59 +08:00
declare interface BaseSysLog {
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>
*/
page(data?: any): Promise<PageResponse>;
/**
* info
2022-04-02 22:50:51 +08:00
* @returns Promise<any>
*/
2022-06-10 17:33:59 +08:00
info(data?: any): Promise<any>;
2022-04-02 22:50:51 +08:00
/**
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
2022-04-02 22:50:51 +08:00
* @returns Promise<any>
*/
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>;
/**
2022-06-10 17:33:59 +08:00
* setKeep
* @returns Promise<any>
2022-04-02 22:50:51 +08:00
*/
2022-06-10 17:33:59 +08:00
setKeep(data?: any): Promise<any>;
2022-04-02 22:50:51 +08:00
/**
2022-06-10 17:33:59 +08:00
* getKeep
2022-04-02 22:50:51 +08:00
* @returns Promise<any>
*/
2022-06-10 17:33:59 +08:00
getKeep(data?: any): Promise<any>;
/**
* clear
* @returns Promise<any>
*/
clear(data?: any): Promise<any>;
2022-04-02 22:50:51 +08:00
/**
*
*/
permission: {
list: string;
page: string;
info: string;
2022-06-10 17:33:59 +08:00
update: string;
delete: string;
add: string;
setKeep: string;
getKeep: string;
clear: string;
2022-04-02 22:50:51 +08:00
};
}
2022-06-10 17:33:59 +08:00
declare interface BaseSysMenu {
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
2022-04-02 22:50:51 +08:00
* @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;
2022-06-10 17:33:59 +08:00
page: string;
2022-04-02 22:50:51 +08:00
info: string;
update: string;
delete: string;
add: string;
};
}
2022-06-10 17:33:59 +08:00
declare interface BaseSysParam {
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>;
2022-06-10 17:33:59 +08:00
/**
* html
* @returns Promise<any>
*/
html(data?: any): Promise<any>;
2022-04-02 22:50:51 +08:00
/**
*
*/
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-06-10 17:33:59 +08:00
html: string;
2022-04-02 22:50:51 +08:00
};
}
2022-06-10 17:33:59 +08:00
declare interface BaseSysRole {
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
* @returns Promise<any>
2022-04-02 22:50:51 +08:00
*/
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
2022-04-02 22:50:51 +08:00
* @returns Promise<any>
*/
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>
*/
2022-06-10 17:33:59 +08:00
add(data?: any): Promise<any>;
2022-04-02 22:50:51 +08:00
/**
*
*/
permission: {
2022-06-10 17:33:59 +08:00
list: string;
2022-04-02 22:50:51 +08:00
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-06-10 17:33:59 +08:00
declare interface BaseSysUser {
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>;
2022-06-10 17:33:59 +08:00
/**
* move
* @returns Promise<any>
*/
move(data?: any): Promise<any>;
2022-04-02 22:50:51 +08:00
/**
*
*/
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-06-10 17:33:59 +08:00
move: string;
2022-04-02 22:50:51 +08:00
};
}
2022-06-10 17:33:59 +08:00
declare interface DemoGoods {
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-06-10 17:33:59 +08:00
declare interface SpaceInfo {
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
* @returns Promise<any>
2022-04-02 22:50:51 +08:00
*/
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
2022-04-02 22:50:51 +08:00
* @returns Promise<any>
*/
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;
2022-06-10 17:33:59 +08:00
page: string;
info: string;
update: string;
delete: string;
2022-04-02 22:50:51 +08:00
add: string;
};
}
2022-06-10 17:33:59 +08:00
declare interface SpaceType {
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-06-10 17:33:59 +08:00
declare interface TaskInfo {
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>;
2022-06-10 17:33:59 +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
* @returns Promise<any>
*/
log(data?: any): Promise<any>;
2022-04-02 22:50:51 +08:00
/**
*
*/
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-06-10 17:33:59 +08:00
start: string;
once: string;
stop: string;
log: string;
2022-04-02 22:50:51 +08:00
};
}
2022-06-10 17:33:59 +08:00
declare interface ChatMessage {
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>
*/
page(data?: any): Promise<PageResponse>;
/**
* info
2022-04-02 22:50:51 +08:00
* @returns Promise<any>
*/
2022-06-10 17:33:59 +08:00
info(data?: any): Promise<any>;
2022-04-02 22:50:51 +08:00
/**
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
2022-04-02 22:50:51 +08:00
* @returns Promise<any>
*/
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>
*/
2022-06-10 17:33:59 +08:00
add(data?: any): Promise<any>;
2022-04-02 22:50:51 +08:00
/**
2022-06-10 17:33:59 +08:00
*
*/
permission: {
list: string;
page: string;
info: string;
update: string;
delete: string;
add: string;
};
}
declare interface ChatSession {
/**
* 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
2022-04-02 22:50:51 +08:00
* @returns Promise<PageResponse>
*/
page(data?: any): Promise<PageResponse>;
/**
2022-06-10 17:33:59 +08:00
* info
2022-04-02 22:50:51 +08:00
* @returns Promise<any>
*/
2022-06-10 17:33:59 +08:00
info(data?: any): Promise<any>;
2022-04-02 22:50:51 +08:00
/**
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
2022-04-02 22:50:51 +08:00
* @returns Promise<any>
*/
2022-06-10 17:33:59 +08:00
delete(data?: any): Promise<any>;
/**
* add
* @returns Promise<any>
*/
add(data?: any): Promise<any>;
2022-04-02 22:50:51 +08:00
/**
*
*/
permission: {
2022-06-10 17:33:59 +08:00
list: string;
2022-04-02 22:50:51 +08:00
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-10 17:33:59 +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
};