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 { /// /// 群組與功能基本資料類別 /// [Table("MAP_GROUP_AND_FUNC")] public class MapGroupAndFuncDto : CommonDto { /// /// 群組名稱 /// [Column(Name = "GROUP_NAME")] [Required, Key, StringLength(50), JsonPropertyName("GROUP_NAME"), JsonPropertyOrder(1)] public string GROUP_NAME { get; set; } /// /// 功能名稱 /// [Column(Name = "FUNC_ID")] [Required, Key, JsonPropertyName("FUNC_ID"), JsonPropertyOrder(2)] public int FUNC_ID { get; set; } /// /// 群組權限 /// /// /// 0 = View
/// 1 = Edit
/// 2 = View/Edit
///
[Column(Name = "PERMISSION")] [Required, JsonPropertyName("PERMISSION"), JsonPropertyOrder(3)] public int PERMISSION { get; set; } } }