diff --git a/build/cool/temp/eps.json b/build/cool/temp/eps.json index e6c9392..1b6bbdb 100644 --- a/build/cool/temp/eps.json +++ b/build/cool/temp/eps.json @@ -1 +1 @@ -[["/admin/base/comm",[["post","/personUpdate",""],["get","/uploadMode",""],["get","/permmenu",""],["get","/person",""],["post","/upload",""],["post","/logout",""],["","/list",""],["","/page",""],["","/info",""],["","/update",""],["","/delete",""],["","/add",""]]],["/admin/base/open",[["get","/refreshToken",""],["get","/captcha",""],["post","/login",""],["get","/html",""],["get","/eps",""],["","/list",""],["","/page",""],["","/info",""],["","/update",""],["","/delete",""],["","/add",""]]],["/admin/base/sys/department",[["post","/delete",""],["post","/update",""],["post","/order",""],["post","/list",""],["post","/add",""],["","/page",""],["","/info",""]]],["/admin/base/sys/log",[["post","/setKeep",""],["get","/getKeep",""],["post","/clear",""],["post","/page",""],["","/list",""],["","/info",""],["","/update",""],["","/delete",""],["","/add",""]]],["/admin/base/sys/menu",[["post","/delete",""],["post","/update",""],["get","/info",""],["post","/list",""],["post","/page",""],["post","/add",""]]],["/admin/base/sys/param",[["post","/delete",""],["post","/update",""],["get","/html",""],["get","/info",""],["post","/page",""],["post","/add",""],["","/list",""]]],["/admin/base/sys/role",[["post","/delete",""],["post","/update",""],["get","/info",""],["post","/list",""],["post","/page",""],["post","/add",""]]],["/admin/base/sys/user",[["post","/delete",""],["post","/update",""],["post","/move",""],["get","/info",""],["post","/list",""],["post","/page",""],["post","/add",""]]],["/admin/demo/goods",[["post","/delete",""],["post","/update",""],["get","/info",""],["post","/page",""],["post","/list",""],["post","/add",""]]],["/admin/space/info",[["post","/delete",""],["post","/update",""],["get","/info",""],["post","/list",""],["post","/page",""],["post","/add",""]]],["/admin/space/type",[["post","/delete",""],["post","/update",""],["get","/info",""],["post","/list",""],["post","/page",""],["post","/add",""]]],["/admin/task/info",[["post","/delete",""],["post","/update",""],["post","/start",""],["post","/once",""],["post","/stop",""],["get","/info",""],["post","/page",""],["get","/log",""],["post","/add",""],["","/list",""]]],["/test",[["","/list",""],["","/page",""],["","/info",""],["","/update",""],["","/delete",""],["","/add",""]]]] \ No newline at end of file +[["/admin/base/comm",[["","/list",""],["","/page",""],["","/info",""],["","/update",""],["","/delete",""],["","/add",""],["","/personUpdate",""],["","/uploadMode",""],["","/permmenu",""],["","/logout",""]]],["/admin/base/open",[["","/list",""],["","/page",""],["","/info",""],["","/update",""],["","/delete",""],["","/add",""],["","/refreshToken",""],["","/captcha",""],["","/login",""],["","/html",""],["","/eps",""]]],["/admin/base/sys/department",[["","/list",""],["","/page",""],["","/info",""],["","/update",""],["","/delete",""],["","/add",""],["","/order",""]]],["/admin/base/sys/log",[["","/list",""],["","/page",""],["","/info",""],["","/update",""],["","/delete",""],["","/add",""],["","/setKeep",""],["","/getKeep",""],["","/clear",""]]],["/admin/base/sys/menu",[["","/list",""],["","/page",""],["","/info",""],["","/update",""],["","/delete",""],["","/add",""]]],["/admin/base/sys/param",[["","/list",""],["","/page",""],["","/info",""],["","/update",""],["","/delete",""],["","/add",""],["","/html",""]]],["/admin/base/sys/role",[["","/list",""],["","/page",""],["","/info",""],["","/update",""],["","/delete",""],["","/add",""]]],["/admin/base/sys/user",[["","/list",""],["","/page",""],["","/info",""],["","/update",""],["","/delete",""],["","/add",""],["","/move",""]]],["/admin/demo/goods",[["","/list",""],["","/page",""],["","/info",""],["","/update",""],["","/delete",""],["","/add",""]]],["/admin/space/info",[["","/list",""],["","/page",""],["","/info",""],["","/update",""],["","/delete",""],["","/add",""]]],["/admin/space/type",[["","/list",""],["","/page",""],["","/info",""],["","/update",""],["","/delete",""],["","/add",""]]],["/admin/task/info",[["","/list",""],["","/page",""],["","/info",""],["","/update",""],["","/delete",""],["","/add",""],["","/start",""],["","/once",""],["","/stop",""],["","/log",""]]],["/chat/message",[["","/list",""],["","/page",""],["","/info",""],["","/update",""],["","/delete",""],["","/add",""]]],["/chat/session",[["","/list",""],["","/page",""],["","/info",""],["","/update",""],["","/delete",""],["","/add",""]]],["/test",[["","/list",""],["","/page",""],["","/info",""],["","/update",""],["","/delete",""],["","/add",""]]]] \ No newline at end of file diff --git a/build/cool/temp/service.d.ts b/build/cool/temp/service.d.ts index 3733eff..d3ac4e8 100644 --- a/build/cool/temp/service.d.ts +++ b/build/cool/temp/service.d.ts @@ -50,36 +50,6 @@ declare interface RequestOptions { } 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 @@ -110,51 +80,44 @@ declare interface BaseComm { * @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: { - personUpdate: string; - uploadMode: string; - permmenu: string; - person: string; - upload: string; - logout: string; list: string; page: string; info: string; update: string; delete: string; add: string; + personUpdate: string; + uploadMode: string; + permmenu: string; + logout: 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 @@ -185,50 +148,55 @@ declare interface BaseOpen { * @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; - 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; - /** - * 列表查询 + * list * @returns Promise */ list(data?: any): Promise; - /** - * 新增 - * @returns Promise - */ - add(data?: any): Promise; /** * page * @returns Promise @@ -239,46 +207,113 @@ declare interface BaseSysDepartment { * @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: { - delete: string; - update: string; - order: string; list: string; - add: 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; /** - * 分页查询 - * @returns Promise + * 权限 */ - page(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 @@ -303,11 +338,8 @@ declare interface BaseSysLog { * 权限 */ permission: { - setKeep: string; - getKeep: string; - clear: string; - page: string; list: string; + page: string; info: string; update: string; delete: string; @@ -315,128 +347,84 @@ declare interface BaseSysLog { }; } -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 { /** - * 删除 + * list * @returns Promise */ - delete(data?: any): Promise; + list(data?: any): Promise; /** - * 修改 - * @returns Promise - */ - update(data?: any): Promise; - /** - * 获得网页内容的参数值 - * @returns Promise - */ - html(data?: any): Promise; - /** - * 单个信息 - * @returns Promise - */ - info(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; /** - * 权限 - */ - 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; - /** - * 分页查询 + * 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; @@ -444,262 +432,350 @@ declare interface BaseSysRole { * 权限 */ permission: { - delete: string; - update: string; - info: string; list: string; page: string; + info: string; + update: string; + delete: string; add: string; }; } declare interface BaseSysUser { /** - * 删除 + * list * @returns Promise */ - delete(data?: any): 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; - /** - * 单个信息 - * @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; + info: string; + update: string; + delete: string; add: string; + move: 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; + /** + * 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: { - delete: string; + 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; - info: string; - page: string; log: string; - add: 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; }; } @@ -764,5 +840,6 @@ declare type Service = { demo: { goods: DemoGoods }; space: { info: SpaceInfo; type: SpaceType }; task: { info: TaskInfo }; + chat: { message: ChatMessage; session: ChatSession }; test: Test; }; diff --git a/package.json b/package.json index 9f3df7d..297c1d3 100644 --- a/package.json +++ b/package.json @@ -25,6 +25,7 @@ "nprogress": "^0.2.0", "pinia": "^2.0.12", "quill": "^1.3.7", + "socket.io-client": "^4.5.1", "store": "^2.0.12", "unocss": "^0.31.0", "vue": "^3.2.32", diff --git a/src/cool/service/eps.ts b/src/cool/service/eps.ts index 0816282..f43d93e 100644 --- a/src/cool/service/eps.ts +++ b/src/cool/service/eps.ts @@ -86,6 +86,7 @@ export function useEps(service: Service) { }) .catch((err) => { console.error("[Eps] 获取失败!", err.message); + createDts([]); }); } } diff --git a/src/modules/chat/components/index.vue b/src/modules/chat/components/index.vue index be4ad5a..3eaef6f 100644 --- a/src/modules/chat/components/index.vue +++ b/src/modules/chat/components/index.vue @@ -50,7 +50,8 @@