using Newtonsoft.Json; using System; using System.Collections.Generic; using System.Linq; using System.Text; using NPoco; namespace POSV.Entity { [Serializable] [JsonObject(MemberSerialization.OptIn)] [TableName("pos_store_print_image")] [PrimaryKey(new string[] { "id" }, AutoIncrement = false)] public class StorePrintImage : BaseEntity { public StorePrintImage() { } /// /// 租户ID /// [JsonProperty(PropertyName = "tenantId")] [Column("tenantId")] public string TenantId { get; set; } /// /// 打印位置(0票头-1票尾) /// [JsonProperty(PropertyName = "type")] [Column("type")] public int Type { get; set; } /// /// 字幕名称 /// [JsonProperty(PropertyName = "name")] [Column("name")] public string Name { get; set; } /// /// 图片宽度 /// [JsonProperty(PropertyName = "width")] [Column("width")] public int Width { get; set; } /// /// 图片高度 /// [JsonProperty(PropertyName = "height")] [Column("height")] public int Height { get; set; } /// /// 存储组名 /// [JsonProperty(PropertyName = "groupName")] [Column("groupName")] public string GroupName { get; set; } /// /// 存储文件名 /// [JsonProperty(PropertyName = "storageFileName")] [Column("storageFileName")] public string StorageFileName { get; set; } /// /// 文件服务器地址 /// [JsonProperty(PropertyName = "dfsAccessDomain")] [Column("dfsAccessDomain")] public string DfsAccessDomain { get; set; } /// /// 备注 /// [JsonProperty(PropertyName = "description")] [Column("description")] public string Description { get; set; } /// /// 扩展字段1 /// [JsonProperty(PropertyName = "ext1")] [Column("ext1")] public string Ext1 { get; set; } /// /// 扩展字段2 /// [JsonProperty(PropertyName = "ext2")] [Column("ext2")] public string Ext2 { get; set; } /// /// 扩展字段3 /// [JsonProperty(PropertyName = "ext3")] [Column("ext3")] public string Ext3 { get; set; } /// /// 文件服务器下载地址 /// [JsonProperty(PropertyName = "url")] [Ignore] public string Url { get { var url = string.Format("{0}/{1}/{2}", this.DfsAccessDomain, this.GroupName, this.StorageFileName); return url; } } } }