You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
38 lines
1.2 KiB
38 lines
1.2 KiB
using Mirle.Component.Database.Model.WES;
|
|
using System.ComponentModel.DataAnnotations;
|
|
using System.ComponentModel.DataAnnotations.Schema;
|
|
using System.Text.Json.Serialization;
|
|
|
|
namespace Mirle.Component.Database.Model
|
|
{
|
|
/// <summary>
|
|
/// 使用者與功能基本資料類別
|
|
/// </summary>
|
|
[Table("MAP_USER_AND_FUNC")]
|
|
public class MapUserAndFuncDto : CommonDto
|
|
{
|
|
/// <summary>
|
|
/// 使用者帳號
|
|
/// </summary>
|
|
[Column(Name = "USER_ID")]
|
|
[Required, Key, StringLength(30), JsonPropertyName("USER_ID"), JsonPropertyOrder(1)]
|
|
public string USER_ID { get; set; }
|
|
/// <summary>
|
|
/// 功能編號
|
|
/// </summary>
|
|
[Column(Name = "FUNC_ID")]
|
|
[Required, Key, JsonPropertyName("FUNC_ID"), JsonPropertyOrder(2)]
|
|
public int FUNC_ID { get; set; }
|
|
/// <summary>
|
|
///使用者權限
|
|
/// </summary>
|
|
/// <value>
|
|
/// 0 = View <br/>
|
|
/// 1 = Edit <br/>
|
|
/// 2 = View/Edit <br/>
|
|
/// </value>
|
|
[Column(Name = "PERMISSION")]
|
|
[Required, JsonPropertyName("PERMISSION"), JsonPropertyOrder(3)]
|
|
public int PERMISSION { get; set; }
|
|
}
|
|
}
|