From 2a8632ca9f2edddf83efe51af163ec2780667bc2 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E7=A5=9E=E4=BB=99=E9=83=BD=E6=B2=A1=E7=94=A8?= <615206459@qq.com> Date: Fri, 21 Mar 2025 14:53:12 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BC=98=E5=8C=96?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- build/cool/eps.d.ts | 1523 +++++++------------------- build/cool/eps.json | 2 +- packages/crud/src/entry.ts | 2 +- src/config/proxy.ts | 4 +- src/modules/demo/config.ts | 7 - src/modules/demo/views/test/crud.vue | 205 ---- src/modules/helper/hooks/ai.ts | 102 -- src/modules/helper/hooks/index.ts | 1 - 8 files changed, 409 insertions(+), 1437 deletions(-) delete mode 100644 src/modules/demo/views/test/crud.vue delete mode 100644 src/modules/helper/hooks/ai.ts diff --git a/build/cool/eps.d.ts b/build/cool/eps.d.ts index f773106..c7cb319 100644 --- a/build/cool/eps.d.ts +++ b/build/cool/eps.d.ts @@ -1,35 +1,5 @@ declare namespace Eps { interface BaseSysDepartmentEntity { - /** - * ID - */ - id?: number; - - /** - * 部门名称 - */ - name?: string; - - /** - * 上级部门ID - */ - parentId?: number; - - /** - * 排序 - */ - orderNum?: number; - - /** - * 创建时间 - */ - createTime?: string; - - /** - * 更新时间 - */ - updateTime?: string; - /** * 任意键值 */ @@ -37,46 +7,6 @@ declare namespace Eps { } interface BaseSysLogEntity { - /** - * ID - */ - id?: number; - - /** - * 用户ID - */ - userId?: number; - - /** - * 行为 - */ - action?: string; - - /** - * ip - */ - ip?: string; - - /** - * 参数 - */ - params?: json; - - /** - * 创建时间 - */ - createTime?: string; - - /** - * 更新时间 - */ - updateTime?: string; - - /** - * 姓名 - */ - name?: string; - /** * 任意键值 */ @@ -84,71 +14,6 @@ declare namespace Eps { } interface BaseSysMenuEntity { - /** - * ID - */ - id?: number; - - /** - * 父菜单ID - */ - parentId?: number; - - /** - * 菜单名称 - */ - name?: string; - - /** - * 菜单地址 - */ - router?: string; - - /** - * 权限标识 - */ - perms?: string; - - /** - * 类型 0-目录 1-菜单 2-按钮 - */ - type?: number; - - /** - * 图标 - */ - icon?: string; - - /** - * 排序 - */ - orderNum?: number; - - /** - * 视图地址 - */ - viewPath?: string; - - /** - * 路由缓存 - */ - keepAlive?: boolean; - - /** - * 是否显示 - */ - isShow?: boolean; - - /** - * 创建时间 - */ - createTime?: string; - - /** - * 更新时间 - */ - updateTime?: string; - /** * 任意键值 */ @@ -156,46 +21,6 @@ declare namespace Eps { } interface BaseSysParamEntity { - /** - * ID - */ - id?: number; - - /** - * 键 - */ - keyName?: string; - - /** - * 名称 - */ - name?: string; - - /** - * 数据 - */ - data?: string; - - /** - * 数据类型 0-字符串 1-富文本 2-文件 - */ - dataType?: number; - - /** - * 备注 - */ - remark?: string; - - /** - * 创建时间 - */ - createTime?: string; - - /** - * 更新时间 - */ - updateTime?: string; - /** * 任意键值 */ @@ -203,56 +28,6 @@ declare namespace Eps { } interface BaseSysRoleEntity { - /** - * ID - */ - id?: number; - - /** - * 用户ID - */ - userId?: string; - - /** - * 名称 - */ - name?: string; - - /** - * 角色标签 - */ - label?: string; - - /** - * 备注 - */ - remark?: string; - - /** - * 数据权限是否关联上下级 - */ - relevance?: boolean; - - /** - * 菜单权限 - */ - menuIdList?: json; - - /** - * 部门权限 - */ - departmentIdList?: json; - - /** - * 创建时间 - */ - createTime?: string; - - /** - * 更新时间 - */ - updateTime?: string; - /** * 任意键值 */ @@ -260,81 +35,6 @@ declare namespace Eps { } interface BaseSysUserEntity { - /** - * ID - */ - id?: number; - - /** - * 部门ID - */ - departmentId?: number; - - /** - * 姓名 - */ - name?: string; - - /** - * 用户名 - */ - username?: string; - - /** - * 密码 - */ - password?: string; - - /** - * 密码版本, 作用是改完密码,让原来的token失效 - */ - passwordV?: number; - - /** - * 昵称 - */ - nickName?: string; - - /** - * 头像 - */ - headImg?: string; - - /** - * 手机 - */ - phone?: string; - - /** - * 邮箱 - */ - email?: string; - - /** - * 备注 - */ - remark?: string; - - /** - * 状态 0-禁用 1-启用 - */ - status?: number; - - /** - * socketId - */ - socketId?: string; - - /** - * 创建时间 - */ - createTime?: string; - - /** - * 更新时间 - */ - updateTime?: string; - /** * 任意键值 */ @@ -342,66 +42,6 @@ declare namespace Eps { } interface DemoGoodsEntity { - /** - * ID - */ - id?: number; - - /** - * 标题 - */ - title?: string; - - /** - * 价格 - */ - price?: number; - - /** - * 描述 - */ - description?: string; - - /** - * 主图 - */ - mainImage?: string; - - /** - * 分类 - */ - type?: number; - - /** - * 状态 - */ - status?: number; - - /** - * 示例图 - */ - exampleImages?: json; - - /** - * 库存 - */ - stock?: number; - - /** - * 创建时间 - */ - createTime?: string; - - /** - * 更新时间 - */ - updateTime?: string; - - /** - * 昵称 - */ - userName?: string; - /** * 任意键值 */ @@ -409,51 +49,6 @@ declare namespace Eps { } interface DictInfoEntity { - /** - * ID - */ - id?: number; - - /** - * 类型ID - */ - typeId?: number; - - /** - * 名称 - */ - name?: string; - - /** - * 值 - */ - value?: string; - - /** - * 排序 - */ - orderNum?: number; - - /** - * 备注 - */ - remark?: string; - - /** - * 父ID - */ - parentId?: number; - - /** - * 创建时间 - */ - createTime?: string; - - /** - * 更新时间 - */ - updateTime?: string; - /** * 任意键值 */ @@ -462,30 +57,33 @@ declare namespace Eps { interface DictTypeEntity { /** - * ID + * 任意键值 */ - id?: number; + [key: string]: any; + } + interface EducationClassEntity { /** - * 名称 + * 任意键值 */ - name?: string; + [key: string]: any; + } + interface EducationCourseEntity { /** - * 标识 + * 任意键值 */ - key?: string; + [key: string]: any; + } + interface EducationStudentEntity { /** - * 创建时间 + * 任意键值 */ - createTime?: string; - - /** - * 更新时间 - */ - updateTime?: string; + [key: string]: any; + } + interface EducationTeacherEntity { /** * 任意键值 */ @@ -493,86 +91,6 @@ declare namespace Eps { } interface PluginInfoEntity { - /** - * ID - */ - id?: number; - - /** - * 名称 - */ - name?: string; - - /** - * 简介 - */ - description?: string; - - /** - * Key名 - */ - keyName?: string; - - /** - * Hook - */ - hook?: string; - - /** - * 描述 - */ - readme?: string; - - /** - * 版本 - */ - version?: string; - - /** - * Logo(base64) - */ - logo?: string; - - /** - * 作者 - */ - author?: string; - - /** - * 状态 0-禁用 1-启用 - */ - status?: number; - - /** - * 内容 - */ - content?: json; - - /** - * ts内容 - */ - tsContent?: json; - - /** - * 插件的plugin.json - */ - pluginJson?: json; - - /** - * 配置 - */ - config?: json; - - /** - * 创建时间 - */ - createTime?: string; - - /** - * 更新时间 - */ - updateTime?: string; - /** * 任意键值 */ @@ -580,56 +98,6 @@ declare namespace Eps { } interface RecycleDataEntity { - /** - * ID - */ - id?: number; - - /** - * 表 - */ - entityInfo?: json; - - /** - * 操作人 - */ - userId?: number; - - /** - * 被删除的数据 - */ - data?: json; - - /** - * 请求的接口 - */ - url?: string; - - /** - * 请求参数 - */ - params?: json; - - /** - * 删除数据条数 - */ - count?: number; - - /** - * 创建时间 - */ - createTime?: string; - - /** - * 更新时间 - */ - updateTime?: string; - - /** - * 姓名 - */ - userName?: string; - /** * 任意键值 */ @@ -637,41 +105,6 @@ declare namespace Eps { } interface ShopCategoryEntity { - /** - * ID - */ - id?: number; - - /** - * 图片 - */ - pic?: string; - - /** - * 名称 - */ - name?: string; - - /** - * 父类ID - */ - parentId?: number; - - /** - * 排序 - */ - order?: number; - - /** - * 创建时间 - */ - createTime?: string; - - /** - * 更新时间 - */ - updateTime?: string; - /** * 任意键值 */ @@ -679,51 +112,6 @@ declare namespace Eps { } interface ShopCommentEntity { - /** - * ID - */ - id?: number; - - /** - * 用户ID - */ - userId?: number; - - /** - * 内容 - */ - content?: string; - - /** - * 评分 [1-5] - */ - score?: number; - - /** - * 商品ID - */ - productId?: number; - - /** - * 提交时间 - */ - submitTime?: string; - - /** - * 创建时间 - */ - createTime?: string; - - /** - * 更新时间 - */ - updateTime?: string; - - /** - * 昵称 - */ - userName?: string; - /** * 任意键值 */ @@ -731,66 +119,6 @@ declare namespace Eps { } interface ShopProductEntity { - /** - * ID - */ - id?: number; - - /** - * 图片 - */ - pic?: string; - - /** - * 名称 - */ - name?: string; - - /** - * 价格 - */ - price?: number; - - /** - * 分类ID - */ - categoryId?: number; - - /** - * 品牌 - */ - brand?: string; - - /** - * 产地 - */ - origin?: string; - - /** - * 状态 [0-上架|1-下架] - */ - status?: number; - - /** - * 详情 - */ - detail?: string; - - /** - * 排序 - */ - order?: number; - - /** - * 创建时间 - */ - createTime?: string; - - /** - * 更新时间 - */ - updateTime?: string; - /** * 任意键值 */ @@ -798,61 +126,6 @@ declare namespace Eps { } interface SpaceInfoEntity { - /** - * ID - */ - id?: number; - - /** - * 地址 - */ - url?: string; - - /** - * 类型 - */ - type?: string; - - /** - * 分类ID - */ - classifyId?: number; - - /** - * 文件id - */ - fileId?: string; - - /** - * 文件名 - */ - name?: string; - - /** - * 文件大小 - */ - size?: number; - - /** - * 文档版本 - */ - version?: number; - - /** - * 文件位置 - */ - key?: string; - - /** - * 创建时间 - */ - createTime?: string; - - /** - * 更新时间 - */ - updateTime?: string; - /** * 任意键值 */ @@ -860,31 +133,6 @@ declare namespace Eps { } interface SpaceTypeEntity { - /** - * ID - */ - id?: number; - - /** - * 类别名称 - */ - name?: string; - - /** - * 父分类ID - */ - parentId?: number; - - /** - * 创建时间 - */ - createTime?: string; - - /** - * 更新时间 - */ - updateTime?: string; - /** * 任意键值 */ @@ -892,106 +140,6 @@ declare namespace Eps { } interface TaskInfoEntity { - /** - * ID - */ - id?: number; - - /** - * 任务ID - */ - jobId?: string; - - /** - * 任务配置 - */ - repeatConf?: string; - - /** - * 名称 - */ - name?: string; - - /** - * cron - */ - cron?: string; - - /** - * 最大执行次数 不传为无限次 - */ - limit?: number; - - /** - * 每间隔多少毫秒执行一次 如果cron设置了 这项设置就无效 - */ - every?: number; - - /** - * 备注 - */ - remark?: string; - - /** - * 状态 0-停止 1-运行 - */ - status?: number; - - /** - * 开始时间 - */ - startDate?: Date; - - /** - * 结束时间 - */ - endDate?: Date; - - /** - * 数据 - */ - data?: string; - - /** - * 执行的service实例ID - */ - service?: string; - - /** - * 状态 0-系统 1-用户 - */ - type?: number; - - /** - * 下一次执行时间 - */ - nextRunTime?: Date; - - /** - * 状态 0-cron 1-时间间隔 - */ - taskType?: number; - - /** - * undefined - */ - lastExecuteTime?: Date; - - /** - * undefined - */ - lockExpireTime?: Date; - - /** - * 创建时间 - */ - createTime?: string; - - /** - * 更新时间 - */ - updateTime?: string; - /** * 任意键值 */ @@ -999,61 +147,6 @@ declare namespace Eps { } interface UserAddressEntity { - /** - * ID - */ - id?: number; - - /** - * 用户ID - */ - userId?: number; - - /** - * 联系人 - */ - contact?: string; - - /** - * 手机号 - */ - phone?: string; - - /** - * 省 - */ - province?: string; - - /** - * 市 - */ - city?: string; - - /** - * 区 - */ - district?: string; - - /** - * 地址 - */ - address?: string; - - /** - * 是否默认 - */ - isDefault?: boolean; - - /** - * 创建时间 - */ - createTime?: string; - - /** - * 更新时间 - */ - updateTime?: string; - /** * 任意键值 */ @@ -1061,66 +154,6 @@ declare namespace Eps { } interface UserInfoEntity { - /** - * ID - */ - id?: number; - - /** - * 登录唯一ID - */ - unionid?: string; - - /** - * 头像 - */ - avatarUrl?: string; - - /** - * 昵称 - */ - nickName?: string; - - /** - * 手机号 - */ - phone?: string; - - /** - * 性别 - */ - gender?: number; - - /** - * 状态 - */ - status?: number; - - /** - * 登录方式 - */ - loginType?: number; - - /** - * 密码 - */ - password?: string; - - /** - * 介绍 - */ - description?: string; - - /** - * 创建时间 - */ - createTime?: string; - - /** - * 更新时间 - */ - updateTime?: string; - /** * 任意键值 */ @@ -1131,12 +164,12 @@ declare namespace Eps { interface BaseCoding { /** - * 获取模块目录结构 + * getModuleTree */ getModuleTree(data?: any): Promise; /** - * 创建代码 + * createCode */ createCode(data?: any): Promise; @@ -1155,37 +188,37 @@ declare namespace Eps { interface BaseComm { /** - * 修改个人信息 + * personUpdate */ personUpdate(data?: any): Promise; /** - * 文件上传模式 + * uploadMode */ uploadMode(data?: any): Promise; /** - * 权限与菜单 + * permmenu */ permmenu(data?: any): Promise; /** - * 编程 + * program */ program(data?: any): Promise; /** - * 个人信息 + * person */ person(data?: any): Promise; /** - * 文件上传 + * upload */ upload(data?: any): Promise; /** - * 退出 + * logout */ logout(data?: any): Promise; @@ -1220,27 +253,27 @@ declare namespace Eps { interface BaseOpen { /** - * 刷新token + * refreshToken */ refreshToken(data?: any): Promise; /** - * 验证码 + * captcha */ captcha(data?: any): Promise; /** - * 登录 + * login */ login(data?: any): Promise; /** - * 获得网页内容的参数值 + * html */ html(data?: any): Promise; /** - * 实体信息与路径 + * eps */ eps(data?: any): Promise; @@ -1271,27 +304,27 @@ declare namespace Eps { interface BaseSysDepartment { /** - * 删除 + * delete */ delete(data?: any): Promise; /** - * 修改 + * update */ update(data?: any): Promise; /** - * 排序 + * order */ order(data?: any): Promise; /** - * 列表查询 + * list */ list(data?: any): Promise; /** - * 新增 + * add */ add(data?: any): Promise; @@ -1316,22 +349,22 @@ declare namespace Eps { interface BaseSysLog { /** - * 日志保存时间 + * setKeep */ setKeep(data?: any): Promise; /** - * 获得日志保存时间 + * getKeep */ getKeep(data?: any): Promise; /** - * 清理 + * clear */ clear(data?: any): Promise; /** - * 分页查询 + * page */ page(data?: any): Promise<{ pagination: { size: number; page: number; total: number; [key: string]: any }; @@ -1354,47 +387,47 @@ declare namespace Eps { interface BaseSysMenu { /** - * 创建代码 + * create */ create(data?: any): Promise; /** - * 导出 + * export */ export(data?: any): Promise; /** - * 导入 + * import */ import(data?: any): Promise; /** - * 删除 + * delete */ delete(data?: any): Promise; /** - * 修改 + * update */ update(data?: any): Promise; /** - * 解析 + * parse */ parse(data?: any): Promise; /** - * 单个信息 + * info */ info(data?: any): Promise; /** - * 列表查询 + * list */ list(data?: any): Promise; /** - * 分页查询 + * page */ page(data?: any): Promise<{ pagination: { size: number; page: number; total: number; [key: string]: any }; @@ -1403,7 +436,7 @@ declare namespace Eps { }>; /** - * 新增 + * add */ add(data?: any): Promise; @@ -1444,27 +477,27 @@ declare namespace Eps { interface BaseSysParam { /** - * 删除 + * delete */ delete(data?: any): Promise; /** - * 修改 + * update */ update(data?: any): Promise; /** - * 获得网页内容的参数值 + * html */ html(data?: any): Promise; /** - * 单个信息 + * info */ info(data?: any): Promise; /** - * 分页查询 + * page */ page(data?: any): Promise<{ pagination: { size: number; page: number; total: number; [key: string]: any }; @@ -1473,7 +506,7 @@ declare namespace Eps { }>; /** - * 新增 + * add */ add(data?: any): Promise; @@ -1506,27 +539,27 @@ declare namespace Eps { interface BaseSysRole { /** - * 删除 + * delete */ delete(data?: any): Promise; /** - * 修改 + * update */ update(data?: any): Promise; /** - * 单个信息 + * info */ info(data?: any): Promise; /** - * 列表查询 + * list */ list(data?: any): Promise; /** - * 分页查询 + * page */ page(data?: any): Promise<{ pagination: { size: number; page: number; total: number; [key: string]: any }; @@ -1535,7 +568,7 @@ declare namespace Eps { }>; /** - * 新增 + * add */ add(data?: any): Promise; @@ -1568,32 +601,32 @@ declare namespace Eps { interface BaseSysUser { /** - * 删除 + * delete */ delete(data?: any): Promise; /** - * 修改 + * update */ update(data?: any): Promise; /** - * 移动部门 + * move */ move(data?: any): Promise; /** - * 单个信息 + * info */ info(data?: any): Promise; /** - * 列表查询 + * list */ list(data?: any): Promise; /** - * 分页查询 + * page */ page(data?: any): Promise<{ pagination: { size: number; page: number; total: number; [key: string]: any }; @@ -1602,7 +635,7 @@ declare namespace Eps { }>; /** - * 新增 + * add */ add(data?: any): Promise; @@ -1637,27 +670,27 @@ declare namespace Eps { interface DemoGoods { /** - * 删除 + * delete */ delete(data?: any): Promise; /** - * 修改 + * update */ update(data?: any): Promise; /** - * 单个信息 + * info */ info(data?: any): Promise; /** - * 列表查询 + * list */ list(data?: any): Promise; /** - * 分页查询 + * page */ page(data?: any): Promise<{ pagination: { size: number; page: number; total: number; [key: string]: any }; @@ -1666,7 +699,7 @@ declare namespace Eps { }>; /** - * 新增 + * add */ add(data?: any): Promise; @@ -1699,12 +732,12 @@ declare namespace Eps { interface DemoTenant { /** - * 局部不使用多租户 + * noTenant */ noTenant(data?: any): Promise; /** - * 不使用多租户 + * noUse */ noUse(data?: any): Promise; @@ -1728,37 +761,37 @@ declare namespace Eps { interface DictInfo { /** - * 删除 + * delete */ delete(data?: any): Promise; /** - * 修改 + * update */ update(data?: any): Promise; /** - * 获得所有字典类型 + * types */ types(data?: any): Promise; /** - * 获得字典数据 + * data */ data(data?: any): Promise; /** - * 单个信息 + * info */ info(data?: any): Promise; /** - * 列表查询 + * list */ list(data?: any): Promise; /** - * 分页查询 + * page */ page(data?: any): Promise<{ pagination: { size: number; page: number; total: number; [key: string]: any }; @@ -1767,7 +800,7 @@ declare namespace Eps { }>; /** - * 新增 + * add */ add(data?: any): Promise; @@ -1804,27 +837,27 @@ declare namespace Eps { interface DictType { /** - * 删除 + * delete */ delete(data?: any): Promise; /** - * 修改 + * update */ update(data?: any): Promise; /** - * 单个信息 + * info */ info(data?: any): Promise; /** - * 列表查询 + * list */ list(data?: any): Promise; /** - * 分页查询 + * page */ page(data?: any): Promise<{ pagination: { size: number; page: number; total: number; [key: string]: any }; @@ -1833,7 +866,255 @@ declare namespace Eps { }>; /** - * 新增 + * add + */ + add(data?: any): Promise; + + /** + * 权限标识 + */ + permission: { + delete: string; + update: string; + info: string; + list: string; + page: string; + add: string; + }; + + /** + * 权限状态 + */ + _permission: { + delete: boolean; + update: boolean; + info: boolean; + list: boolean; + page: boolean; + add: boolean; + }; + + request: Service["request"]; + } + + interface EducationClass { + /** + * delete + */ + delete(data?: any): Promise; + + /** + * update + */ + update(data?: any): Promise; + + /** + * info + */ + info(data?: any): Promise; + + /** + * list + */ + list(data?: any): Promise; + + /** + * page + */ + page(data?: any): Promise<{ + pagination: { size: number; page: number; total: number; [key: string]: any }; + list: EducationClassEntity[]; + [key: string]: any; + }>; + + /** + * add + */ + add(data?: any): Promise; + + /** + * 权限标识 + */ + permission: { + delete: string; + update: string; + info: string; + list: string; + page: string; + add: string; + }; + + /** + * 权限状态 + */ + _permission: { + delete: boolean; + update: boolean; + info: boolean; + list: boolean; + page: boolean; + add: boolean; + }; + + request: Service["request"]; + } + + interface EducationCourse { + /** + * delete + */ + delete(data?: any): Promise; + + /** + * update + */ + update(data?: any): Promise; + + /** + * info + */ + info(data?: any): Promise; + + /** + * list + */ + list(data?: any): Promise; + + /** + * page + */ + page(data?: any): Promise<{ + pagination: { size: number; page: number; total: number; [key: string]: any }; + list: EducationCourseEntity[]; + [key: string]: any; + }>; + + /** + * add + */ + add(data?: any): Promise; + + /** + * 权限标识 + */ + permission: { + delete: string; + update: string; + info: string; + list: string; + page: string; + add: string; + }; + + /** + * 权限状态 + */ + _permission: { + delete: boolean; + update: boolean; + info: boolean; + list: boolean; + page: boolean; + add: boolean; + }; + + request: Service["request"]; + } + + interface EducationStudent { + /** + * delete + */ + delete(data?: any): Promise; + + /** + * update + */ + update(data?: any): Promise; + + /** + * info + */ + info(data?: any): Promise; + + /** + * list + */ + list(data?: any): Promise; + + /** + * page + */ + page(data?: any): Promise<{ + pagination: { size: number; page: number; total: number; [key: string]: any }; + list: EducationStudentEntity[]; + [key: string]: any; + }>; + + /** + * add + */ + add(data?: any): Promise; + + /** + * 权限标识 + */ + permission: { + delete: string; + update: string; + info: string; + list: string; + page: string; + add: string; + }; + + /** + * 权限状态 + */ + _permission: { + delete: boolean; + update: boolean; + info: boolean; + list: boolean; + page: boolean; + add: boolean; + }; + + request: Service["request"]; + } + + interface EducationTeacher { + /** + * delete + */ + delete(data?: any): Promise; + + /** + * update + */ + update(data?: any): Promise; + + /** + * info + */ + info(data?: any): Promise; + + /** + * list + */ + list(data?: any): Promise; + + /** + * page + */ + page(data?: any): Promise<{ + pagination: { size: number; page: number; total: number; [key: string]: any }; + list: EducationTeacherEntity[]; + [key: string]: any; + }>; + + /** + * add */ add(data?: any): Promise; @@ -1866,32 +1147,32 @@ declare namespace Eps { interface PluginInfo { /** - * 安装插件 + * install */ install(data?: any): Promise; /** - * 删除 + * delete */ delete(data?: any): Promise; /** - * 修改 + * update */ update(data?: any): Promise; /** - * 单个信息 + * info */ info(data?: any): Promise; /** - * 列表查询 + * list */ list(data?: any): Promise; /** - * 分页查询 + * page */ page(data?: any): Promise<{ pagination: { size: number; page: number; total: number; [key: string]: any }; @@ -1900,7 +1181,7 @@ declare namespace Eps { }>; /** - * 新增 + * add */ add(data?: any): Promise; @@ -1935,17 +1216,17 @@ declare namespace Eps { interface RecycleData { /** - * 恢复数据 + * restore */ restore(data?: any): Promise; /** - * 单个信息 + * info */ info(data?: any): Promise; /** - * 分页查询 + * page */ page(data?: any): Promise<{ pagination: { size: number; page: number; total: number; [key: string]: any }; @@ -1968,27 +1249,27 @@ declare namespace Eps { interface ShopCategory { /** - * 删除 + * delete */ delete(data?: any): Promise; /** - * 修改 + * update */ update(data?: any): Promise; /** - * 单个信息 + * info */ info(data?: any): Promise; /** - * 列表查询 + * list */ list(data?: any): Promise; /** - * 分页查询 + * page */ page(data?: any): Promise<{ pagination: { size: number; page: number; total: number; [key: string]: any }; @@ -1997,7 +1278,7 @@ declare namespace Eps { }>; /** - * 新增 + * add */ add(data?: any): Promise; @@ -2030,27 +1311,27 @@ declare namespace Eps { interface ShopComment { /** - * 删除 + * delete */ delete(data?: any): Promise; /** - * 修改 + * update */ update(data?: any): Promise; /** - * 单个信息 + * info */ info(data?: any): Promise; /** - * 列表查询 + * list */ list(data?: any): Promise; /** - * 分页查询 + * page */ page(data?: any): Promise<{ pagination: { size: number; page: number; total: number; [key: string]: any }; @@ -2059,7 +1340,7 @@ declare namespace Eps { }>; /** - * 新增 + * add */ add(data?: any): Promise; @@ -2092,27 +1373,27 @@ declare namespace Eps { interface ShopProduct { /** - * 删除 + * delete */ delete(data?: any): Promise; /** - * 修改 + * update */ update(data?: any): Promise; /** - * 单个信息 + * info */ info(data?: any): Promise; /** - * 列表查询 + * list */ list(data?: any): Promise; /** - * 分页查询 + * page */ page(data?: any): Promise<{ pagination: { size: number; page: number; total: number; [key: string]: any }; @@ -2121,7 +1402,7 @@ declare namespace Eps { }>; /** - * 新增 + * add */ add(data?: any): Promise; @@ -2154,27 +1435,27 @@ declare namespace Eps { interface SpaceInfo { /** - * 删除 + * delete */ delete(data?: any): Promise; /** - * 修改 + * update */ update(data?: any): Promise; /** - * 单个信息 + * info */ info(data?: any): Promise; /** - * 列表查询 + * list */ list(data?: any): Promise; /** - * 分页查询 + * page */ page(data?: any): Promise<{ pagination: { size: number; page: number; total: number; [key: string]: any }; @@ -2183,7 +1464,7 @@ declare namespace Eps { }>; /** - * 新增 + * add */ add(data?: any): Promise; @@ -2216,27 +1497,27 @@ declare namespace Eps { interface SpaceType { /** - * 删除 + * delete */ delete(data?: any): Promise; /** - * 修改 + * update */ update(data?: any): Promise; /** - * 单个信息 + * info */ info(data?: any): Promise; /** - * 列表查询 + * list */ list(data?: any): Promise; /** - * 分页查询 + * page */ page(data?: any): Promise<{ pagination: { size: number; page: number; total: number; [key: string]: any }; @@ -2245,7 +1526,7 @@ declare namespace Eps { }>; /** - * 新增 + * add */ add(data?: any): Promise; @@ -2278,37 +1559,37 @@ declare namespace Eps { interface TaskInfo { /** - * 删除 + * delete */ delete(data?: any): Promise; /** - * 修改 + * update */ update(data?: any): Promise; /** - * 开始 + * start */ start(data?: any): Promise; /** - * 执行一次 + * once */ once(data?: any): Promise; /** - * 停止 + * stop */ stop(data?: any): Promise; /** - * 单个信息 + * info */ info(data?: any): Promise; /** - * 分页查询 + * page */ page(data?: any): Promise<{ pagination: { size: number; page: number; total: number; [key: string]: any }; @@ -2317,12 +1598,12 @@ declare namespace Eps { }>; /** - * 日志 + * log */ log(data?: any): Promise; /** - * 新增 + * add */ add(data?: any): Promise; @@ -2361,27 +1642,27 @@ declare namespace Eps { interface UserAddress { /** - * 删除 + * delete */ delete(data?: any): Promise; /** - * 修改 + * update */ update(data?: any): Promise; /** - * 单个信息 + * info */ info(data?: any): Promise; /** - * 列表查询 + * list */ list(data?: any): Promise; /** - * 分页查询 + * page */ page(data?: any): Promise<{ pagination: { size: number; page: number; total: number; [key: string]: any }; @@ -2390,7 +1671,7 @@ declare namespace Eps { }>; /** - * 新增 + * add */ add(data?: any): Promise; @@ -2423,27 +1704,27 @@ declare namespace Eps { interface UserInfo { /** - * 删除 + * delete */ delete(data?: any): Promise; /** - * 修改 + * update */ update(data?: any): Promise; /** - * 单个信息 + * info */ info(data?: any): Promise; /** - * 列表查询 + * list */ list(data?: any): Promise; /** - * 分页查询 + * page */ page(data?: any): Promise<{ pagination: { size: number; page: number; total: number; [key: string]: any }; @@ -2452,7 +1733,7 @@ declare namespace Eps { }>; /** - * 新增 + * add */ add(data?: any): Promise; @@ -2516,6 +1797,12 @@ declare namespace Eps { }; demo: { goods: DemoGoods; tenant: DemoTenant }; dict: { info: DictInfo; type: DictType }; + education: { + class: EducationClass; + course: EducationCourse; + student: EducationStudent; + teacher: EducationTeacher; + }; plugin: { info: PluginInfo }; recycle: { data: RecycleData }; shop: { category: ShopCategory; comment: ShopComment; product: ShopProduct }; diff --git a/build/cool/eps.json b/build/cool/eps.json index 7786fa8..c82320e 100644 --- a/build/cool/eps.json +++ b/build/cool/eps.json @@ -1 +1 @@ -[{"prefix":"/admin/base/coding","name":"","api":[{"method":"get","path":"/getModuleTree"},{"method":"post","path":"/createCode"}],"search":{"fieldEq":[],"fieldLike":[],"keyWordLikeFields":[]}},{"prefix":"/admin/base/comm","name":"","api":[{"method":"post","path":"/personUpdate"},{"method":"get","path":"/uploadMode"},{"method":"get","path":"/permmenu"},{"method":"get","path":"/program"},{"method":"get","path":"/person"},{"method":"post","path":"/upload"},{"method":"post","path":"/logout"}],"search":{"fieldEq":[],"fieldLike":[],"keyWordLikeFields":[]}},{"prefix":"/admin/base/open","name":"","api":[{"method":"get","path":"/refreshToken"},{"method":"get","path":"/captcha"},{"method":"post","path":"/login"},{"method":"get","path":"/html"},{"method":"get","path":"/eps"}],"search":{"fieldEq":[],"fieldLike":[],"keyWordLikeFields":[]}},{"prefix":"/admin/base/sys/department","name":"BaseSysDepartmentEntity","api":[{"method":"post","path":"/delete"},{"method":"post","path":"/update"},{"method":"post","path":"/order"},{"method":"post","path":"/list"},{"method":"post","path":"/add"}],"search":{"fieldEq":[],"fieldLike":[],"keyWordLikeFields":[]}},{"prefix":"/admin/base/sys/log","name":"BaseSysLogEntity","api":[{"method":"post","path":"/setKeep"},{"method":"get","path":"/getKeep"},{"method":"post","path":"/clear"},{"method":"post","path":"/page"}],"search":{"fieldEq":[],"fieldLike":[],"keyWordLikeFields":[{"propertyName":"name","type":"string","length":"","comment":"姓名","nullable":true,"source":"b.name"},{"propertyName":"action","type":"string","length":"","comment":"行为","nullable":false,"source":"a.action"},{"propertyName":"ip","type":"string","length":"","comment":"ip","nullable":true,"source":"a.ip"}]}},{"prefix":"/admin/base/sys/menu","name":"BaseSysMenuEntity","api":[{"method":"post","path":"/create"},{"method":"post","path":"/export"},{"method":"post","path":"/import"},{"method":"post","path":"/delete"},{"method":"post","path":"/update"},{"method":"post","path":"/parse"},{"method":"get","path":"/info"},{"method":"post","path":"/list"},{"method":"post","path":"/page"},{"method":"post","path":"/add"}],"search":{"fieldEq":[],"fieldLike":[],"keyWordLikeFields":[]}},{"prefix":"/admin/base/sys/param","name":"BaseSysParamEntity","api":[{"method":"post","path":"/delete"},{"method":"post","path":"/update"},{"method":"get","path":"/html"},{"method":"get","path":"/info"},{"method":"post","path":"/page"},{"method":"post","path":"/add"}],"search":{"fieldEq":[{"propertyName":"dataType","type":"number","length":"","comment":"数据类型 0-字符串 1-富文本 2-文件 ","nullable":false,"defaultValue":0,"source":"a.dataType"}],"fieldLike":[],"keyWordLikeFields":[{"propertyName":"name","type":"string","length":"","comment":"名称","nullable":false,"source":"a.name"},{"propertyName":"keyName","type":"string","length":"","comment":"键","nullable":false,"source":"a.keyName"}]}},{"prefix":"/admin/base/sys/role","name":"BaseSysRoleEntity","api":[{"method":"post","path":"/delete"},{"method":"post","path":"/update"},{"method":"get","path":"/info"},{"method":"post","path":"/list"},{"method":"post","path":"/page"},{"method":"post","path":"/add"}],"search":{"fieldEq":[],"fieldLike":[],"keyWordLikeFields":[{"propertyName":"name","type":"string","length":"","comment":"名称","nullable":false,"source":"a.name"},{"propertyName":"label","type":"string","length":"50","comment":"角色标签","nullable":true,"source":"a.label"}]}},{"prefix":"/admin/base/sys/user","name":"BaseSysUserEntity","api":[{"method":"post","path":"/delete"},{"method":"post","path":"/update"},{"method":"post","path":"/move"},{"method":"get","path":"/info"},{"method":"post","path":"/list"},{"method":"post","path":"/page"},{"method":"post","path":"/add"}],"search":{"fieldEq":[],"fieldLike":[],"keyWordLikeFields":[]}},{"prefix":"/admin/demo/goods","name":"DemoGoodsEntity","api":[{"method":"post","path":"/delete"},{"method":"post","path":"/update"},{"method":"get","path":"/info"},{"method":"post","path":"/list"},{"method":"post","path":"/page"},{"method":"post","path":"/add"}],"search":{"fieldEq":[{"propertyName":"status","type":"number","length":"","comment":"状态","nullable":false,"defaultValue":1,"dict":["禁用","启用"],"source":"a.status"}],"fieldLike":[{"propertyName":"title","type":"string","length":"50","comment":"标题","nullable":false,"source":"a.title"}],"keyWordLikeFields":[{"propertyName":"description","type":"string","length":"","comment":"描述","nullable":true,"source":"a.description"}]}},{"prefix":"/admin/demo/tenant","name":"DemoGoodsEntity","api":[{"method":"post","path":"/noTenant"},{"method":"post","path":"/noUse"},{"method":"post","path":"/use"}],"search":{"fieldEq":[],"fieldLike":[],"keyWordLikeFields":[]}},{"prefix":"/admin/dict/info","name":"DictInfoEntity","api":[{"method":"post","path":"/delete"},{"method":"post","path":"/update"},{"method":"get","path":"/types"},{"method":"post","path":"/data"},{"method":"get","path":"/info"},{"method":"post","path":"/list"},{"method":"post","path":"/page"},{"method":"post","path":"/add"}],"search":{"fieldEq":[],"fieldLike":[],"keyWordLikeFields":[]}},{"prefix":"/admin/dict/type","name":"DictTypeEntity","api":[{"method":"post","path":"/delete"},{"method":"post","path":"/update"},{"method":"get","path":"/info"},{"method":"post","path":"/list"},{"method":"post","path":"/page"},{"method":"post","path":"/add"}],"search":{"fieldEq":[],"fieldLike":[],"keyWordLikeFields":[]}},{"prefix":"/admin/plugin/info","name":"PluginInfoEntity","api":[{"method":"post","path":"/install"},{"method":"post","path":"/delete"},{"method":"post","path":"/update"},{"method":"get","path":"/info"},{"method":"post","path":"/list"},{"method":"post","path":"/page"},{"method":"post","path":"/add"}],"search":{"fieldEq":[],"fieldLike":[],"keyWordLikeFields":[]}},{"prefix":"/admin/recycle/data","name":"RecycleDataEntity","api":[{"method":"post","path":"/restore"},{"method":"get","path":"/info"},{"method":"post","path":"/page"}],"search":{"fieldEq":[],"fieldLike":[],"keyWordLikeFields":[{"propertyName":"userName","type":"string","length":"","comment":"姓名","nullable":true,"source":"b.name"},{"propertyName":"url","type":"string","length":"","comment":"请求的接口","nullable":true,"source":"a.url"}]}},{"prefix":"/admin/shop/category","name":"ShopCategoryEntity","api":[{"method":"post","path":"/delete"},{"method":"post","path":"/update"},{"method":"get","path":"/info"},{"method":"post","path":"/list"},{"method":"post","path":"/page"},{"method":"post","path":"/add"}],"search":{"fieldEq":[],"fieldLike":[],"keyWordLikeFields":[{"propertyName":"name","type":"string","length":"255","comment":"名称","nullable":false,"source":"a.name"}]}},{"prefix":"/admin/shop/comment","name":"ShopCommentEntity","api":[{"method":"post","path":"/delete"},{"method":"post","path":"/update"},{"method":"get","path":"/info"},{"method":"post","path":"/list"},{"method":"post","path":"/page"},{"method":"post","path":"/add"}],"search":{"fieldEq":[],"fieldLike":[],"keyWordLikeFields":[{"propertyName":"content","type":"text","length":"","comment":"内容","nullable":false,"source":"a.content"}]}},{"prefix":"/admin/shop/product","name":"ShopProductEntity","api":[{"method":"post","path":"/delete"},{"method":"post","path":"/update"},{"method":"get","path":"/info"},{"method":"post","path":"/list"},{"method":"post","path":"/page"},{"method":"post","path":"/add"}],"search":{"fieldEq":[],"fieldLike":[],"keyWordLikeFields":[{"propertyName":"name","type":"string","length":"255","comment":"名称","nullable":false,"source":"a.name"},{"propertyName":"brand","type":"string","length":"255","comment":"品牌","nullable":true,"source":"a.brand"}]}},{"prefix":"/admin/space/info","name":"SpaceInfoEntity","api":[{"method":"post","path":"/delete"},{"method":"post","path":"/update"},{"method":"get","path":"/info"},{"method":"post","path":"/list"},{"method":"post","path":"/page"},{"method":"post","path":"/add"}],"search":{"fieldEq":[{"propertyName":"type","type":"string","length":"","comment":"类型","nullable":false,"source":"a.type"},{"propertyName":"classifyId","type":"number","length":"","comment":"分类ID","nullable":true,"source":"a.classifyId"}],"fieldLike":[],"keyWordLikeFields":[]}},{"prefix":"/admin/space/type","name":"SpaceTypeEntity","api":[{"method":"post","path":"/delete"},{"method":"post","path":"/update"},{"method":"get","path":"/info"},{"method":"post","path":"/list"},{"method":"post","path":"/page"},{"method":"post","path":"/add"}],"search":{"fieldEq":[],"fieldLike":[],"keyWordLikeFields":[]}},{"prefix":"/admin/task/info","name":"TaskInfoEntity","api":[{"method":"post","path":"/delete"},{"method":"post","path":"/update"},{"method":"post","path":"/start"},{"method":"post","path":"/once"},{"method":"post","path":"/stop"},{"method":"get","path":"/info"},{"method":"post","path":"/page"},{"method":"get","path":"/log"},{"method":"post","path":"/add"}],"search":{"fieldEq":[{"propertyName":"status","type":"number","length":"","comment":"状态 0-停止 1-运行","nullable":false,"defaultValue":1,"source":"a.status"},{"propertyName":"type","type":"number","length":"","comment":"状态 0-系统 1-用户","nullable":false,"defaultValue":0,"source":"a.type"}],"fieldLike":[],"keyWordLikeFields":[]}},{"prefix":"/admin/user/address","name":"UserAddressEntity","api":[{"method":"post","path":"/delete"},{"method":"post","path":"/update"},{"method":"get","path":"/info"},{"method":"post","path":"/list"},{"method":"post","path":"/page"},{"method":"post","path":"/add"}],"search":{"fieldEq":[],"fieldLike":[],"keyWordLikeFields":[]}},{"prefix":"/admin/user/info","name":"UserInfoEntity","api":[{"method":"post","path":"/delete"},{"method":"post","path":"/update"},{"method":"get","path":"/info"},{"method":"post","path":"/list"},{"method":"post","path":"/page"},{"method":"post","path":"/add"}],"search":{"fieldEq":[{"propertyName":"status","type":"number","length":"","comment":"状态","nullable":false,"defaultValue":1,"dict":["禁用","正常","已注销"],"source":"a.status"},{"propertyName":"gender","type":"number","length":"","comment":"性别","nullable":false,"defaultValue":0,"dict":["未知","男","女"],"source":"a.gender"},{"propertyName":"loginType","type":"number","length":"","comment":"登录方式","nullable":false,"defaultValue":0,"dict":["小程序","公众号","H5"],"source":"a.loginType"}],"fieldLike":[],"keyWordLikeFields":[{"propertyName":"nickName","type":"string","length":"","comment":"昵称","nullable":true,"source":"a.nickName"},{"propertyName":"phone","type":"string","length":"","comment":"手机号","nullable":true,"source":"a.phone"}]}}] \ No newline at end of file +[{"prefix":"/admin/base/coding","name":"","api":[{"method":"get","path":"/getModuleTree"},{"method":"post","path":"/createCode"}],"search":{"fieldEq":[],"fieldLike":[],"keyWordLikeFields":[]}},{"prefix":"/admin/base/comm","name":"","api":[{"method":"post","path":"/personUpdate"},{"method":"get","path":"/uploadMode"},{"method":"get","path":"/permmenu"},{"method":"get","path":"/program"},{"method":"get","path":"/person"},{"method":"post","path":"/upload"},{"method":"post","path":"/logout"}],"search":{"fieldEq":[],"fieldLike":[],"keyWordLikeFields":[]}},{"prefix":"/admin/base/open","name":"","api":[{"method":"get","path":"/refreshToken"},{"method":"get","path":"/captcha"},{"method":"post","path":"/login"},{"method":"get","path":"/html"},{"method":"get","path":"/eps"}],"search":{"fieldEq":[],"fieldLike":[],"keyWordLikeFields":[]}},{"prefix":"/admin/base/sys/department","name":"BaseSysDepartmentEntity","api":[{"method":"post","path":"/delete"},{"method":"post","path":"/update"},{"method":"post","path":"/order"},{"method":"post","path":"/list"},{"method":"post","path":"/add"}],"search":{"fieldEq":[],"fieldLike":[],"keyWordLikeFields":[]}},{"prefix":"/admin/base/sys/log","name":"BaseSysLogEntity","api":[{"method":"post","path":"/setKeep"},{"method":"get","path":"/getKeep"},{"method":"post","path":"/clear"},{"method":"post","path":"/page"}],"search":{"fieldEq":[],"fieldLike":[],"keyWordLikeFields":[{"propertyName":"name","type":"string","length":"","comment":"姓名","nullable":true,"source":"b.name"},{"propertyName":"action","type":"string","length":"","comment":"行为","nullable":false,"source":"a.action"},{"propertyName":"ip","type":"string","length":"","comment":"ip","nullable":true,"source":"a.ip"}]}},{"prefix":"/admin/base/sys/menu","name":"BaseSysMenuEntity","api":[{"method":"post","path":"/create"},{"method":"post","path":"/export"},{"method":"post","path":"/import"},{"method":"post","path":"/delete"},{"method":"post","path":"/update"},{"method":"post","path":"/parse"},{"method":"get","path":"/info"},{"method":"post","path":"/list"},{"method":"post","path":"/page"},{"method":"post","path":"/add"}],"search":{"fieldEq":[],"fieldLike":[],"keyWordLikeFields":[]}},{"prefix":"/admin/base/sys/param","name":"BaseSysParamEntity","api":[{"method":"post","path":"/delete"},{"method":"post","path":"/update"},{"method":"get","path":"/html"},{"method":"get","path":"/info"},{"method":"post","path":"/page"},{"method":"post","path":"/add"}],"search":{"fieldEq":[{"propertyName":"dataType","type":"number","length":"","comment":"数据类型 0-字符串 1-富文本 2-文件 ","nullable":false,"defaultValue":0,"source":"a.dataType"}],"fieldLike":[],"keyWordLikeFields":[{"propertyName":"name","type":"string","length":"","comment":"名称","nullable":false,"source":"a.name"},{"propertyName":"keyName","type":"string","length":"","comment":"键","nullable":false,"source":"a.keyName"}]}},{"prefix":"/admin/base/sys/role","name":"BaseSysRoleEntity","api":[{"method":"post","path":"/delete"},{"method":"post","path":"/update"},{"method":"get","path":"/info"},{"method":"post","path":"/list"},{"method":"post","path":"/page"},{"method":"post","path":"/add"}],"search":{"fieldEq":[],"fieldLike":[],"keyWordLikeFields":[{"propertyName":"name","type":"string","length":"","comment":"名称","nullable":false,"source":"a.name"},{"propertyName":"label","type":"string","length":"50","comment":"角色标签","nullable":true,"source":"a.label"}]}},{"prefix":"/admin/base/sys/user","name":"BaseSysUserEntity","api":[{"method":"post","path":"/delete"},{"method":"post","path":"/update"},{"method":"post","path":"/move"},{"method":"get","path":"/info"},{"method":"post","path":"/list"},{"method":"post","path":"/page"},{"method":"post","path":"/add"}],"search":{"fieldEq":[],"fieldLike":[],"keyWordLikeFields":[]}},{"prefix":"/admin/demo/goods","name":"DemoGoodsEntity","api":[{"method":"post","path":"/delete"},{"method":"post","path":"/update"},{"method":"get","path":"/info"},{"method":"post","path":"/list"},{"method":"post","path":"/page"},{"method":"post","path":"/add"}],"search":{"fieldEq":[{"propertyName":"status","type":"number","length":"","comment":"状态","nullable":false,"defaultValue":1,"dict":["禁用","启用"],"source":"a.status"}],"fieldLike":[{"propertyName":"title","type":"string","length":"50","comment":"标题","nullable":false,"source":"a.title"}],"keyWordLikeFields":[{"propertyName":"description","type":"string","length":"","comment":"描述","nullable":true,"source":"a.description"}]}},{"prefix":"/admin/demo/tenant","name":"DemoGoodsEntity","api":[{"method":"post","path":"/noTenant"},{"method":"post","path":"/noUse"},{"method":"post","path":"/use"}],"search":{"fieldEq":[],"fieldLike":[],"keyWordLikeFields":[]}},{"prefix":"/admin/dict/info","name":"DictInfoEntity","api":[{"method":"post","path":"/delete"},{"method":"post","path":"/update"},{"method":"get","path":"/types"},{"method":"post","path":"/data"},{"method":"get","path":"/info"},{"method":"post","path":"/list"},{"method":"post","path":"/page"},{"method":"post","path":"/add"}],"search":{"fieldEq":[],"fieldLike":[],"keyWordLikeFields":[]}},{"prefix":"/admin/dict/type","name":"DictTypeEntity","api":[{"method":"post","path":"/delete"},{"method":"post","path":"/update"},{"method":"get","path":"/info"},{"method":"post","path":"/list"},{"method":"post","path":"/page"},{"method":"post","path":"/add"}],"search":{"fieldEq":[],"fieldLike":[],"keyWordLikeFields":[]}},{"prefix":"/admin/education/class","name":"EducationClassEntity","api":[{"method":"post","path":"/delete"},{"method":"post","path":"/update"},{"method":"get","path":"/info"},{"method":"post","path":"/list"},{"method":"post","path":"/page"},{"method":"post","path":"/add"}],"search":{"fieldEq":[{"propertyName":"grade","type":"number","length":"","comment":"所属年级","nullable":false,"defaultValue":0,"dict":["小学","初中","高中"],"source":"a.grade"},{"propertyName":"teacherId","type":"number","length":"","comment":"班主任ID","nullable":false,"source":"a.teacherId"}],"fieldLike":[],"keyWordLikeFields":[{"propertyName":"name","type":"string","length":"50","comment":"名称","nullable":false,"source":"a.name"}]}},{"prefix":"/admin/education/course","name":"EducationCourseEntity","api":[{"method":"post","path":"/delete"},{"method":"post","path":"/update"},{"method":"get","path":"/info"},{"method":"post","path":"/list"},{"method":"post","path":"/page"},{"method":"post","path":"/add"}],"search":{"fieldEq":[{"propertyName":"type","type":"number","length":"","comment":"课程类型","nullable":false,"defaultValue":0,"dict":["必修","选修"],"source":"a.type"},{"propertyName":"teacherId","type":"number","length":"","comment":"教师ID","nullable":false,"source":"a.teacherId"}],"fieldLike":[],"keyWordLikeFields":[{"propertyName":"name","type":"string","length":"50","comment":"名称","nullable":false,"source":"a.name"}]}},{"prefix":"/admin/education/student","name":"EducationStudentEntity","api":[{"method":"post","path":"/delete"},{"method":"post","path":"/update"},{"method":"get","path":"/info"},{"method":"post","path":"/list"},{"method":"post","path":"/page"},{"method":"post","path":"/add"}],"search":{"fieldEq":[{"propertyName":"gender","type":"number","length":"","comment":"性别","nullable":false,"defaultValue":0,"dict":["男","女","未知"],"source":"a.gender"},{"propertyName":"classId","type":"number","length":"","comment":"班级ID","nullable":false,"source":"a.classId"}],"fieldLike":[],"keyWordLikeFields":[{"propertyName":"name","type":"string","length":"50","comment":"姓名","nullable":false,"source":"a.name"},{"propertyName":"studentNo","type":"string","length":"20","comment":"学号","nullable":false,"source":"a.studentNo"}]}},{"prefix":"/admin/education/teacher","name":"EducationTeacherEntity","api":[{"method":"post","path":"/delete"},{"method":"post","path":"/update"},{"method":"get","path":"/info"},{"method":"post","path":"/list"},{"method":"post","path":"/page"},{"method":"post","path":"/add"}],"search":{"fieldEq":[{"propertyName":"title","type":"number","length":"","comment":"职称","nullable":false,"defaultValue":0,"dict":["初级","中级","高级"],"source":"a.title"},{"propertyName":"gender","type":"number","length":"","comment":"性别","nullable":false,"defaultValue":0,"dict":["男","女","未知"],"source":"a.gender"}],"fieldLike":[],"keyWordLikeFields":[{"propertyName":"name","type":"string","length":"50","comment":"姓名","nullable":false,"source":"a.name"}]}},{"prefix":"/admin/plugin/info","name":"PluginInfoEntity","api":[{"method":"post","path":"/install"},{"method":"post","path":"/delete"},{"method":"post","path":"/update"},{"method":"get","path":"/info"},{"method":"post","path":"/list"},{"method":"post","path":"/page"},{"method":"post","path":"/add"}],"search":{"fieldEq":[],"fieldLike":[],"keyWordLikeFields":[]}},{"prefix":"/admin/recycle/data","name":"RecycleDataEntity","api":[{"method":"post","path":"/restore"},{"method":"get","path":"/info"},{"method":"post","path":"/page"}],"search":{"fieldEq":[],"fieldLike":[],"keyWordLikeFields":[{"propertyName":"userName","type":"string","length":"","comment":"姓名","nullable":true,"source":"b.name"},{"propertyName":"url","type":"string","length":"","comment":"请求的接口","nullable":true,"source":"a.url"}]}},{"prefix":"/admin/shop/category","name":"ShopCategoryEntity","api":[{"method":"post","path":"/delete"},{"method":"post","path":"/update"},{"method":"get","path":"/info"},{"method":"post","path":"/list"},{"method":"post","path":"/page"},{"method":"post","path":"/add"}],"search":{"fieldEq":[],"fieldLike":[],"keyWordLikeFields":[{"propertyName":"name","type":"string","length":"255","comment":"名称","nullable":false,"source":"a.name"}]}},{"prefix":"/admin/shop/comment","name":"ShopCommentEntity","api":[{"method":"post","path":"/delete"},{"method":"post","path":"/update"},{"method":"get","path":"/info"},{"method":"post","path":"/list"},{"method":"post","path":"/page"},{"method":"post","path":"/add"}],"search":{"fieldEq":[],"fieldLike":[],"keyWordLikeFields":[{"propertyName":"content","type":"text","length":"","comment":"内容","nullable":false,"source":"a.content"}]}},{"prefix":"/admin/shop/product","name":"ShopProductEntity","api":[{"method":"post","path":"/delete"},{"method":"post","path":"/update"},{"method":"get","path":"/info"},{"method":"post","path":"/list"},{"method":"post","path":"/page"},{"method":"post","path":"/add"}],"search":{"fieldEq":[{"propertyName":"categoryId","type":"number","length":"","comment":"分类ID","nullable":false,"source":"a.categoryId"}],"fieldLike":[],"keyWordLikeFields":[{"propertyName":"name","type":"string","length":"255","comment":"名称","nullable":false,"source":"a.name"},{"propertyName":"brand","type":"string","length":"255","comment":"品牌","nullable":true,"source":"a.brand"}]}},{"prefix":"/admin/space/info","name":"SpaceInfoEntity","api":[{"method":"post","path":"/delete"},{"method":"post","path":"/update"},{"method":"get","path":"/info"},{"method":"post","path":"/list"},{"method":"post","path":"/page"},{"method":"post","path":"/add"}],"search":{"fieldEq":[{"propertyName":"type","type":"string","length":"","comment":"类型","nullable":false,"source":"a.type"},{"propertyName":"classifyId","type":"number","length":"","comment":"分类ID","nullable":true,"source":"a.classifyId"}],"fieldLike":[],"keyWordLikeFields":[]}},{"prefix":"/admin/space/type","name":"SpaceTypeEntity","api":[{"method":"post","path":"/delete"},{"method":"post","path":"/update"},{"method":"get","path":"/info"},{"method":"post","path":"/list"},{"method":"post","path":"/page"},{"method":"post","path":"/add"}],"search":{"fieldEq":[],"fieldLike":[],"keyWordLikeFields":[]}},{"prefix":"/admin/task/info","name":"TaskInfoEntity","api":[{"method":"post","path":"/delete"},{"method":"post","path":"/update"},{"method":"post","path":"/start"},{"method":"post","path":"/once"},{"method":"post","path":"/stop"},{"method":"get","path":"/info"},{"method":"post","path":"/page"},{"method":"get","path":"/log"},{"method":"post","path":"/add"}],"search":{"fieldEq":[{"propertyName":"status","type":"number","length":"","comment":"状态 0-停止 1-运行","nullable":false,"defaultValue":1,"source":"a.status"},{"propertyName":"type","type":"number","length":"","comment":"状态 0-系统 1-用户","nullable":false,"defaultValue":0,"source":"a.type"}],"fieldLike":[],"keyWordLikeFields":[]}},{"prefix":"/admin/user/address","name":"UserAddressEntity","api":[{"method":"post","path":"/delete"},{"method":"post","path":"/update"},{"method":"get","path":"/info"},{"method":"post","path":"/list"},{"method":"post","path":"/page"},{"method":"post","path":"/add"}],"search":{"fieldEq":[],"fieldLike":[],"keyWordLikeFields":[]}},{"prefix":"/admin/user/info","name":"UserInfoEntity","api":[{"method":"post","path":"/delete"},{"method":"post","path":"/update"},{"method":"get","path":"/info"},{"method":"post","path":"/list"},{"method":"post","path":"/page"},{"method":"post","path":"/add"}],"search":{"fieldEq":[{"propertyName":"status","type":"number","length":"","comment":"状态","nullable":false,"defaultValue":1,"dict":["禁用","正常","已注销"],"source":"a.status"},{"propertyName":"gender","type":"number","length":"","comment":"性别","nullable":false,"defaultValue":0,"dict":["未知","男","女"],"source":"a.gender"},{"propertyName":"loginType","type":"number","length":"","comment":"登录方式","nullable":false,"defaultValue":0,"dict":["小程序","公众号","H5"],"source":"a.loginType"}],"fieldLike":[],"keyWordLikeFields":[{"propertyName":"nickName","type":"string","length":"","comment":"昵称","nullable":true,"source":"a.nickName"},{"propertyName":"phone","type":"string","length":"","comment":"手机号","nullable":true,"source":"a.phone"}]}}] \ No newline at end of file diff --git a/packages/crud/src/entry.ts b/packages/crud/src/entry.ts index c94b6cd..07562c1 100644 --- a/packages/crud/src/entry.ts +++ b/packages/crud/src/entry.ts @@ -1,4 +1,4 @@ -import type { App } from "vue"; +import { type App } from "vue"; import { useComponent } from "./components"; import { useProvide } from "./provide"; import global from "./utils/global"; diff --git a/src/config/proxy.ts b/src/config/proxy.ts index 4f4e5db..a6735ee 100644 --- a/src/config/proxy.ts +++ b/src/config/proxy.ts @@ -1,6 +1,6 @@ const proxy = { '/dev/': { - target: 'http://127.0.0.1:8001', + target: 'http://127.0.0.1:8888', changeOrigin: true, rewrite: (path: string) => path.replace(/^\/dev/, '') }, @@ -12,7 +12,7 @@ const proxy = { } }; -const value = 'dev'; +const value = 'prod'; const host = proxy[`/${value}/`]?.target; export { proxy, host, value }; diff --git a/src/modules/demo/config.ts b/src/modules/demo/config.ts index d9c8b31..13c4911 100644 --- a/src/modules/demo/config.ts +++ b/src/modules/demo/config.ts @@ -21,13 +21,6 @@ export default (): ModuleConfig => { label: '动态路由参数' }, component: () => import('./views/test/route.vue') - }, - { - path: '/demo/test/crud', - meta: { - label: '测试' - }, - component: () => import('./views/test/crud.vue') } ] }; diff --git a/src/modules/demo/views/test/crud.vue b/src/modules/demo/views/test/crud.vue deleted file mode 100644 index 958bd79..0000000 --- a/src/modules/demo/views/test/crud.vue +++ /dev/null @@ -1,205 +0,0 @@ - - - diff --git a/src/modules/helper/hooks/ai.ts b/src/modules/helper/hooks/ai.ts deleted file mode 100644 index 070e0c9..0000000 --- a/src/modules/helper/hooks/ai.ts +++ /dev/null @@ -1,102 +0,0 @@ -import { module } from '/@/cool'; -import { useBase } from '/$/base'; - -export function useAi() { - const { api } = module.config('helper'); - const { user } = useBase(); - - // 调用流程 - async function invokeFlow( - label: string, - params: any, - streamCb?: ({ isEnd, content }: { isEnd: boolean; content: string }) => void - ): Promise { - const stream = !!streamCb; - - let cacheText = ''; - - return new Promise((resolve, reject) => { - fetch(api + '/open/code/gen/data', { - method: 'POST', - headers: { - Authorization: user.token, - 'Content-Type': 'application/json' - }, - body: JSON.stringify({ - params, - label, - stream - }) - }) - .then(res => { - if (res.body) { - if (stream) { - const reader = res.body.getReader(); - const decoder = new TextDecoder('utf-8'); - const stream = new ReadableStream({ - start(controller) { - function push() { - reader.read().then(({ done, value }) => { - if (done) { - controller.close(); - return; - } - - let text = decoder.decode(value, { stream: true }); - - if (streamCb) { - if (cacheText) { - text = cacheText + text; - } - - if (text.indexOf('data:') == 0) { - text = '\n\n' + text; - } - - try { - const arr = text - .split(/\n\ndata:/g) - .filter(Boolean) - .map(e => JSON.parse(e)); - - arr.forEach(streamCb); - - cacheText = ''; - } catch (err) { - cacheText = text; - } - } - - controller.enqueue(text); - push(); - }); - } - push(); - } - }); - - return new Response(stream); - } else { - return res.json(); - } - } - }) - .then(res => { - if (stream) { - return res; - } - - if (res.code == 1000) { - resolve(res.data.result); - } else { - reject(res); - } - }) - .catch(reject); - }); - } - - return { - invokeFlow - }; -} diff --git a/src/modules/helper/hooks/index.ts b/src/modules/helper/hooks/index.ts index 17c1432..8267df7 100644 --- a/src/modules/helper/hooks/index.ts +++ b/src/modules/helper/hooks/index.ts @@ -1,2 +1 @@ -export * from './ai'; export * from './menu';