更新:增加课程首页分类跳转列表页;优化全站列表分页加载;
This commit is contained in:
9
types/course.d.ts
vendored
9
types/course.d.ts
vendored
@@ -6,13 +6,14 @@
|
||||
import type { IApiResponse } from './book'
|
||||
|
||||
/** 医学标签(课程分类) */
|
||||
export interface IMedicalTag {
|
||||
export interface ICategory {
|
||||
id: number // 标签ID
|
||||
title: string // 标签标题
|
||||
icon: string // 标签图标URL
|
||||
isLast: number // 是否为终极分类 0-否 1-是
|
||||
children?: IMedicalTag[] // 子分类列表
|
||||
children?: ICategory[] // 子分类列表
|
||||
pid?: number // 父级ID
|
||||
content?: string // 分类描述
|
||||
}
|
||||
|
||||
/** 课程信息 */
|
||||
@@ -31,8 +32,8 @@ export interface INews {
|
||||
}
|
||||
|
||||
/** 课程分类树响应 */
|
||||
export interface ICourseMedicalTreeResponse extends IApiResponse {
|
||||
labels: IMedicalTag[] // 分类标签列表
|
||||
export interface ICourseCategoryResponse extends IApiResponse {
|
||||
labels: ICategory[] // 分类标签列表
|
||||
}
|
||||
|
||||
/** 用户最近观看课程列表响应 */
|
||||
|
||||
Reference in New Issue
Block a user