58 lines
		
	
	
		
			1.7 KiB
		
	
	
	
		
			C#
		
	
	
	
			
		
		
	
	
			58 lines
		
	
	
		
			1.7 KiB
		
	
	
	
		
			C#
		
	
	
	
using System;
 | 
						|
using System.Collections.Generic;
 | 
						|
using System.Linq;
 | 
						|
using SqlSugar;
 | 
						|
namespace DM_Weight.Models
 | 
						|
{
 | 
						|
    /// <summary>
 | 
						|
    /// 
 | 
						|
    ///</summary>
 | 
						|
    [SugarTable("role")]
 | 
						|
    public class RoleDm
 | 
						|
    {
 | 
						|
        /// <summary>
 | 
						|
        ///  
 | 
						|
        ///</summary>
 | 
						|
         [SugarColumn(ColumnName="id" ,IsPrimaryKey = true ,IsIdentity = true  )]
 | 
						|
         public int? Id { get; set; }
 | 
						|
        /// <summary>
 | 
						|
        ///  
 | 
						|
        ///</summary>
 | 
						|
         [SugarColumn(ColumnName="role_name"    )]
 | 
						|
         public string RoleName { get; set; }
 | 
						|
        /// <summary>
 | 
						|
        ///  
 | 
						|
        ///</summary>
 | 
						|
        //[SugarColumn(ColumnName="role_des"    )]
 | 
						|
        //public string RoleDes { get; set; }
 | 
						|
        /// <summary>
 | 
						|
        ///  
 | 
						|
        ///</summary>
 | 
						|
        ///[SugarColumn(ColumnName="permissions"    )]
 | 
						|
        [SugarColumn(ColumnName = "permissions", ColumnDataType = "varchar(4000)" /*可以设置类型*/, IsJson = true)]//必填
 | 
						|
        public List<PremissionDm> Permissions { get; set; }
 | 
						|
        /// <summary>
 | 
						|
        ///  
 | 
						|
        ///</summary>
 | 
						|
         [SugarColumn(ColumnName="machine_id"    )]
 | 
						|
         public string MachineId { get; set; }
 | 
						|
        /// <summary>
 | 
						|
        ///  1-8号抽屉
 | 
						|
        ///</summary>
 | 
						|
        [SugarColumn(ColumnName = "FirstEightChecked")]
 | 
						|
        public string FirstEightChecked { get; set; } = "0";
 | 
						|
        /// <summary>
 | 
						|
        ///  9-16号抽屉
 | 
						|
        ///</summary>
 | 
						|
        [SugarColumn(ColumnName= "LastEightChecked")]
 | 
						|
         public string LastEightChecked { get; set; } = "0";
 | 
						|
        /// <summary>
 | 
						|
        ///  17号抽屉
 | 
						|
        ///</summary>
 | 
						|
        [SugarColumn(ColumnName= "StorageBoxChecked")]
 | 
						|
         public string StorageBoxChecked { get; set; } = "0";
 | 
						|
 | 
						|
 | 
						|
    }
 | 
						|
}
 |