diff --git a/OpenAuth.App/ServiceApp/GoView/GoViewProjectApp.cs b/OpenAuth.App/ServiceApp/GoView/GoViewProjectApp.cs index dd9cdc0..f0703b5 100644 --- a/OpenAuth.App/ServiceApp/GoView/GoViewProjectApp.cs +++ b/OpenAuth.App/ServiceApp/GoView/GoViewProjectApp.cs @@ -11,6 +11,7 @@ using OpenAuth.App.ServiceApp.GoView.Response; using OpenAuth.Repository; using OpenAuth.Repository.Domain; using OpenAuth.Repository.Domain.GoView; +using Org.BouncyCastle.Ocsp; using SqlSugar; namespace OpenAuth.App.ServiceApp.GoView; @@ -81,6 +82,7 @@ public class GoViewProjectApp : SqlSugarBaseApp { RefAsync total = 0; var list = await Repository.AsQueryable() + .WhereIF(page.state != null,a=>a.State == page.state) .ToPageListAsync(page.page, page.limit, total); return new Response>>() { diff --git a/OpenAuth.App/ServiceApp/GoView/Request/GoViewProjectPage.cs b/OpenAuth.App/ServiceApp/GoView/Request/GoViewProjectPage.cs index fb70a5f..6810357 100644 --- a/OpenAuth.App/ServiceApp/GoView/Request/GoViewProjectPage.cs +++ b/OpenAuth.App/ServiceApp/GoView/Request/GoViewProjectPage.cs @@ -5,4 +5,8 @@ namespace OpenAuth.App.ServiceApp.GoView.Request; public class GoViewProjectPage : PageReq { + /// + /// -1 1 + /// + public int? state { get; set; } } \ No newline at end of file diff --git a/OpenAuth.WebApi/Controllers/ServiceControllers/GoView/GoViewController.cs b/OpenAuth.WebApi/Controllers/ServiceControllers/GoView/GoViewController.cs index 44dade5..57d6b71 100644 --- a/OpenAuth.WebApi/Controllers/ServiceControllers/GoView/GoViewController.cs +++ b/OpenAuth.WebApi/Controllers/ServiceControllers/GoView/GoViewController.cs @@ -69,6 +69,7 @@ public class GoViewProjectController : ControllerBase /// /// 获取项目list集合 /// + /// -1 1 /// /// ///