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