Backup/Discuz.Web.Services/API/Attachment.cs
(开头部分) 5KB这里只显示每个文件的开头 60 行。登录后可以解锁完整代码。
using System;
using System.Collections.Generic;
using System.Text;
using Newtonsoft.Json;
using System.Xml.Serialization;
namespace Discuz.Web.Services.API
{
public class Attachment
{
private int aid; //附件aid
private int uid; //对应的帖子书posterid
private int tid; //对应的主题tid
private int pid; //对应的帖子pid
private string postdatetime; //发布时间
private int readperm; //所需阅读权限
private string filename; //存储文件名
private string description; //描述
private string filetype; //文件类型
private long filesize; //文件尺寸
private string attachment; //附件原始文件名
private int downloads; //下载次数
private int attachprice; //附件的售价
private int getattachperm; //下载附件权限
private int attachimgpost; //附件是否为图片
private int allowread; //附件是否允许读取
private string preview = string.Empty; //预览信息
private int isbought = 0;//附件是否被买卖
private int inserted = 0; //是否已插入到内容
/// <summary>
/// 下载附件权限
/// </summary>
[JsonProperty("download_perm")]
[XmlElement("download_perm")]
public int DownloadPerm
{
get { return getattachperm; }
set { getattachperm = value; }
}
/// <summary>
/// 附件是否为图片
/// </summary>
[JsonProperty("is_image")]
[XmlElement("is_image")]
public int IsImage
{
get { return attachimgpost; }
set { attachimgpost = value; }
}
/// <summary>
/// 附件是否允许读取
/// </summary>
[JsonProperty("allow_read")]
[XmlElement("allow_read")]
public int AllowRead
后面还有 174 行代码,解锁后查看完整代码
24 小时内免费解锁 3 个项目,之后 1 算力/个。 规则说明
AI 解读 AI
登录后可用,每次 10 算力,解读结果公开显示在下面。
还没有人解读过这个文件。
