-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathopenapi.yaml
More file actions
5546 lines (5329 loc) · 172 KB
/
openapi.yaml
File metadata and controls
5546 lines (5329 loc) · 172 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
399
400
401
402
403
404
405
406
407
408
409
410
411
412
413
414
415
416
417
418
419
420
421
422
423
424
425
426
427
428
429
430
431
432
433
434
435
436
437
438
439
440
441
442
443
444
445
446
447
448
449
450
451
452
453
454
455
456
457
458
459
460
461
462
463
464
465
466
467
468
469
470
471
472
473
474
475
476
477
478
479
480
481
482
483
484
485
486
487
488
489
490
491
492
493
494
495
496
497
498
499
500
501
502
503
504
505
506
507
508
509
510
511
512
513
514
515
516
517
518
519
520
521
522
523
524
525
526
527
528
529
530
531
532
533
534
535
536
537
538
539
540
541
542
543
544
545
546
547
548
549
550
551
552
553
554
555
556
557
558
559
560
561
562
563
564
565
566
567
568
569
570
571
572
573
574
575
576
577
578
579
580
581
582
583
584
585
586
587
588
589
590
591
592
593
594
595
596
597
598
599
600
601
602
603
604
605
606
607
608
609
610
611
612
613
614
615
616
617
618
619
620
621
622
623
624
625
626
627
628
629
630
631
632
633
634
635
636
637
638
639
640
641
642
643
644
645
646
647
648
649
650
651
652
653
654
655
656
657
658
659
660
661
662
663
664
665
666
667
668
669
670
671
672
673
674
675
676
677
678
679
680
681
682
683
684
685
686
687
688
689
690
691
692
693
694
695
696
697
698
699
700
701
702
703
704
705
706
707
708
709
710
711
712
713
714
715
716
717
718
719
720
721
722
723
724
725
726
727
728
729
730
731
732
733
734
735
736
737
738
739
740
741
742
743
744
745
746
747
748
749
750
751
752
753
754
755
756
757
758
759
760
761
762
763
764
765
766
767
768
769
770
771
772
773
774
775
776
777
778
779
780
781
782
783
784
785
786
787
788
789
790
791
792
793
794
795
796
797
798
799
800
801
802
803
804
805
806
807
808
809
810
811
812
813
814
815
816
817
818
819
820
821
822
823
824
825
826
827
828
829
830
831
832
833
834
835
836
837
838
839
840
841
842
843
844
845
846
847
848
849
850
851
852
853
854
855
856
857
858
859
860
861
862
863
864
865
866
867
868
869
870
871
872
873
874
875
876
877
878
879
880
881
882
883
884
885
886
887
888
889
890
891
892
893
894
895
896
897
898
899
900
901
902
903
904
905
906
907
908
909
910
911
912
913
914
915
916
917
918
919
920
921
922
923
924
925
926
927
928
929
930
931
932
933
934
935
936
937
938
939
940
941
942
943
944
945
946
947
948
949
950
951
952
953
954
955
956
957
958
959
960
961
962
963
964
965
966
967
968
969
970
971
972
973
974
975
976
977
978
979
980
981
982
983
984
985
986
987
988
989
990
991
992
993
994
995
996
997
998
999
1000
openapi: 3.0.3
info:
title: OSCMS Backend API
description: |
在线课程管理系统(Online Student Course Management System)后端API接口文档
## 功能模块
- 用户认证与授权
- 用户管理
- 课程管理
- 班级管理
- 作业管理
- 题目管理
- 提交与批改
- 资料管理
- 学习记录
## 认证说明
除了注册和登录接口外,所有API都需要JWT Token认证。
请在请求头中添加:`Authorization: Bearer <your-jwt-token>`
## 通用响应格式
所有API响应都采用统一格式:
```json
{
"code": 200,
"message": "success",
"data": {}
}
```
version: 1.0.1
contact:
name: OSCMS Development Team
email: support@oscms.com
license:
name: MIT License
servers:
- url: http://localhost:8080
description: 本地开发环境
- url: https://api.oscms.com
description: 生产环境
tags:
- name: Auth
description: 用户认证相关接口
- name: Users
description: 用户管理接口
- name: Courses
description: 课程管理接口
- name: Classes
description: 班级管理接口
- name: Assignments
description: 作业管理接口
- name: Questions
description: 题目管理接口
- name: Submissions
description: 提交管理接口
- name: Materials
description: 资料管理接口
- name: Records
description: 学习记录接口
paths:
# ==================== 认证相关接口 ====================
/auth/register:
post:
tags:
- Auth
summary: 用户注册
description: |
接收用户注册信息并创建新用户账户
## 角色说明
- `teacher`: 教师角色
- `ta`: 助教角色
- `student`: 学生角色
## 注意事项
- userId通常为学号或工号
- 密码长度需要6-100个字符
- 邮箱为可选字段
operationId: registerUser
requestBody:
required: true
content:
application/json:
schema:
$ref: '#/components/schemas/RegisterRequest'
examples:
student_example:
summary: 学生注册示例
value:
userId: "2021001001"
username: "张三"
password: "password123"
role: "student"
email: "zhangsan@example.com"
teacher_example:
summary: 教师注册示例
value:
userId: "T001"
username: "李老师"
password: "teacher123"
role: "teacher"
email: "teacher.li@example.com"
responses:
'201':
description: 注册成功
content:
application/json:
schema:
allOf:
- $ref: '#/components/schemas/ApiResponse'
- type: object
properties:
data:
$ref: '#/components/schemas/UserResponse'
examples:
success:
summary: 注册成功示例
value:
code: 201
message: "用户注册成功"
data:
id: "2021001001"
username: "张三"
role: "ROLE_STUDENT"
email: "zhangsan@example.com"
createdAt: "2024-01-15T10:30:00"
'400':
description: 参数错误
content:
application/json:
schema:
$ref: '#/components/schemas/ApiResponse'
examples:
validation_error:
summary: 参数验证失败
value:
code: 400
message: "用户ID不能为空"
data: null
duplicate_user:
summary: 用户已存在
value:
code: 400
message: "用户ID已存在"
data: null
/auth/login:
post:
tags:
- Auth
summary: 用户登录
description: |
用户登录认证接口,支持多角色登录
## 登录流程
1. 验证用户ID和密码
2. 验证用户是否拥有指定角色
3. 生成JWT Token
## 角色映射
- API角色 `student` -> 内部角色 `ROLE_STUDENT`
- API角色 `teacher` -> 内部角色 `ROLE_TEACHER`
- API角色 `ta` -> 内部角色 `ROLE_TA`
## Token使用
登录成功后,请在后续请求的Authorization头中携带返回的token:
`Authorization: Bearer <token>`
operationId: loginUser
requestBody:
required: true
content:
application/json:
schema:
$ref: '#/components/schemas/LoginRequest'
examples:
student_login:
summary: 学生登录示例
value:
userId: "2021001001"
password: "password123"
role: "student"
teacher_login:
summary: 教师登录示例
value:
userId: "T001"
password: "teacher123"
role: "teacher"
responses:
'200':
description: 登录成功
content:
application/json:
schema:
allOf:
- $ref: '#/components/schemas/ApiResponse'
- type: object
properties:
data:
$ref: '#/components/schemas/TokenResponse'
examples:
success:
summary: 登录成功示例
value:
code: 200
message: "登录成功"
data:
token: "eyJhbGciOiJIUzI1NiJ9.eyJzdWIiOiIyMDIxMDAxMDAxIiwiaWF0IjoxNjQyMjQzMjAwLCJleHAiOjE2NDIzMjk2MDB9.example"
'401':
description: 认证失败
content:
application/json:
schema:
$ref: '#/components/schemas/ApiResponse'
examples:
invalid_credentials:
summary: 用户名或密码错误
value:
code: 401
message: "用户ID或密码错误"
data: null
invalid_role:
summary: 角色验证失败
value:
code: 401
message: "用户不拥有该登录角色: student"
data: null
account_disabled:
summary: 账户被禁用
value:
code: 401
message: "账户已被禁用"
data: null
# ==================== 用户管理接口 ====================
/users/{userId}:
get:
tags:
- Users
summary: 获取用户信息
description: |
根据用户ID获取用户的详细信息
## 权限要求
- 用户只能查看自己的信息(userId必须与当前登录用户一致)
## 注意事项
- 需要JWT Token认证
- 返回的用户信息不包含密码等敏感信息
operationId: getUserById
parameters:
- name: userId
in: path
required: true
description: 要获取信息的用户ID
schema:
type: string
example: "2021001001"
responses:
'200':
description: 成功获取用户信息
content:
application/json:
schema:
allOf:
- $ref: '#/components/schemas/ApiResponse'
- type: object
properties:
data:
$ref: '#/components/schemas/UserResponse'
examples:
success:
summary: 获取用户信息成功
value:
code: 200
message: "用户信息获取成功"
data:
id: "2021001001"
username: "张三"
role: "ROLE_STUDENT"
email: "zhangsan@example.com"
createdAt: "2024-01-15T10:30:00"
'404':
description: 用户未找到
content:
application/json:
schema:
$ref: '#/components/schemas/ApiResponse'
examples:
not_found:
summary: 用户不存在
value:
code: 404
message: "用户未找到"
data: null
'403':
description: 权限不足
content:
application/json:
schema:
$ref: '#/components/schemas/ApiResponse'
examples:
forbidden:
summary: 无权限访问
value:
code: 403
message: "无权限查看该用户信息"
data: null
security:
- BearerAuth: []
put:
tags:
- Users
summary: 更新用户个人信息
description: |
更新指定用户的邮箱和/或密码
## 权限要求
- 用户只能更新自己的信息(userId必须与当前登录用户一致)
## 可更新字段
- email: 邮箱地址(可选)
- password: 新密码(可选)
## 注意事项
- 所有字段都是可选的,只更新提供的字段
- 密码长度需要6-100个字符
- 邮箱需要符合邮箱格式
operationId: updateUserProfile
parameters:
- name: userId
in: path
required: true
description: 要更新信息的用户ID
schema:
type: string
example: "2021001001"
requestBody:
required: true
content:
application/json:
schema:
$ref: '#/components/schemas/UserUpdate'
examples:
update_email:
summary: 更新邮箱
value:
email: "newemail@example.com"
update_password:
summary: 更新密码
value:
password: "newpassword123"
update_both:
summary: 同时更新邮箱和密码
value:
email: "newemail@example.com"
password: "newpassword123"
responses:
'200':
description: 用户信息更新成功
content:
application/json:
schema:
allOf:
- $ref: '#/components/schemas/ApiResponse'
- type: object
properties:
data:
$ref: '#/components/schemas/UserResponse'
examples:
success:
summary: 更新成功
value:
code: 200
message: "用户信息更新成功"
data:
id: "2021001001"
username: "张三"
role: "ROLE_STUDENT"
email: "newemail@example.com"
createdAt: "2024-01-15T10:30:00"
'400':
description: 参数错误或无效的更新请求
content:
application/json:
schema:
$ref: '#/components/schemas/ApiResponse'
examples:
invalid_email:
summary: 邮箱格式错误
value:
code: 400
message: "邮箱格式不正确"
data: null
invalid_password:
summary: 密码长度不符合要求
value:
code: 400
message: "新密码长度必须在 6 到 100 个字符之间"
data: null
'404':
description: 用户未找到
content:
application/json:
schema:
$ref: '#/components/schemas/ApiResponse'
'403':
description: 权限不足
content:
application/json:
schema:
$ref: '#/components/schemas/ApiResponse'
security:
- BearerAuth: []
/users/{userId}/courses:
get:
tags:
- Users
summary: 获取学生参与的所有课程
description: |
获取指定学生参与的所有课程列表
## 权限要求
- 用户只能查看自己参与的课程(userId必须与当前登录用户一致)
## 返回信息
- 课程基本信息(ID、名称、代码等)
- 教师信息
- 课程状态
operationId: getStudentCourses
parameters:
- name: userId
in: path
required: true
description: 学生的用户ID
schema:
type: string
example: "2021001001"
responses:
'200':
description: 成功获取学生课程列表
content:
application/json:
schema:
allOf:
- $ref: '#/components/schemas/ApiResponse'
- type: object
properties:
data:
type: array
items:
$ref: '#/components/schemas/CourseDto'
examples:
success:
summary: 获取课程列表成功
value:
code: 200
message: "成功获取学生课程列表"
data:
- id: 1
name: "Java程序设计"
code: "CS101"
outline: "Java基础语法和面向对象编程"
objectives: "掌握Java编程基础"
assessment: "期中考试30% + 期末考试50% + 平时作业20%"
teacherId: "T001"
teacherName: "李老师"
completed: false
- id: 2
name: "数据结构与算法"
code: "CS102"
outline: "数据结构基础和常用算法"
objectives: "掌握基本数据结构和算法"
assessment: "期中考试40% + 期末考试60%"
teacherId: "T002"
teacherName: "王老师"
completed: false
'404':
description: 用户未找到或无课程数据
content:
application/json:
schema:
$ref: '#/components/schemas/ApiResponse'
'403':
description: 权限不足
content:
application/json:
schema:
$ref: '#/components/schemas/ApiResponse'
security:
- BearerAuth: []
/users/{userId}/courses/{courseId}/class:
get:
tags:
- Users
summary: 获取学生在某课程中的班级信息
description: |
查询学生在特定课程中具体加入了哪个班级
## 权限要求
- 用户只能查看自己的班级信息(userId必须与当前登录用户一致)
## 使用场景
- 学生查看自己在某个课程中的班级
- 确认班级归属关系
operationId: getStudentClassInCourse
parameters:
- name: userId
in: path
required: true
description: 学生的用户ID
schema:
type: string
example: "2021001001"
- name: courseId
in: path
required: true
description: 课程ID
schema:
type: integer
format: int64
example: 1
responses:
'200':
description: 成功获取班级信息
content:
application/json:
schema:
allOf:
- $ref: '#/components/schemas/ApiResponse'
- type: object
properties:
data:
$ref: '#/components/schemas/ClassDto'
examples:
success:
summary: 获取班级信息成功
value:
code: 200
message: "成功获取学生班级信息"
data:
id: 1
name: "Java程序设计1班"
code: "CS101-01"
courseId: 1
'404':
description: 未找到相关记录(用户、课程、班级或注册关系)
content:
application/json:
schema:
$ref: '#/components/schemas/ApiResponse'
examples:
not_found:
summary: 未找到班级信息
value:
code: 404
message: "未找到该学生在此课程中的班级信息"
data: null
'403':
description: 权限不足
content:
application/json:
schema:
$ref: '#/components/schemas/ApiResponse'
security:
- BearerAuth: []
/users/{studentId}/favorites:
get:
tags:
- Users
summary: 获取学生收藏的题目
description: |
获取指定学生收藏的所有题目列表
## 权限要求
- 用户只能查看自己收藏的题目(studentId必须与当前登录用户一致)
## 功能说明
- 返回学生收藏的所有题目
- 包含题目的详细信息
operationId: listFavorites
parameters:
- name: studentId
in: path
required: true
description: 学生用户ID
schema:
type: string
example: "2021001001"
responses:
'200':
description: 成功获取收藏题目列表
content:
application/json:
schema:
allOf:
- $ref: '#/components/schemas/ApiResponse'
- type: object
properties:
data:
type: array
items:
$ref: '#/components/schemas/QuestionDto'
examples:
success:
summary: 获取收藏题目成功
value:
code: 200
message: "success"
data:
- id: 1
title: "Java基础语法题"
content: "请写出Java中的基本数据类型"
type: "选择题"
difficulty: "简单"
- id: 2
title: "算法题"
content: "实现快速排序算法"
type: "编程题"
difficulty: "中等"
'403':
description: 权限不足
content:
application/json:
schema:
$ref: '#/components/schemas/ApiResponse'
security:
- BearerAuth: []
/users/{studentId}/classes/info:
get:
tags:
- Users
summary: 获取学生加入的所有班级信息
description: |
获取指定学生加入的所有班级的详细信息,包括班级名称、课程信息等
## 权限要求
- 学生只能查看自己的班级信息
- 教师和管理员可以查看任意学生的班级信息
## 返回信息
- 班级ID和名称
- 所属课程ID和名称
- 完整的班级-课程关联信息
operationId: getStudentEnrolledClassInfo
parameters:
- name: studentId
in: path
required: true
description: 学生用户ID
schema:
type: string
example: "2021001001"
responses:
'200':
description: 成功获取班级信息列表
content:
application/json:
schema:
allOf:
- $ref: '#/components/schemas/ApiResponse'
- type: object
properties:
data:
type: array
items:
$ref: '#/components/schemas/StudentClassInfoDto'
examples:
success:
summary: 获取班级信息成功
value:
code: 200
message: "success"
data:
- classId: 1
className: "Java程序设计1班"
courseId: 1
courseName: "Java程序设计"
- classId: 2
className: "数据结构A班"
courseId: 2
courseName: "数据结构与算法"
'403':
description: 权限不足
content:
application/json:
schema:
$ref: '#/components/schemas/ApiResponse'
examples:
forbidden:
summary: 无权限访问
value:
code: 403
message: "您没有权限查看该学生的班级信息"
data: null
'401':
description: 用户未认证
content:
application/json:
schema:
$ref: '#/components/schemas/ApiResponse'
examples:
unauthorized:
summary: 未认证
value:
code: 401
message: "用户未认证"
data: null
security:
- BearerAuth: []
# ==================== 课程管理接口 ====================
/courses:
get:
tags:
- Courses
summary: 获取教师的所有课程
description: |
列出指定教师的所有课程
## 权限要求
- 只有教师本人可以查看自己创建的课程
- teacherId必须与当前登录用户一致
## 使用场景
- 教师查看自己创建的所有课程
- 课程管理页面的课程列表
operationId: listCoursesByTeacher
parameters:
- name: teacherId
in: query
required: true
description: 教师ID
schema:
type: string
example: "T001"
responses:
'200':
description: 成功获取课程列表
content:
application/json:
schema:
allOf:
- $ref: '#/components/schemas/ApiResponse'
- type: object
properties:
data:
type: array
items:
$ref: '#/components/schemas/CourseDto'
examples:
success:
summary: 获取课程列表成功
value:
code: 200
message: "success"
data:
- id: 1
name: "Java程序设计"
code: "CS101"
outline: "Java基础语法和面向对象编程"
objectives: "掌握Java编程基础"
assessment: "期中考试30% + 期末考试50% + 平时作业20%"
teacherId: "T001"
teacherName: "李老师"
completed: false
chapters:
- title: "第一章 Java基础"
order: 1
- id: 2
name: "数据结构与算法"
code: "CS102"
outline: "数据结构基础和常用算法"
objectives: "掌握基本数据结构和算法"
assessment: "期中考试40% + 期末考试60%"
teacherId: "T001"
teacherName: "李老师"
completed: false
chapters: []
'403':
description: 权限不足
content:
application/json:
schema:
$ref: '#/components/schemas/ApiResponse'
examples:
forbidden:
summary: 无权限访问
value:
code: 403
message: "无权限查看该教师的课程"
data: null
security:
- BearerAuth: []
post:
tags:
- Courses
summary: 创建课程
description: |
教师创建新课程
## 权限要求
- 只有教师角色可以创建课程
- teacherId必须与当前登录用户一致
- 必须具有ROLE_TEACHER角色
## 创建内容
- 课程基本信息(名称、代码、大纲等)
- 课程章节(可选)
- 考核方式和课程目标
operationId: createCourse
parameters:
- name: teacherId
in: query
required: true
description: 教师ID(必须与当前登录用户一致)
schema:
type: string
example: "T001"
requestBody:
required: true
content:
application/json:
schema:
$ref: '#/components/schemas/CourseCreateDto'
examples:
basic_course:
summary: 基础课程创建
value:
name: "Java程序设计"
code: "CS101"
outline: "Java基础语法和面向对象编程"
objectives: "掌握Java编程基础"
assessment: "期中考试30% + 期末考试50% + 平时作业20%"
completed: false
course_with_chapters:
summary: 带章节的课程创建
value:
name: "数据结构与算法"
code: "CS102"
outline: "数据结构基础和常用算法"
objectives: "掌握基本数据结构和算法"
assessment: "期中考试40% + 期末考试60%"
completed: false
chapters:
- title: "第一章 线性表"
order: 1
- title: "第二章 栈和队列"
order: 2
responses:
'200':
description: 课程创建成功
content:
application/json:
schema:
allOf:
- $ref: '#/components/schemas/ApiResponse'
- type: object
properties:
data:
$ref: '#/components/schemas/CourseDto'
examples:
success:
summary: 创建成功
value:
code: 200
message: "success"
data:
id: 3
name: "Java程序设计"
code: "CS101"
outline: "Java基础语法和面向对象编程"
objectives: "掌握Java编程基础"
assessment: "期中考试30% + 期末考试50% + 平时作业20%"
teacherId: "T001"
teacherName: "李老师"
completed: false
chapters:
- title: "第一章 Java基础"
order: 1
'400':
description: 参数错误
content:
application/json:
schema:
$ref: '#/components/schemas/ApiResponse'
examples:
validation_error:
summary: 参数验证失败
value:
code: 400
message: "课程名称不能为空"
data: null
duplicate_code:
summary: 课程代码重复
value:
code: 400
message: "课程代码已存在"
data: null
'403':
description: 权限不足
content:
application/json:
schema:
$ref: '#/components/schemas/ApiResponse'
examples:
not_teacher:
summary: 非教师用户
value:
code: 403
message: "只有教师可以创建课程"
data: null
security:
- BearerAuth: []
/courses/{courseId}:
get:
tags:
- Courses
summary: 获取课程详情
description: |
根据课程ID获取课程的详细信息
## 权限要求
- 该课程的教师
- 该课程下的助教
- 该课程下的学生
## 返回信息
- 课程基本信息
- 教师信息
- 课程章节
- 考核方式等详细信息
operationId: getCourseById
parameters:
- name: courseId
in: path
required: true
description: 课程ID
schema:
type: integer
format: int64
example: 1
responses:
'200':
description: 成功获取课程详情
content:
application/json:
schema:
allOf:
- $ref: '#/components/schemas/ApiResponse'
- type: object
properties:
data:
$ref: '#/components/schemas/CourseDto'
examples:
success:
summary: 获取课程详情成功
value:
code: 200
message: "success"
data:
id: 1
name: "Java程序设计"
code: "CS101"
outline: "Java基础语法和面向对象编程,包括类与对象、继承、多态、异常处理等核心概念"
objectives: "掌握Java编程基础,能够独立开发简单的Java应用程序"
assessment: "期中考试30% + 期末考试50% + 平时作业20%"
teacherId: "T001"
teacherName: "李老师"
completed: false
chapters:
- title: "第一章 Java基础语法"
order: 1
- title: "第二章 面向对象编程"
order: 2
- title: "第三章 异常处理"
order: 3
'404':
description: 课程未找到
content:
application/json:
schema:
$ref: '#/components/schemas/ApiResponse'
examples:
not_found:
summary: 课程不存在
value:
code: 404
message: "课程未找到"