Backup/Discuz.Entity/Forum/AttachmentInfo.cs
(开头部分) 5KB这里只显示每个文件的开头 60 行。登录后可以解锁完整代码。
using System;
using Newtonsoft.Json;
using System.Xml.Serialization;
namespace Discuz.Entity
{
/// <summary>
/// 获取附件的类型
/// </summary>
public enum AttachmentFileType
{
/// <summary>
/// 文件附件
/// </summary>
FileAttachment,
/// <summary>
/// 图片附件
/// </summary>
ImageAttachment ,
/// <summary>
/// 全部附件
/// </summary>
All
}
/// <summary>
/// 附件信息描述类
/// </summary>
public class AttachmentInfo
{
private int m_aid; //附件aid
private int m_uid; //对应的帖子书posterid
private int m_tid; //对应的主题tid
private int m_pid; //对应的帖子pid
private string m_postdatetime = string.Empty; //发布时间
private int m_readperm; //所需阅读权限
private string m_filename = string.Empty; //存储文件名
private string m_description = string.Empty; //描述
private string m_filetype = string.Empty; //文件类型
private long m_filesize; //文件尺寸
private string m_attachment = string.Empty; //附件原始文件名
private int m_downloads; //下载次数
private int m_attachprice; //附件的售价
private int m_width; //图片附件宽度
private int m_height; //图片附件高度
private int m_isimage; //附件是否为flash上传图片,是为1,否为0
private int m_sys_index; //非数据库字段,用来代替上传文件所对应上传组件(file)的Index
private string m_sys_noupload = string.Empty; //非数据库字段,用来存放未被上传的文件名
///<summary>
///附件aid
///</summary>
public int Aid
{
get { return m_aid; }
set { m_aid = value; }
}
///<summary>
后面还有 154 行代码,解锁后查看完整代码
24 小时内免费解锁 3 个项目,之后 1 算力/个。 规则说明
AI 解读 AI
登录后可用,每次 10 算力,解读结果公开显示在下面。
还没有人解读过这个文件。
