declare interface Crud { /** * 新增 * @returns Promise */ add(data: any): Promise; /** * 删除 * @returns Promise */ delete(data: { ids?: number[] | string[]; [key: string]: any }): Promise; /** * 修改 * @returns Promise */ update(data: { id?: number | string; [key: string]: any }): Promise; /** * 详情 * @returns Promise */ info(data: { id?: number | string; [key: string]: any }): Promise; /** * 全部 * @returns Promise */ list(data?: any): Promise; /** * 分页 * @returns Promise */ page(data?: { page?: number | string; size?: number | string; [key: string]: any; }): Promise; } 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 { /** * list * @returns Promise */ list(data?: any): Promise; /** * page * @returns Promise */ page(data?: any): Promise; /** * info * @returns Promise */ info(data?: any): Promise; /** * update * @returns Promise */ update(data?: any): Promise; /** * delete * @returns Promise */ delete(data?: any): Promise; /** * add * @returns Promise */ add(data?: any): Promise; /** * personUpdate * @returns Promise */ personUpdate(data?: any): Promise; /** * uploadMode * @returns Promise */ uploadMode(data?: any): Promise; /** * permmenu * @returns Promise */ permmenu(data?: any): Promise; /** * logout * @returns Promise */ logout(data?: any): Promise; /** * 权限 */ permission: { list: string; page: string; info: string; update: string; delete: string; add: string; personUpdate: string; uploadMode: string; permmenu: string; logout: string; }; } declare interface BaseOpen { /** * list * @returns Promise */ list(data?: any): Promise; /** * page * @returns Promise */ page(data?: any): Promise; /** * info * @returns Promise */ info(data?: any): Promise; /** * update * @returns Promise */ update(data?: any): Promise; /** * delete * @returns Promise */ delete(data?: any): Promise; /** * add * @returns Promise */ add(data?: any): Promise; /** * refreshToken * @returns Promise */ refreshToken(data?: any): Promise; /** * captcha * @returns Promise */ captcha(data?: any): Promise; /** * login * @returns Promise */ login(data?: any): Promise; /** * html * @returns Promise */ html(data?: any): Promise; /** * eps * @returns Promise */ eps(data?: any): Promise; /** * 权限 */ 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 { /** * list * @returns Promise */ list(data?: any): Promise; /** * page * @returns Promise */ page(data?: any): Promise; /** * info * @returns Promise */ info(data?: any): Promise; /** * update * @returns Promise */ update(data?: any): Promise; /** * delete * @returns Promise */ delete(data?: any): Promise; /** * add * @returns Promise */ add(data?: any): Promise; /** * order * @returns Promise */ order(data?: any): Promise; /** * 权限 */ permission: { list: string; page: string; info: string; update: string; delete: string; add: string; order: string; }; } declare interface BaseSysLog { /** * list * @returns Promise */ list(data?: any): Promise; /** * page * @returns Promise */ page(data?: any): Promise; /** * info * @returns Promise */ info(data?: any): Promise; /** * update * @returns Promise */ update(data?: any): Promise; /** * delete * @returns Promise */ delete(data?: any): Promise; /** * add * @returns Promise */ add(data?: any): Promise; /** * setKeep * @returns Promise */ setKeep(data?: any): Promise; /** * getKeep * @returns Promise */ getKeep(data?: any): Promise; /** * clear * @returns Promise */ clear(data?: any): Promise; /** * 权限 */ permission: { list: string; page: string; info: string; update: string; delete: string; add: string; setKeep: string; getKeep: string; clear: string; }; } declare interface BaseSysMenu { /** * list * @returns Promise */ list(data?: any): Promise; /** * page * @returns Promise */ page(data?: any): Promise; /** * info * @returns Promise */ info(data?: any): Promise; /** * update * @returns Promise */ update(data?: any): Promise; /** * delete * @returns Promise */ delete(data?: any): Promise; /** * add * @returns Promise */ add(data?: any): Promise; /** * 权限 */ permission: { list: string; page: string; info: string; update: string; delete: string; add: string; }; } declare interface BaseSysParam { /** * list * @returns Promise */ list(data?: any): Promise; /** * page * @returns Promise */ page(data?: any): Promise; /** * info * @returns Promise */ info(data?: any): Promise; /** * update * @returns Promise */ update(data?: any): Promise; /** * delete * @returns Promise */ delete(data?: any): Promise; /** * add * @returns Promise */ add(data?: any): Promise; /** * html * @returns Promise */ html(data?: any): Promise; /** * 权限 */ permission: { list: string; page: string; info: string; update: string; delete: string; add: string; html: string; }; } declare interface BaseSysRole { /** * list * @returns Promise */ list(data?: any): Promise; /** * page * @returns Promise */ page(data?: any): Promise; /** * info * @returns Promise */ info(data?: any): Promise; /** * update * @returns Promise */ update(data?: any): Promise; /** * delete * @returns Promise */ delete(data?: any): Promise; /** * add * @returns Promise */ add(data?: any): Promise; /** * 权限 */ permission: { list: string; page: string; info: string; update: string; delete: string; add: string; }; } declare interface BaseSysUser { /** * list * @returns Promise */ list(data?: any): Promise; /** * page * @returns Promise */ page(data?: any): Promise; /** * info * @returns Promise */ info(data?: any): Promise; /** * update * @returns Promise */ update(data?: any): Promise; /** * delete * @returns Promise */ delete(data?: any): Promise; /** * add * @returns Promise */ add(data?: any): Promise; /** * move * @returns Promise */ move(data?: any): Promise; /** * 权限 */ permission: { list: string; page: string; info: string; update: string; delete: string; add: string; move: string; }; } declare interface DemoGoods { /** * list * @returns Promise */ list(data?: any): Promise; /** * page * @returns Promise */ page(data?: any): Promise; /** * info * @returns Promise */ info(data?: any): Promise; /** * update * @returns Promise */ update(data?: any): Promise; /** * delete * @returns Promise */ delete(data?: any): Promise; /** * add * @returns Promise */ add(data?: any): Promise; /** * 权限 */ permission: { list: string; page: string; info: string; update: string; delete: string; add: string; }; } declare interface SpaceInfo { /** * list * @returns Promise */ list(data?: any): Promise; /** * page * @returns Promise */ page(data?: any): Promise; /** * info * @returns Promise */ info(data?: any): Promise; /** * update * @returns Promise */ update(data?: any): Promise; /** * delete * @returns Promise */ delete(data?: any): Promise; /** * add * @returns Promise */ add(data?: any): Promise; /** * 权限 */ permission: { list: string; page: string; info: string; update: string; delete: string; add: string; }; } declare interface SpaceType { /** * list * @returns Promise */ list(data?: any): Promise; /** * page * @returns Promise */ page(data?: any): Promise; /** * info * @returns Promise */ info(data?: any): Promise; /** * update * @returns Promise */ update(data?: any): Promise; /** * delete * @returns Promise */ delete(data?: any): Promise; /** * add * @returns Promise */ add(data?: any): Promise; /** * 权限 */ permission: { list: string; page: string; info: string; update: string; delete: string; add: string; }; } declare interface TaskInfo { /** * list * @returns Promise */ list(data?: any): Promise; /** * page * @returns Promise */ page(data?: any): Promise; /** * info * @returns Promise */ info(data?: any): Promise; /** * update * @returns Promise */ update(data?: any): Promise; /** * delete * @returns Promise */ delete(data?: any): Promise; /** * add * @returns Promise */ add(data?: any): Promise; /** * start * @returns Promise */ start(data?: any): Promise; /** * once * @returns Promise */ once(data?: any): Promise; /** * stop * @returns Promise */ stop(data?: any): Promise; /** * log * @returns Promise */ log(data?: any): Promise; /** * 权限 */ permission: { list: string; page: string; info: string; update: string; delete: string; add: string; start: string; once: string; stop: string; log: string; }; } declare interface ChatMessage { /** * list * @returns Promise */ list(data?: any): Promise; /** * page * @returns Promise */ page(data?: any): Promise; /** * info * @returns Promise */ info(data?: any): Promise; /** * update * @returns Promise */ update(data?: any): Promise; /** * delete * @returns Promise */ delete(data?: any): Promise; /** * add * @returns Promise */ add(data?: any): Promise; /** * 权限 */ permission: { list: string; page: string; info: string; update: string; delete: string; add: string; }; } declare interface ChatSession { /** * list * @returns Promise */ list(data?: any): Promise; /** * page * @returns Promise */ page(data?: any): Promise; /** * info * @returns Promise */ info(data?: any): Promise; /** * update * @returns Promise */ update(data?: any): Promise; /** * delete * @returns Promise */ delete(data?: any): Promise; /** * add * @returns Promise */ add(data?: any): Promise; /** * 权限 */ permission: { list: string; page: string; info: string; update: string; delete: string; add: string; }; } declare interface Test { /** * list * @returns Promise */ list(data?: any): Promise; /** * page * @returns Promise */ page(data?: any): Promise; /** * info * @returns Promise */ info(data?: any): Promise; /** * update * @returns Promise */ update(data?: any): Promise; /** * delete * @returns Promise */ delete(data?: any): Promise; /** * add * @returns Promise */ add(data?: any): Promise; /** * 权限 */ permission: { list: string; page: string; info: string; update: string; delete: string; add: string; }; } declare type Service = { request(data: RequestOptions): Promise; 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 }; chat: { message: ChatMessage; session: ChatSession }; test: Test; };