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_GROUP_AND_FUNC")]
|
|
public class MapGroupAndFuncDto : CommonDto
|
|
{
|
|
/// <summary>
|
|
/// 群組名稱
|
|
/// </summary>
|
|
[Column(Name = "GROUP_NAME")]
|
|
[Required, Key, StringLength(50), JsonPropertyName("GROUP_NAME"), JsonPropertyOrder(1)]
|
|
public string GROUP_NAME { 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; }
|
|
}
|
|
}
|