From b80a3aa37ac5bed12dd6c49e9e731d5f375f80d9 Mon Sep 17 00:00:00 2001
From: 移动系统liao <liaoxujun@qq.com>
Date: 星期四, 26 十二月 2024 09:55:01 +0800
Subject: [PATCH] 增加sw文档关闭配置
---
DocumentServiceAPI.Model/Permissions/TenantPermissions.cs | 72 +++++++++++++++++++++++++++++++++++
1 files changed, 71 insertions(+), 1 deletions(-)
diff --git a/DocumentServiceAPI.Model/Permissions/TenantPermissions.cs b/DocumentServiceAPI.Model/Permissions/TenantPermissions.cs
index bdb4a9c..1488fd4 100644
--- a/DocumentServiceAPI.Model/Permissions/TenantPermissions.cs
+++ b/DocumentServiceAPI.Model/Permissions/TenantPermissions.cs
@@ -1,6 +1,9 @@
锘縰sing DocumentServiceAPI.Enum;
+using SqlSugar;
using System;
using System.Collections.Generic;
+using System.ComponentModel;
+using System.ComponentModel.DataAnnotations;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
@@ -10,8 +13,75 @@
/// <summary>
/// 绉熸埛鏉冮檺
/// </summary>
- public class TenantPermissions
+ public class TenantPermissions: BaseModel
{
+ /// <summary>
+ /// id
+ /// </summary>
+ [Display(Name = "id ")]
+ [SugarColumn(ColumnDescription = "id " ,IsPrimaryKey =true,IsIdentity =true)]
+ public int Id { get; set; }
+
+ /// <summary>
+ /// 绉熸埛ID
+ /// </summary>
+ [Display(Name = "绉熸埛ID ")]
+ [SugarColumn(ColumnDescription = "绉熸埛ID ")]
+ public int TenantId { get; set; }
+
+
+ /// <summary>
+ /// 鏈�澶т紒涓氫釜鏁�
+ /// </summary>
+ [Display(Name = "鏈�澶т紒涓氫釜鏁� ")]
+ [SugarColumn(ColumnDescription = "鏈�澶т紒涓氫釜鏁� ")]
+ public int UnitMaxCount { get; set; }
+
+ /// <summary>
+ /// 鏈�澶у憳宸ユ暟閲�
+ /// </summary>
+ [Display(Name = "鏈�澶у憳宸ユ暟閲� ")]
+ [SugarColumn(ColumnDescription = "鏈�澶у憳宸ユ暟閲� ")]
+ public int EmployeeMaxCount { get; set; }
+
+
+ /// <summary>
+ /// 鍒版湡鏃堕棿
+ /// </summary>
+ [Display(Name = "鍒版湡鏃堕棿 ")]
+ [SugarColumn(ColumnDescription = "鍒版湡鏃堕棿 ")]
+ public DateTime OverTime { get; set; }
+
+ /// <summary>
+ /// 鎻忚堪
+ /// </summary>
+ [Display(Name = "鎻忚堪 ")]
+ [SugarColumn(ColumnDescription = "鎻忚堪 ")]
+ public string? Description { get; set; }
+
+
+ /// <summary>
+ /// 鏉冮檺鍒嗙被
+ /// </summary>
+
+ public TenantPermissionsType PermissionsType { get; set; }
+ }
+
+ /// <summary>
+ /// 鏉冮檺琛ㄧ被鍨�
+ /// </summary>
+ public enum TenantPermissionsType
+ {
+ /// <summary>
+ /// 绠$悊绯荤粺
+ /// </summary>
+ [Description( "绠$悊绯荤粺鏉冮檺")]
+ Manage,
+ /// <summary>
+ /// 鏍囦功鍒朵綔
+ /// </summary>銆�
+ [Description("绠$悊绯荤粺鏉冮檺")]
+ Document
}
}
--
Gitblit v1.9.1