Browse Source

1、移出AI实验课无用配置字段
2、AI实验课课程配置加入前置对话和ai回复补充配置项

liyanbo 3 months ago
parent
commit
f930d1b17d

+ 5 - 0
byzs-aicourse/src/main/java/cn/iocoder/byzs/module/aicourse/controller/admin/aiCourse/vo/AiCoursePageReqVO.java

@@ -25,6 +25,11 @@ public class AiCoursePageReqVO extends PageParam {
     private String acContent;
 
 
+    @Schema(description = "前置对话")
+    private String aiPreDialogues;
+
+    @Schema(description = "回复补充")
+    private String aiReplySupplement;
 
 
     @Schema(description = "课程是否有检查")

+ 7 - 0
byzs-aicourse/src/main/java/cn/iocoder/byzs/module/aicourse/controller/admin/aiCourse/vo/AiCourseRespVO.java

@@ -32,6 +32,13 @@ public class AiCourseRespVO {
     private String acContent;
 
 
+    @Schema(description = "前置对话")
+    @ExcelProperty("前置对话")
+    private String aiPreDialogues;
+
+    @Schema(description = "回复补充")
+    @ExcelProperty("回复补充")
+    private String aiReplySupplement;
 
 
     @Schema(description = "课程是否有检查")

+ 7 - 0
byzs-aicourse/src/main/java/cn/iocoder/byzs/module/aicourse/controller/admin/aiCourse/vo/AiCourseSaveReqVO.java

@@ -21,6 +21,13 @@ public class AiCourseSaveReqVO {
     private String acContent;
 
 
+    @Schema(description = "前置对话")
+    private String aiPreDialogues;
+
+    @Schema(description = "回复补充")
+    private String aiReplySupplement;
+
+
     @Schema(description = "课程是否有检查")
     private String acIsInspect;
 

+ 10 - 0
byzs-aicourse/src/main/java/cn/iocoder/byzs/module/aicourse/dal/dataobject/aiCourse/AiCourseDO.java

@@ -47,6 +47,16 @@ public class AiCourseDO extends BaseDO {
     private String acContent;
 
 
+    /**
+     * 前置对话
+     */
+    private String aiPreDialogues;
+
+    /**
+     * 回复补充
+     */
+    private String aiReplySupplement;
+
 
     /**
      * 课程是否有检查

+ 2 - 0
byzs-aicourse/src/main/resources/mapper/aiCourse/AiCourseMapper.xml

@@ -37,6 +37,7 @@
             resultType="cn.iocoder.byzs.module.aicourse.controller.admin.aiCourse.vo.AiCoursePageReqVO">
         SELECT c.tenant_id as tenantId,c.id, c.ac_name acName,
                c.ac_content_type acContentType, c.ac_content acContent,
+               c.ai_pre_dialogues aiPreDialogues, c.ai_reply_supplement aiReplySupplement,
                c.ac_is_inspect acIsInspect, c.ac_label acLabel, c.ac_order acOrder, c.ac_status acStatus,
                ct.ct_type acTypeName
         <include refid="selectAiCourseList"/>
@@ -48,6 +49,7 @@
             resultType="cn.iocoder.byzs.module.aicourse.controller.admin.aiCourse.vo.AiCoursePageReqVO">
         SELECT c.tenant_id as tenantId,c.id, c.ac_name acName, c.ac_type acType,
                c.ac_content_type acContentType, c.ac_content acContent,
+               c.ai_pre_dialogues aiPreDialogues, c.ai_reply_supplement aiReplySupplement,
                c.ac_is_inspect acIsInspect, c.ac_label acLabel, c.ac_order acOrder, c.ac_status acStatus,
                ct.ct_type acTypeName
         <include refid="selectAiCourseList"/>

+ 4 - 20
byzs-web/src/main/java/cn/iocoder/byzs/module/web/controller/admin/aiCourse/vo/WebAiCourseVO.java

@@ -24,27 +24,11 @@ public class WebAiCourseVO extends PageParam {
     private String acContent;
 
 
-    @Schema(description = "简介")
-    private String aiCourseInfo;
-    @Schema(description = "人物图标")
-    private String aiCourseUserImage;
-    @Schema(description = "人物初始方向")
-    private Integer aiCourseUserDirection;
-    @Schema(description = "地图方格大小")
-    private String aiCourseTileSize;
-    @Schema(description = "地图背景图")
-    private String aiCourseBackground;
-    @Schema(description = "地图开始坐标")
-    private String aiCourseStartPoint;
-    @Schema(description = "地图结束坐标")
-    private String aiCourseEndPoint;
-    @Schema(description = "地图可行走坐标")
-    private String aiCourseWalkablePoints;
-    @Schema(description = "特殊方块")
-    private String aiCourseSpecialBlocks;
-    @Schema(description = "路径列表")
-    private String aiCourseRouteList;
+    @Schema(description = "前置对话")
+    private String aiPreDialogues;
 
+    @Schema(description = "回复补充")
+    private String aiReplySupplement;
 
 
     @Schema(description = "课程是否有检查")