From 40bfe138f08fb92ce28ba7a3fb783eb1d76af56b Mon Sep 17 00:00:00 2001 From: GoCo Date: Tue, 2 Sep 2025 03:00:23 +0800 Subject: [PATCH] =?UTF-8?q?feat:=20=F0=9F=8E=B8=20=E8=AF=BE=E7=A8=8B?= =?UTF-8?q?=E5=A2=9E=E5=8A=A0=20ai=E4=BC=B4=E5=AD=A6=20=E5=AD=97=E6=AE=B5?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../jeecg/modules/aiol/entity/AiolCourse.java | 54 ++++++++++--------- .../src/views/aiol/AiolCourse.data.ts | 11 ++++ 2 files changed, 40 insertions(+), 25 deletions(-) diff --git a/jeecg-boot/jeecg-boot-module/jeecg-module-aiol/src/main/java/org/jeecg/modules/aiol/entity/AiolCourse.java b/jeecg-boot/jeecg-boot-module/jeecg-module-aiol/src/main/java/org/jeecg/modules/aiol/entity/AiolCourse.java index 36701124..e4bb2766 100644 --- a/jeecg-boot/jeecg-boot-module/jeecg-module-aiol/src/main/java/org/jeecg/modules/aiol/entity/AiolCourse.java +++ b/jeecg-boot/jeecg-boot-module/jeecg-module-aiol/src/main/java/org/jeecg/modules/aiol/entity/AiolCourse.java @@ -22,7 +22,7 @@ import lombok.experimental.Accessors; /** * @Description: 课程 * @Author: jeecg-boot - * @Date: 2025-08-31 + * @Date: 2025-09-02 * @Version: V1.0 */ @Data @@ -36,105 +36,109 @@ public class AiolCourse implements Serializable { /**主键*/ @TableId(type = IdType.ASSIGN_ID) @Schema(description = "主键") - private String id; + private java.lang.String id; /**课程名*/ @Excel(name = "课程名", width = 15) @Schema(description = "课程名") - private String name; + private java.lang.String name; /**封面图*/ @Excel(name = "封面图", width = 15) @Schema(description = "封面图") - private String cover; + private java.lang.String cover; /**介绍视频*/ @Excel(name = "介绍视频", width = 15) @Schema(description = "介绍视频") - private String video; + private java.lang.String video; /**学校*/ @Excel(name = "学校", width = 15) @Schema(description = "学校") - private String school; + private java.lang.String school; /**课程概述*/ @Excel(name = "课程概述", width = 15) @Schema(description = "课程概述") - private String description; + private java.lang.String description; /**课程类型*/ @Excel(name = "课程类型", width = 15, dicCode = "course_type") @Dict(dicCode = "course_type") @Schema(description = "课程类型") - private Integer type; + private java.lang.Integer type; /**授课目标*/ @Excel(name = "授课目标", width = 15) @Schema(description = "授课目标") - private String target; + private java.lang.String target; /**课程难度*/ @Excel(name = "课程难度", width = 15, dicCode = "course_difficulty") @Dict(dicCode = "course_difficulty") @Schema(description = "课程难度") - private Integer difficulty; + private java.lang.Integer difficulty; /**所属专题*/ @Excel(name = "所属专题", width = 15, dicCode = "course_subject") @Dict(dicCode = "course_subject") @Schema(description = "所属专题") - private String subject; + private java.lang.String subject; /**课程大纲*/ @Excel(name = "课程大纲", width = 15) @Schema(description = "课程大纲") - private String outline; + private java.lang.String outline; /**预备知识*/ @Excel(name = "预备知识", width = 15) @Schema(description = "预备知识") - private String prerequisite; + private java.lang.String prerequisite; /**参考资料*/ @Excel(name = "参考资料", width = 15) @Schema(description = "参考资料") - private String reference; + private java.lang.String reference; /**学时安排*/ @Excel(name = "学时安排", width = 15) @Schema(description = "学时安排") - private String arrangement; + private java.lang.String arrangement; /**开课时间*/ @Excel(name = "开课时间", width = 20, format = "yyyy-MM-dd HH:mm:ss") @JsonFormat(timezone = "GMT+8",pattern = "yyyy-MM-dd HH:mm:ss") @DateTimeFormat(pattern="yyyy-MM-dd HH:mm:ss") @Schema(description = "开课时间") - private Date startTime; + private java.util.Date startTime; /**结课时间*/ @Excel(name = "结课时间", width = 20, format = "yyyy-MM-dd HH:mm:ss") @JsonFormat(timezone = "GMT+8",pattern = "yyyy-MM-dd HH:mm:ss") @DateTimeFormat(pattern="yyyy-MM-dd HH:mm:ss") @Schema(description = "结课时间") - private Date endTime; + private java.util.Date endTime; /**已报名人数*/ @Excel(name = "已报名人数", width = 15) @Schema(description = "已报名人数") - private Integer enrollCount; + private java.lang.Integer enrollCount; /**最大报名人数*/ @Excel(name = "最大报名人数", width = 15) @Schema(description = "最大报名人数") - private Integer maxEnroll; + private java.lang.Integer maxEnroll; /**状态*/ @Excel(name = "状态", width = 15, dicCode = "course_status") @Dict(dicCode = "course_status") @Schema(description = "状态") - private Integer status; + private java.lang.Integer status; /**常见问题*/ @Excel(name = "常见问题", width = 15) @Schema(description = "常见问题") - private String question; + private java.lang.String question; + /**是否ai伴学模式*/ + @Excel(name = "是否ai伴学模式", width = 15) + @Schema(description = "是否ai伴学模式") + private java.lang.Integer izAi; /**创建人*/ @Schema(description = "创建人") - private String createBy; + private java.lang.String createBy; /**创建时间*/ @JsonFormat(timezone = "GMT+8",pattern = "yyyy-MM-dd HH:mm:ss") @DateTimeFormat(pattern="yyyy-MM-dd HH:mm:ss") @Schema(description = "创建时间") - private Date createTime; + private java.util.Date createTime; /**更新人*/ @Schema(description = "更新人") - private String updateBy; + private java.lang.String updateBy; /**更新时间*/ @JsonFormat(timezone = "GMT+8",pattern = "yyyy-MM-dd HH:mm:ss") @DateTimeFormat(pattern="yyyy-MM-dd HH:mm:ss") @Schema(description = "更新时间") - private Date updateTime; + private java.util.Date updateTime; } diff --git a/jeecgboot-vue3/src/views/aiol/AiolCourse.data.ts b/jeecgboot-vue3/src/views/aiol/AiolCourse.data.ts index 9e8d25c5..cf66f477 100644 --- a/jeecgboot-vue3/src/views/aiol/AiolCourse.data.ts +++ b/jeecgboot-vue3/src/views/aiol/AiolCourse.data.ts @@ -101,6 +101,11 @@ export const columns: BasicColumn[] = [ align:"center", dataIndex: 'question', }, + { + title: '是否ai伴学模式', + align:"center", + dataIndex: 'izAi' + }, ]; //查询数据 export const searchFormSchema: FormSchema[] = [ @@ -228,6 +233,11 @@ export const formSchema: FormSchema[] = [ label: '常见问题', field: 'question', component: 'JEditor', + }, + { + label: '是否ai伴学模式', + field: 'izAi', + component: 'InputNumber', }, // TODO 主键隐藏字段,目前写死为ID { @@ -259,6 +269,7 @@ export const superQuerySchema = { maxEnroll: {title: '最大报名人数',order: 16,view: 'number', type: 'number',}, status: {title: '状态',order: 17,view: 'number', type: 'number',dictCode: 'course_status',}, question: {title: '常见问题',order: 18,view: 'umeditor', type: 'string',}, + izAi: {title: '是否ai伴学模式',order: 19,view: 'number', type: 'number',}, }; /**