添加过滤状态

This commit is contained in:
2026-05-11 14:10:50 +08:00
parent f6b2bdfb81
commit f77e7aaae1
3 changed files with 7 additions and 6 deletions
+2 -2
View File
@@ -14,12 +14,12 @@ namespace WebAPI.Controllers
public class ProjectController : ApiController
{
#region
public Model.ResponeData getALLProjects()
public Model.ResponeData getALLProjects(string status = "1")
{
Model.ResponeData responeData = new Model.ResponeData();
try
{
List<Model.ProjectItem> projectList = BLL.APIProjectService.geProjects();
List<Model.ProjectItem> projectList = BLL.APIProjectService.geProjects(status);
responeData.data = projectList;
}
catch (Exception ex)