Skip to content

Commit

Permalink
chore: update docs
Browse files Browse the repository at this point in the history
  • Loading branch information
JingYiJun committed Oct 3, 2023
1 parent 6d5071e commit d319e91
Show file tree
Hide file tree
Showing 3 changed files with 22 additions and 0 deletions.
8 changes: 8 additions & 0 deletions internal/docs/docs.go
Original file line number Diff line number Diff line change
Expand Up @@ -1010,6 +1010,10 @@ const docTemplate = `{
"description": "课程组编号",
"type": "string"
},
"course_count": {
"description": "课程数量",
"type": "integer"
},
"course_list": {
"description": "课程组下的课程,slices 必须非空",
"type": "array",
Expand All @@ -1035,6 +1039,10 @@ const docTemplate = `{
"name": {
"description": "课程组名称",
"type": "string"
},
"review_count": {
"description": "评价数量",
"type": "integer"
}
}
},
Expand Down
8 changes: 8 additions & 0 deletions internal/docs/swagger.json
Original file line number Diff line number Diff line change
Expand Up @@ -1007,6 +1007,10 @@
"description": "课程组编号",
"type": "string"
},
"course_count": {
"description": "课程数量",
"type": "integer"
},
"course_list": {
"description": "课程组下的课程,slices 必须非空",
"type": "array",
Expand All @@ -1032,6 +1036,10 @@
"name": {
"description": "课程组名称",
"type": "string"
},
"review_count": {
"description": "评价数量",
"type": "integer"
}
}
},
Expand Down
6 changes: 6 additions & 0 deletions internal/docs/swagger.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -48,6 +48,9 @@ definitions:
code:
description: 课程组编号
type: string
course_count:
description: 课程数量
type: integer
course_list:
description: 课程组下的课程,slices 必须非空
items:
Expand All @@ -67,6 +70,9 @@ definitions:
name:
description: 课程组名称
type: string
review_count:
description: 评价数量
type: integer
type: object
schema.CourseV1Response:
properties:
Expand Down

0 comments on commit d319e91

Please sign in to comment.