using System;
using System.Collections.Generic;
using GxPress.Common.Page;
namespace GxPress.Request.Media
{
///
/// 媒体
///
public class MediaRequest
{
///
/// 媒体类型
/// Article=1,
//书籍
//Book = 2,
////课程
//Curriculum = 3,
////音频
//Audio = 4,
////期刊
//Journal = 5,
////视频
//Video=6
///
public int MediaType { get; set; }
///
/// 标题
///
public string Title { get; set; }
///
/// 标题图片
///
public string ImageUrls { get; set; }
///
/// 简介
///
public string Summary { get; set; }
///
/// 作者
///
public string Author { get; set; }
///
/// 来源
///
public string Source { get; set; }
///
/// Json内容
///
public string Blocks { get; set; }
///
/// 审核状态
///
public bool IsChecked { get; set; }
///
/// 添加时间
///
public DateTime AddDate { get; set; }
///
/// 排序
///
public int Sort { get; set; }
///
/// 文章阅读量
///
public int ReadCount { get; set; }
///
/// 是否置顶
///
public bool IsTop { get; set; }
///
/// 分类ID
///
public int CategoryId { get; set; }
///
/// 标签ID
///
public int LableId { get; set; }
///
/// 是否推荐
///
public bool IsRecommend { get; set; }
///
/// 出版社
///
public string Press { get; set; }
///
/// 出版时间
///
public string PublishTime { get; set; }
///
/// 媒体类
///
public List MediaLibraryRequest { get; set; }
///
/// 媒体标签
///
public List MediaLableRequests { get; set; }
}
///
/// 媒体库
///
public class MediaLibraryRequest
{
///
/// 媒体ID
///
///
public int MediaId { get; set; }
///
/// 文件路径
///
public string FileUrl { get; set; }
///
/// 文件名称
///
public string Name { get; set; }
///
/// 排序
///
public int Sort { get; set; }
}
///
/// 媒体标签
///
public class MediaLableRequest
{
///
/// 媒体ID
///
///
public int MediaId { get; set; }
///
/// 标签ID
///
public string LableId { get; set; }
///
/// 标签名称
///
public string LableName { get; set; }
}
///
///
///
public class MediaSearchRequest : PageParameter
{
///
/// 0全部
///
///
public int MediaType { get; set; }
///
/// 0 全部 1删除 2未删除
///
///
public int IsDelete { get; set; }
///
/// 0 全部 1 包含 2 未包含
///
///
public int LibraryType { get; set; }
///
/// 搜索字段
///
///
public string KeyWord { get; set; }
///
/// 开始时间
///
///
public string BeginTime { get; set; }
///
/// 结束时间
///
///
public string EndTime { get; set; }
///
/// 是否上下架 0全部 1 上架 2下架
///
///
public int IsChecked { get; set; }
}
///
///
///
public class BookCatalogRequest
{
///
/// 媒体ID
///
///
public int MediaId { get; set; }
///
/// 目录名称
///
///
public string CatalogNameg { get; set; }
///
/// 目录ID
///
///
public string CatalogId { get; set; }
///
/// 路径
///
///
public string Path { get; set; }
///
/// 用户ID
///
///
public int UserId { get; set; }
}
///
/// 排行榜
///
public class RankingListRequest : Common.Page.PageParameter
{
///
/// 1 热搜 2热书榜 3 课程榜 4Top 100 新书 5文献头条 6试听榜 7大众热评 8Top 100 专著
///
///
public int DataTypeValue { get; set; }
///
/// 搜查
///
///
public string KeyWord { get; set; }
}
///
///
///
public class MediaIdsRequest
{
public int LableId { get; set; }
public List Ids { get; set; }
public int Limit { get; set; }
}
///
///
///
public class MediaLableIdRequest : Common.Page.PageParameter
{
public int LableId { get; set; }
public List Ids { get; set; }
}
///
/// 每日微课
///
public class MediaDayWeBookRequest : Common.Page.PageParameter
{
///
/// 名称
///
///
public string Name { get; set; }
///
/// 类型
///
///
public int TypeValue { get; set; }
}
///
/// 内容导航
///
public class MediaContentNavigationRequest : Common.Page.PageParameter
{
///
/// 导航ID
///
///
public int CategoryId { get; set; }
///
/// 媒体ID
///
///
public List MediaIds { get; set; }
}
///
/// 明栏
///
public class MediaStarLableRequest : Common.Page.PageParameter
{
///
/// 明栏ID
///
///
public int AttachId { get; set; }
///
/// 关键字
///
///
public string KeyWord { get; set; }
}
}