yuanrf il y a 2 ans
Parent
commit
8c3e4d5232

+ 3 - 2
OASystem/OASystem.Api/Controllers/SystemController.cs

@@ -1,5 +1,7 @@
 
 
+using OASystem.Infrastructure.Repositories.System;
+
 namespace OASystem.API.Controllers
 {
     /// <summary>
@@ -464,13 +466,12 @@ namespace OASystem.API.Controllers
         /// </summary>
         /// <param name="dto"></param>
         /// <returns></returns>
-        [Authorize]
+        //[Authorize]
         [HttpPost]
         [ProducesResponseType(typeof(JsonView), StatusCodes.Status200OK)]
         public async Task<IActionResult> GetAuth(AuthDto dto)
         {
             Result result = new Result();
-
             //模块数据
             var setDataResult = await _setDataRepository.GetSySDefultModule(_setDataRepository);
             if (setDataResult.Code != 0)

+ 4 - 0
OASystem/OASystem.Infrastructure/Repositories/BaseRepository.cs

@@ -187,6 +187,10 @@ namespace OASystem.Infrastructure.Repositories
         {
             return _sqlSugar.Insertable(entity).ExecuteCommandAsync();
         }
+        public virtual int AddsAsync<T>(List<T> entity) where T : EntityBase, new()
+        {
+            return _sqlSugar.Insertable<T>(entity).ExecuteCommand();
+        }
         public virtual ISugarQueryable<T> Query<T>(Expression<Func<T, bool>> exp) where T : EntityBase, new()
         {
             return _sqlSugar.Queryable<T>().Where(s => s.IsDel < 1).Where(exp);