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 { /** * 修改个人信息 * @returns Promise */ personUpdate(data?: any): Promise; /** * 文件上传模式 * @returns Promise */ uploadMode(data?: any): Promise; /** * 权限与菜单 * @returns Promise */ permmenu(data?: any): Promise; /** * 个人信息 * @returns Promise */ person(data?: any): Promise; /** * 文件上传 * @returns Promise */ upload(data?: any): Promise; /** * 退出 * @returns Promise */ logout(data?: any): Promise; /** * 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: { personUpdate: string; uploadMode: string; permmenu: string; person: string; upload: string; logout: string; list: string; page: string; info: string; update: string; delete: string; add: string; }; } declare interface BaseOpen { /** * 刷新token * @returns Promise */ refreshToken(data?: any): Promise; /** * 验证码 * @returns Promise */ captcha(data?: any): Promise; /** * 登录 * @returns Promise */ login(data?: any): Promise; /** * 获得网页内容的参数值 * @returns Promise */ html(data?: any): Promise; /** * 实体信息与路径 * @returns Promise */ eps(data?: any): Promise; /** * 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: { refreshToken: string; captcha: string; login: string; html: string; eps: string; list: string; page: string; info: string; update: string; delete: string; add: string; }; } declare interface BaseSysDepartment { /** * 删除 * @returns Promise */ delete(data?: any): Promise; /** * 修改 * @returns Promise */ update(data?: any): Promise; /** * 排序 * @returns Promise */ order(data?: any): Promise; /** * 列表查询 * @returns Promise */ list(data?: any): Promise; /** * 新增 * @returns Promise */ add(data?: any): Promise; /** * page * @returns Promise */ page(data?: any): Promise; /** * info * @returns Promise */ info(data?: any): Promise; /** * 权限 */ permission: { delete: string; update: string; order: string; list: string; add: string; page: string; info: string; }; } declare interface BaseSysLog { /** * 日志保存时间 * @returns Promise */ setKeep(data?: any): Promise; /** * 获得日志保存时间 * @returns Promise */ getKeep(data?: any): Promise; /** * 清理 * @returns Promise */ clear(data?: any): Promise; /** * 分页查询 * @returns Promise */ page(data?: any): Promise; /** * list * @returns Promise */ list(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: { setKeep: string; getKeep: string; clear: string; page: string; list: string; info: string; update: string; delete: string; add: string; }; } declare interface BaseSysMenu { /** * 删除 * @returns Promise */ delete(data?: any): Promise; /** * 修改 * @returns Promise */ update(data?: any): Promise; /** * 单个信息 * @returns Promise */ info(data?: any): Promise; /** * 列表查询 * @returns Promise */ list(data?: any): Promise; /** * 分页查询 * @returns Promise */ page(data?: any): Promise; /** * 新增 * @returns Promise */ add(data?: any): Promise; /** * 权限 */ permission: { delete: string; update: string; info: string; list: string; page: string; add: string; }; } declare interface BaseSysParam { /** * 删除 * @returns Promise */ delete(data?: any): Promise; /** * 修改 * @returns Promise */ update(data?: any): Promise; /** * 获得网页内容的参数值 * @returns Promise */ html(data?: any): Promise; /** * 单个信息 * @returns Promise */ info(data?: any): Promise; /** * 分页查询 * @returns Promise */ page(data?: any): Promise; /** * 新增 * @returns Promise */ add(data?: any): Promise; /** * list * @returns Promise */ list(data?: any): Promise; /** * 权限 */ permission: { delete: string; update: string; html: string; info: string; page: string; add: string; list: string; }; } declare interface BaseSysRole { /** * 删除 * @returns Promise */ delete(data?: any): Promise; /** * 修改 * @returns Promise */ update(data?: any): Promise; /** * 单个信息 * @returns Promise */ info(data?: any): Promise; /** * 列表查询 * @returns Promise */ list(data?: any): Promise; /** * 分页查询 * @returns Promise */ page(data?: any): Promise; /** * 新增 * @returns Promise */ add(data?: any): Promise; /** * 权限 */ permission: { delete: string; update: string; info: string; list: string; page: string; add: string; }; } declare interface BaseSysUser { /** * 删除 * @returns Promise */ delete(data?: any): Promise; /** * 修改 * @returns Promise */ update(data?: any): Promise; /** * 移动部门 * @returns Promise */ move(data?: any): Promise; /** * 单个信息 * @returns Promise */ info(data?: any): Promise; /** * 列表查询 * @returns Promise */ list(data?: any): Promise; /** * 分页查询 * @returns Promise */ page(data?: any): Promise; /** * 新增 * @returns Promise */ add(data?: any): Promise; /** * 权限 */ permission: { delete: string; update: string; move: string; info: string; list: string; page: string; add: string; }; } declare interface DemoGoods { /** * 删除 * @returns Promise */ delete(data?: any): Promise; /** * 修改 * @returns Promise */ update(data?: any): Promise; /** * 单个信息 * @returns Promise */ info(data?: any): Promise; /** * 分页查询 * @returns Promise */ page(data?: any): Promise; /** * 列表查询 * @returns Promise */ list(data?: any): Promise; /** * 新增 * @returns Promise */ add(data?: any): Promise; /** * 权限 */ permission: { delete: string; update: string; info: string; page: string; list: string; add: string; }; } declare interface SpaceInfo { /** * 删除 * @returns Promise */ delete(data?: any): Promise; /** * 修改 * @returns Promise */ update(data?: any): Promise; /** * 单个信息 * @returns Promise */ info(data?: any): Promise; /** * 列表查询 * @returns Promise */ list(data?: any): Promise; /** * 分页查询 * @returns Promise */ page(data?: any): Promise; /** * 新增 * @returns Promise */ add(data?: any): Promise; /** * 权限 */ permission: { delete: string; update: string; info: string; list: string; page: string; add: string; }; } declare interface SpaceType { /** * 删除 * @returns Promise */ delete(data?: any): Promise; /** * 修改 * @returns Promise */ update(data?: any): Promise; /** * 单个信息 * @returns Promise */ info(data?: any): Promise; /** * 列表查询 * @returns Promise */ list(data?: any): Promise; /** * 分页查询 * @returns Promise */ page(data?: any): Promise; /** * 新增 * @returns Promise */ add(data?: any): Promise; /** * 权限 */ permission: { delete: string; update: string; info: string; list: string; page: string; add: string; }; } declare interface TaskInfo { /** * 删除 * @returns Promise */ delete(data?: any): Promise; /** * 修改 * @returns Promise */ update(data?: any): Promise; /** * 开始 * @returns Promise */ start(data?: any): Promise; /** * 执行一次 * @returns Promise */ once(data?: any): Promise; /** * 停止 * @returns Promise */ stop(data?: any): Promise; /** * 单个信息 * @returns Promise */ info(data?: any): Promise; /** * 分页查询 * @returns Promise */ page(data?: any): Promise; /** * 日志 * @returns Promise */ log(data?: any): Promise; /** * 新增 * @returns Promise */ add(data?: any): Promise; /** * list * @returns Promise */ list(data?: any): Promise; /** * 权限 */ permission: { delete: string; update: string; start: string; once: string; stop: string; info: string; page: string; log: string; add: string; list: 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 }; test: Test; };