You cannot select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
74 lines
1.6 KiB
C#
74 lines
1.6 KiB
C#
using System;
|
|
using System.Collections.Generic;
|
|
using System.Linq;
|
|
using System.Text;
|
|
using Newtonsoft.Json;
|
|
using NPoco;
|
|
|
|
namespace POSV.Entity
|
|
{
|
|
/// <summary>
|
|
/// 系统可用资源表
|
|
/// </summary>
|
|
[Serializable]
|
|
[JsonObject(MemberSerialization.OptIn)]
|
|
[TableName("pos_resources")]
|
|
[PrimaryKey(new string[] { "Id" } , AutoIncrement = false)]
|
|
public class Resources : BaseEntity
|
|
{
|
|
public Resources()
|
|
{
|
|
|
|
}
|
|
|
|
/**
|
|
* 租户ID
|
|
*/
|
|
[JsonProperty(PropertyName = "tenantId")]
|
|
[Column("tenantId")]
|
|
public string TenantId { get; set; }
|
|
|
|
/**
|
|
* 资源分组
|
|
*/
|
|
[JsonProperty(PropertyName = "group")]
|
|
[Column("group")]
|
|
public string Group { get; set; }
|
|
|
|
/**
|
|
* 资源名称
|
|
*/
|
|
[JsonProperty(PropertyName = "name")]
|
|
[Column("name")]
|
|
public string Name { get; set; }
|
|
|
|
/**
|
|
* 资源标识
|
|
*/
|
|
[JsonProperty(PropertyName = "keycode")]
|
|
[Column("keycode")]
|
|
public string KeyCode { get; set; }
|
|
|
|
/**
|
|
* 资源数据
|
|
*/
|
|
[JsonProperty(PropertyName = "keydata")]
|
|
[Column("keydata")]
|
|
public string KeyData { get; set; }
|
|
|
|
/**
|
|
* 是否启用
|
|
*/
|
|
[JsonProperty(PropertyName = "enable")]
|
|
[Column("enable")]
|
|
public int Enable { get; set; }
|
|
|
|
/// <summary>
|
|
/// 权限控制码
|
|
/// </summary>
|
|
[JsonProperty(PropertyName = "permission")]
|
|
[Column("permission")]
|
|
public string PermissionCode { get; set; }
|
|
}
|
|
}
|