web-学习管理、upload组件修改
This commit is contained in:
@@ -28,6 +28,11 @@ export interface PageParam {
|
||||
page: number;
|
||||
/** 每页条数 */
|
||||
size: number;
|
||||
|
||||
/** 总页数 */
|
||||
totalPages?: number;
|
||||
/** 总记录数 */
|
||||
totalElements?: number;
|
||||
/** 排序字段 */
|
||||
orderBy?: string;
|
||||
/** 排序方向 asc/desc */
|
||||
@@ -38,17 +43,14 @@ export interface PageParam {
|
||||
* 分页结果
|
||||
*/
|
||||
export interface PageDomain<T> {
|
||||
/** 当前页码 */
|
||||
page: number;
|
||||
/** 每页条数 */
|
||||
size: number;
|
||||
/** 总记录数 */
|
||||
total: number;
|
||||
/** 总页数 */
|
||||
pages: number;
|
||||
pageParam: PageParam;
|
||||
/** 数据列表 */
|
||||
dataList?: T[];
|
||||
}
|
||||
export interface PageRequest<T> {
|
||||
pageParam: PageParam;
|
||||
filter: T;
|
||||
}
|
||||
|
||||
/**
|
||||
* 统一返回结果
|
||||
|
||||
@@ -42,30 +42,83 @@ export interface Course extends BaseDTO {
|
||||
* 课程章节实体
|
||||
*/
|
||||
export interface CourseChapter extends BaseDTO {
|
||||
/** 章节唯一标识 */
|
||||
/** 章节ID */
|
||||
chapterID?: string;
|
||||
/** 课程ID */
|
||||
courseID?: string;
|
||||
/** 父章节ID */
|
||||
parentID?: string;
|
||||
/** 章节名称 */
|
||||
name?: string;
|
||||
/** 章节内容 */
|
||||
content?: string;
|
||||
/** 章节类型(1视频 2文档 3音频) */
|
||||
chapterType?: number;
|
||||
/** 资源ID */
|
||||
resourceID?: string;
|
||||
/** 视频URL */
|
||||
videoUrl?: string;
|
||||
/** 章节时长(分钟) */
|
||||
duration?: number;
|
||||
/** 排序号 */
|
||||
orderNum?: number;
|
||||
/** 状态(0禁用 1启用) */
|
||||
status?: number;
|
||||
/** 创建者 */
|
||||
creator?: string;
|
||||
/** 更新者 */
|
||||
updater?: string;
|
||||
}
|
||||
|
||||
/**
|
||||
* 课程标签实体
|
||||
* 课程标签关联实体
|
||||
*/
|
||||
export interface CourseTag extends BaseDTO {
|
||||
/** 课程ID */
|
||||
courseID?: string;
|
||||
/** 标签ID */
|
||||
tagID?: string;
|
||||
/** 创建者 */
|
||||
creator?: string;
|
||||
}
|
||||
|
||||
/**
|
||||
* 学习节点实体
|
||||
*/
|
||||
export interface CourseNode extends BaseDTO {
|
||||
/** 章节ID */
|
||||
chapterID?: string;
|
||||
/** 节点ID */
|
||||
nodeID?: string;
|
||||
/** 节点名称 */
|
||||
name?: string;
|
||||
/** 节点内容 */
|
||||
content?: string;
|
||||
/** 节点类型(0文章资源 1富文本 2其他上传文件) */
|
||||
nodeType?: number;
|
||||
/** 资源ID */
|
||||
resourceID?: string;
|
||||
/** 视频URL */
|
||||
videoUrl?: string;
|
||||
/** 节点时长(分钟) */
|
||||
duration?: number;
|
||||
/** 排序号 */
|
||||
orderNum?: number;
|
||||
/** 是否必修(1必修 0选修) */
|
||||
isRequired?: number;
|
||||
/** 创建者 */
|
||||
creator?: string;
|
||||
/** 更新者 */
|
||||
updater?: string;
|
||||
}
|
||||
|
||||
export interface ChapterVO extends BaseDTO {
|
||||
chapter: CourseChapter;
|
||||
nodes: CourseNode[];
|
||||
}
|
||||
|
||||
export interface CourseVO extends BaseDTO {
|
||||
course: Course;
|
||||
courseChapters: ChapterVO[];
|
||||
courseTags: CourseTag[];
|
||||
}
|
||||
|
||||
/**
|
||||
|
||||
@@ -5,7 +5,7 @@
|
||||
*/
|
||||
|
||||
import { BaseDTO } from '../base';
|
||||
|
||||
import { CollectionType } from '../enums';
|
||||
/**
|
||||
* 用户收藏实体
|
||||
*/
|
||||
@@ -13,9 +13,11 @@ export interface UserCollection extends BaseDTO {
|
||||
/** 用户ID */
|
||||
userID?: string;
|
||||
/** 收藏类型(1资源 2课程) */
|
||||
collectionType?: number;
|
||||
collectionType?: CollectionType;
|
||||
/** 收藏对象ID */
|
||||
collectionID?: string;
|
||||
/** 是否新增收藏(1是 -1否) */
|
||||
collectionValue?: number;
|
||||
}
|
||||
|
||||
/**
|
||||
|
||||
Reference in New Issue
Block a user