李昊 4 years ago
parent
commit
133cc851ff
1 changed files with 5 additions and 4 deletions
  1. 5 4
      gx_api/GxPress/Api/GxPress.Api/AppControllers/SlideController.cs

+ 5 - 4
gx_api/GxPress/Api/GxPress.Api/AppControllers/SlideController.cs

@@ -23,15 +23,16 @@ namespace GxPress.Api.AppControllers
             _slideRepository = slideRepository;
         }
 
-      
+
         /// <summary>
         /// App列表
         /// </summary>
         /// <returns></returns>
-        [HttpPost("list")]
-        public async Task<PagedList<Slide>> GetList(SlideSearchRequest request)
+        [HttpGet("list")]
+        public async Task<PagedList<Slide>> GetList()
         {
-            request.TypeId=1;
+            var request = new SlideSearchRequest();
+            request.TypeId = 1;
             var result = await _slideRepository.GetListAsync(request);
             return result;
         }