成就等界面接口调整
This commit is contained in:
@@ -178,6 +178,79 @@ export interface ResourceRecommend extends BaseDTO {
|
||||
status?: number;
|
||||
}
|
||||
|
||||
/**
|
||||
* 资源推荐VO(平铺结构,包含资源信息和权限信息)
|
||||
*/
|
||||
export interface ResourceRecommendVO extends BaseDTO {
|
||||
// ==================== 推荐表字段 ====================
|
||||
/** 推荐ID */
|
||||
id?: string;
|
||||
/** 资源ID */
|
||||
resourceID?: string;
|
||||
/** 推荐类型(1-热门资源,2-思政资源) */
|
||||
recommendType?: number;
|
||||
/** 排序号 */
|
||||
orderNum?: number;
|
||||
/** 推荐理由 */
|
||||
reason?: string;
|
||||
/** 推荐创建者 */
|
||||
creator?: string;
|
||||
/** 推荐更新者 */
|
||||
updater?: string;
|
||||
/** 推荐创建时间 */
|
||||
createTime?: string;
|
||||
/** 推荐更新时间 */
|
||||
updateTime?: string;
|
||||
/** 推荐删除时间 */
|
||||
deleteTime?: string;
|
||||
/** 推荐是否删除 */
|
||||
deleted?: boolean;
|
||||
|
||||
// ==================== 资源表字段 ====================
|
||||
/** 资源标题 */
|
||||
title?: string;
|
||||
/** 资源简介 */
|
||||
summary?: string;
|
||||
/** 封面图片 */
|
||||
coverImage?: string;
|
||||
/** 标签ID(文章分类标签,tagType=1) */
|
||||
tagID?: string;
|
||||
/** 作者 */
|
||||
author?: string;
|
||||
/** 来源 */
|
||||
source?: string;
|
||||
/** 来源URL */
|
||||
sourceUrl?: string;
|
||||
/** 浏览次数 */
|
||||
viewCount?: number;
|
||||
/** 点赞次数 */
|
||||
likeCount?: number;
|
||||
/** 收藏次数 */
|
||||
collectCount?: number;
|
||||
/** 状态(0草稿 1已发布 2下架) */
|
||||
status?: number;
|
||||
/** 是否推荐 */
|
||||
isRecommend?: boolean;
|
||||
/** 是否轮播 */
|
||||
isBanner?: boolean;
|
||||
/** 发布时间 */
|
||||
publishTime?: string;
|
||||
/** 资源创建者 */
|
||||
resourceCreator?: string;
|
||||
/** 资源更新者 */
|
||||
resourceUpdater?: string;
|
||||
/** 资源创建时间 */
|
||||
resourceCreateTime?: string;
|
||||
/** 资源更新时间 */
|
||||
resourceUpdateTime?: string;
|
||||
|
||||
// ==================== 权限字段 ====================
|
||||
/** 是否可读 */
|
||||
canRead?: boolean;
|
||||
/** 是否可写 */
|
||||
canWrite?: boolean;
|
||||
}
|
||||
|
||||
/**
|
||||
* 数据采集配置实体
|
||||
*/
|
||||
|
||||
@@ -5,6 +5,7 @@
|
||||
*/
|
||||
|
||||
import type { BaseDTO } from '@/types';
|
||||
import type { Tag } from '@/types/resource';
|
||||
|
||||
|
||||
/**
|
||||
@@ -344,6 +345,8 @@ export interface TaskVO extends BaseDTO {
|
||||
taskResources: TaskItemVO[];
|
||||
/** 任务关联的用户列表 */
|
||||
taskUsers: TaskItemVO[];
|
||||
/** 任务关联的标签列表 */
|
||||
taskTags?: Tag[];
|
||||
/** 总任务数 */
|
||||
totalTaskNum?: number;
|
||||
/** 已完成任务数 */
|
||||
|
||||
@@ -20,6 +20,67 @@ export interface UserCollection extends BaseDTO {
|
||||
collectionValue?: number;
|
||||
}
|
||||
|
||||
/**
|
||||
* 用户收藏VO - 扁平化收藏信息和关联资源/课程详情
|
||||
*/
|
||||
export interface UserCollectionVO extends BaseDTO {
|
||||
// ========== 收藏基本信息 ==========
|
||||
/** 用户ID */
|
||||
userID?: string;
|
||||
/** 收藏类型(1资源 2课程) */
|
||||
collectionType?: CollectionType;
|
||||
/** 收藏对象ID */
|
||||
collectionID?: string;
|
||||
/** 是否新增收藏(1是 -1否) */
|
||||
collectionValue?: number;
|
||||
/** 收藏时间 */
|
||||
collectionTime?: string;
|
||||
|
||||
// ========== 资源详情(collectionType=1时有效) ==========
|
||||
/** 资源ID */
|
||||
resourceID?: string;
|
||||
/** 资源标题 */
|
||||
title?: string;
|
||||
/** 资源内容 */
|
||||
content?: string;
|
||||
/** 资源简介 */
|
||||
summary?: string;
|
||||
/** 封面图片 */
|
||||
coverImage?: string;
|
||||
/** 标签ID */
|
||||
tagID?: string;
|
||||
/** 作者 */
|
||||
author?: string;
|
||||
/** 来源 */
|
||||
source?: string;
|
||||
/** 浏览次数 */
|
||||
viewCount?: number;
|
||||
/** 点赞次数 */
|
||||
likeCount?: number;
|
||||
/** 收藏次数 */
|
||||
collectCount?: number;
|
||||
/** 资源状态 */
|
||||
status?: number;
|
||||
/** 发布时间 */
|
||||
publishTime?: string;
|
||||
|
||||
// ========== 课程详情(collectionType=2时有效) ==========
|
||||
/** 课程ID */
|
||||
courseID?: string;
|
||||
/** 课程名称 */
|
||||
courseName?: string;
|
||||
/** 课程描述 */
|
||||
description?: string;
|
||||
/** 课程时长(分钟) */
|
||||
duration?: number;
|
||||
/** 授课老师 */
|
||||
teacher?: string;
|
||||
/** 课程状态 */
|
||||
courseStatus?: number;
|
||||
/** 学习人数 */
|
||||
learnCount?: number;
|
||||
}
|
||||
|
||||
/**
|
||||
* 用户浏览记录实体
|
||||
*/
|
||||
|
||||
Reference in New Issue
Block a user