From 7fd0048b29b61f70bc3ec6e7ed25d2e305004a9a Mon Sep 17 00:00:00 2001
From: pangwenpeng <17302161021@163.com>
Date: Wed, 29 May 2024 17:32:21 +0800
Subject: [PATCH] =?UTF-8?q?=E5=8E=BB=E6=8E=89=E5=A4=9A=E4=BD=99=E7=9A=84?=
 =?UTF-8?q?=E4=B8=8D=E8=A6=81=E4=BB=A3=E7=A0=81?=
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit
---
 langguanApi/Controllers/MeauController.cs     | 24 +-------
 langguanApi/Controllers/RoleController.cs     | 12 +---
 .../Model/SystemConfigurationEntity/Meau.cs   | 32 -----------
 .../SystemConfigurationEntity/UserRole.cs     | 25 ---------
 langguanApi/Service/MeauService.cs            | 56 +------------------
 langguanApi/Service/RoleService.cs            | 44 ++-------------
 6 files changed, 12 insertions(+), 181 deletions(-)
 delete mode 100644 langguanApi/Model/SystemConfigurationEntity/Meau.cs
 delete mode 100644 langguanApi/Model/SystemConfigurationEntity/UserRole.cs
diff --git a/langguanApi/Controllers/MeauController.cs b/langguanApi/Controllers/MeauController.cs
index 39d5710..327413c 100644
--- a/langguanApi/Controllers/MeauController.cs
+++ b/langguanApi/Controllers/MeauController.cs
@@ -17,27 +17,7 @@ namespace langguanApi.Controllers
         {
             _meuaService = meauService;
         }
-        /// 
-        /// 获取菜单列表
-        /// 
-        /// 
-        /// 
-        [HttpGet("GetMenuList")]
-        public async Task GetMenuList([FromQuery] reqpage input)
-        {
-            var result = await _meuaService.GetMeauList(input);
-            return Ok(result);
-        }
-        /// 
-        /// 新增菜单
-        /// 
-        /// 
-        /// 
-        [HttpPost("AddMeau")]
-        public async Task AddMeau([FromBody] MeauDto input)
-        {
-            var result = await _meuaService.AddMeau(input);
-            return Ok(result);
-        }
+      
+    
     }
 }
diff --git a/langguanApi/Controllers/RoleController.cs b/langguanApi/Controllers/RoleController.cs
index 2ee96d6..59874aa 100644
--- a/langguanApi/Controllers/RoleController.cs
+++ b/langguanApi/Controllers/RoleController.cs
@@ -90,16 +90,6 @@ namespace langguanApi.Controllers
                 Select(s => new { s.Id, s.RoleName })
             });
         }
-        /// 
-        ///新增角色
-        /// 
-        /// 
-        /// 
-        [HttpPost("AddRole")]
-        public async Task AddRole([FromBody] RoleDto input)
-        {
-            var result = await _roleService.AddRole(input);
-            return Ok(result);
-        }
+    
     }
 }
diff --git a/langguanApi/Model/SystemConfigurationEntity/Meau.cs b/langguanApi/Model/SystemConfigurationEntity/Meau.cs
deleted file mode 100644
index 192ba51..0000000
--- a/langguanApi/Model/SystemConfigurationEntity/Meau.cs
+++ /dev/null
@@ -1,32 +0,0 @@
-namespace langguanApi.Model.SystemConfigurationEntity
-{
-   //菜单实体类
-    public class Meau : BaseModel
-    {
-        /// 
-        /// 父菜单ID 默认首页为1级,有组织为2级,无组织为2级,下面的子菜单为3级
-        /// 
-        public string  ParentId { get; set; }
-        /// 
-        /// 菜单编码
-        /// 
-        public string MenuCode { get; set; }
-        /// 
-        /// 菜单名称
-        /// 
-        public string MenuName { get; set; }
-        /// 
-        /// 可空,菜单跳转路径
-        /// 
-        public string Url { get; set; }
-        /// 
-        /// 排序
-        /// 
-        public int Sort { get; set; }
-        /// 
-        /// 是否激活
-        /// 
-        public bool IsActive { get; set; }
-
-    }
-}
diff --git a/langguanApi/Model/SystemConfigurationEntity/UserRole.cs b/langguanApi/Model/SystemConfigurationEntity/UserRole.cs
deleted file mode 100644
index dc186be..0000000
--- a/langguanApi/Model/SystemConfigurationEntity/UserRole.cs
+++ /dev/null
@@ -1,25 +0,0 @@
-namespace langguanApi.Model.SystemConfigurationEntity
-{
-    /// 
-    /// 角色实体类
-    /// 
-    public class UserRole : BaseModel
-    {
-        /// 
-        /// 角色名称
-        /// 
-        public string RoleName { get; set; }
-        /// 
-        /// 多个菜单用,隔开
-        /// 
-        public string Meaus { get; set; }
-        /// 
-        /// 是否管理员
-        /// 
-        public bool IsAdmin { get; set; }
-        /// 
-        /// 角色描述
-        /// 
-        public string Description { get; set; }
-    }
-}
diff --git a/langguanApi/Service/MeauService.cs b/langguanApi/Service/MeauService.cs
index eed9241..9309988 100644
--- a/langguanApi/Service/MeauService.cs
+++ b/langguanApi/Service/MeauService.cs
@@ -1,7 +1,7 @@
 using langguanApi.Extensions.AutoDI;
 using langguanApi.Model;
 using langguanApi.Model.Dto.SystemConfigurationDto;
-using langguanApi.Model.SystemConfigurationEntity;
+using langguanApi.Model.Entity;
 using Mapster;
 using System.Linq.Expressions;
 
@@ -11,62 +11,12 @@ namespace langguanApi.Service
     ///  菜单服务
     /// 
     [ServiceInjection(InjectionType.Transient)]
-    public class MeauService : BaseService
+    public class MeauService : BaseService