using System;
using System.Collections.Generic;
using System.Text;
using GxPress.EnumConst;
namespace GxPress.Result
{
///
///
///
public class ContentJsonData
{
///
/// 作者 文章来源
///
public string Author { get; set; }
///
/// 类型
///
public string TextType { get; set; }
///
/// ID
///
public int Id { get; set; }
///
/// 地址
///
public string File { get; set; }
///
/// 文本类容
///
public string Text { get; set; }
///
/// 类型1 txt文字 2 img:图片 3 file:文件 4 Article:文章 5 notice通知 6 topic话题 7 note笔记 8 collection收藏 9站内信 10小组 11 会议ß 12 收藏文件夹 13 笔记文件夹 14 审批 400会议纪要
///
public int Type { get; set; }
///
///
///
///
public int TypeValue { get => SetType((TextEditorTypeConst)Type); set => SetType((TextEditorTypeConst)Type); }
///
/// 收藏笔记来源用户
///
///
public int SourceUserId { get; set; }
///
/// 设置type 100 文章 1文本 2话题 3 收藏 4笔记 5通知 6站内信 7小组 12 收藏文件夹 13笔记文件夹 14工作流审批 300 文件 301图片 400会议纪要 500会议详情 601 财务报表 602人事报表 603 出版报表 21话题笔记
///
///
///
public int SetType(TextEditorTypeConst type)
{
if (type == TextEditorTypeConst.Image)
return OldTextEditorTypeConst.Image.GetHashCode();
if (type == TextEditorTypeConst.File)
return OldTextEditorTypeConst.File.GetHashCode();
if (type == TextEditorTypeConst.Article)
return OldTextEditorTypeConst.Article.GetHashCode();
if (type == TextEditorTypeConst.Topic)
return OldTextEditorTypeConst.Topic.GetHashCode();
if (type == TextEditorTypeConst.Collect)
return OldTextEditorTypeConst.Collect.GetHashCode();
if (type == TextEditorTypeConst.Note)
return OldTextEditorTypeConst.Note.GetHashCode();
if (type == TextEditorTypeConst.TopicNote)
return OldTextEditorTypeConst.Note.GetHashCode();
if (type == TextEditorTypeConst.Missive)
return OldTextEditorTypeConst.Missive.GetHashCode();
if (type == TextEditorTypeConst.Group)
return OldTextEditorTypeConst.Group.GetHashCode();
return type.GetHashCode();
}
///
/// 内容
///
public string Content { get; set; }
///
/// 标题
///
public string Title { get; set; }
///
/// 文件名称
///
public string FileName { get; set; }
///
/// 数据
///
public DateTime? CreatedData { get; set; }
///
/// 文章图片地址
///
public List ArticleImgUrl { get; set; }
///
/// 阅读数量
///
public int ReadCount { get; set; }
///
/// 文件个数
///
public int FileCount { get; set; }
///
/// 昵称
///
///
public string NickName { get; set; }
}
///
/// 收藏
///
public class CollectionContentJsonData
{
///
/// 作者 文章来源
///
public string Author { get; set; }
///
/// 类型
///
public string TextType { get; set; }
///
/// ID
///
public int Id { get; set; }
///
/// 地址
///
public string File { get; set; }
///
/// 文本类容
///
public string Text { get; set; }
///
/// 类型1 txt文字 2 img:图片 3 file:文件 4 Article:文章 5 notice通知 6 topic话题 7 note笔记 8 collection收藏 9站内信 10小组 11 会议ß 12 收藏文件夹 13 笔记文件夹 14 审批 400会议纪要
///
public int Type { get; set; }
///
///
///
///
public int TypeValue { get => SetType((TextEditorTypeConst)Type); set => SetType((TextEditorTypeConst)Type); }
///
/// 设置type 100文章 1文本 2话题 3 收藏 4笔记 5通知 6站内信 7小组 12 收藏文件夹 13笔记文件夹 14工作流审批 300 文件 301图片 400会议纪要 500会议详情 601 财务报表 602人事报表 603 出版报表
///
///
///
public int SetType(TextEditorTypeConst type)
{
if (type == TextEditorTypeConst.File)
return OldTextEditorTypeConst.File.GetHashCode();
if (type == TextEditorTypeConst.Image)
return OldTextEditorTypeConst.Image.GetHashCode();
if (type == TextEditorTypeConst.Article)
return OldTextEditorTypeConst.Article.GetHashCode();
if (type == TextEditorTypeConst.Topic)
return OldTextEditorTypeConst.Topic.GetHashCode();
if (type == TextEditorTypeConst.Collect)
return OldTextEditorTypeConst.Collect.GetHashCode();
if (type == TextEditorTypeConst.Note)
return OldTextEditorTypeConst.Note.GetHashCode();
if (type == TextEditorTypeConst.Missive)
return OldTextEditorTypeConst.Missive.GetHashCode();
if (type == TextEditorTypeConst.Group)
return OldTextEditorTypeConst.Group.GetHashCode();
return type.GetHashCode();
}
///
///
///
public string Content { get; set; }
///
/// 标题
///
public string Title { get; set; }
///
/// 文件名称
///
public string FileName { get; set; }
///
/// 时间
///
public DateTime? CreatedData { get; set; }
///
/// 文章图片地址
///
public List ArticleImgUrl { get; set; }
///
/// 阅读数量
///
public int ReadCount { get; set; }
///
/// 文件个数
///
public int FileCount { get; set; }
///
/// 类型1 txt文字 2 img:图片 3 file:文件 4 Article:文章 5 notice通知 6 topic话题 7 note笔记 8 collection收藏 9站内信 10小组 11会议
///
public CollectionContentJsonData Data { get; set; }
///
/// 姓名
///
public string Name { get; set; }
///
/// 头像
///
public string AvatarUrl { get; set; }
///
/// 昵称
///
///
public string NickName { get; set; }
///
/// 通知 站内信 1 正常 2 匿名信
///
///
public int MissiveType { get; set; }
///
/// 是否存在小组话题
///
///
public bool IsGroup { get; set; }
///
/// 小组ID
///
///
public int GroupId { get; set; }
///
/// 小组名称
///
///
public string GroupName { get; set; }
///
/// 文件大小
///
///
public int FileSize { get; set; }
///
/// 缩略图
///
///
public string MinFile { get; set; }
///
/// 收藏笔记来源用户
///
///
public int SourceUserId { get; set; }
}
}