From 3a6820bd9933dd67e301da14b3b41a9ad9140b4a Mon Sep 17 00:00:00 2001 From: cody <648753004@qq.com> Date: Mon, 30 Jun 2025 16:54:59 +0800 Subject: [PATCH] update --- app/Http/Controllers/Admin/CourseController.php | 5 +++++ .../2025_06_30_132354_alert_course_contents_table.php | 7 +++++++ 2 files changed, 12 insertions(+) diff --git a/app/Http/Controllers/Admin/CourseController.php b/app/Http/Controllers/Admin/CourseController.php index ed0281f..813af48 100755 --- a/app/Http/Controllers/Admin/CourseController.php +++ b/app/Http/Controllers/Admin/CourseController.php @@ -201,7 +201,12 @@ class CourseController extends BaseController * @OA\Parameter(name="image_id", in="query", @OA\Schema(type="integer"), description="图片id"), * @OA\Parameter(name="qun_image_id", in="query", @OA\Schema(type="integer"), description="群图片id"), * @OA\Parameter(name="is_virtual", in="query", @OA\Schema(type="integer"), description="是否虚拟课程0否1是"), + * @OA\Parameter(name="course_content_evaluation_title", in="query", @OA\Schema(type="integer"), description="问卷标题"), * @OA\Parameter(name="course_content_status", in="query", @OA\Schema(type="integer"), description="课表状态:0未发布, 1已发布"), + * @OA\Parameter(name="course_content_evaluation_desc", in="query", @OA\Schema(type="integer"), description="问卷描述"), + * @OA\Parameter(name="course_content_evaluation_type_id", in="query", @OA\Schema(type="integer"), description="问卷类型id"), + * @OA\Parameter(name="course_content_evaluation_start_time", in="query", @OA\Schema(type="integer"), description="问卷开始时间"), + * @OA\Parameter(name="course_content_evaluation_end_time", in="query", @OA\Schema(type="integer"), description="问卷结束时间"), * @OA\Response( * response=200, * description="操作成功" diff --git a/database/migrations/2025_06_30_132354_alert_course_contents_table.php b/database/migrations/2025_06_30_132354_alert_course_contents_table.php index 4236a8a..dc6a356 100644 --- a/database/migrations/2025_06_30_132354_alert_course_contents_table.php +++ b/database/migrations/2025_06_30_132354_alert_course_contents_table.php @@ -14,6 +14,13 @@ return new class extends Migration { { Schema::table('course_contents', function (Blueprint $table) { $table->string('course_content_evaluation_title')->nullable()->comment('问卷标题'); + // 问卷描述 + $table->string('course_content_evaluation_desc')->nullable()->comment('问卷描述'); + $table->string('course_content_evaluation_type_id')->nullable()->comment('问卷类型id'); + // 开始时间 + $table->string('course_content_evaluation_start_time')->nullable()->comment('问卷开始时间'); + // 截止时间 + $table->string('course_content_evaluation_end_time')->nullable()->comment('问卷截止时间'); $table->string('course_content_evaluation_status')->nullable()->default(0)->comment('问卷状态0未发布1已发布'); }); }