新增同步软件控制权限控制软件状态

This commit is contained in:
lq1405 2025-02-12 12:19:46 +08:00
parent 3f567cb481
commit 3934088e43
2 changed files with 3 additions and 2 deletions

View File

@ -110,7 +110,7 @@ namespace LMS.service.Controllers
#endregion
#region -
#region -
[HttpGet("{userId}")]
[Authorize]

View File

@ -48,7 +48,8 @@ namespace LMS.service.Service.SoftwareService
}
List<SoftwareControl> softwareControl = await _dbContext.SoftwareControl.Where(x => x.UserId == id).ToListAsync();
List<Software> software = await _dbContext.Software.ToListAsync();
// 判断是不是可以使用
List<Software> software = await _dbContext.Software.Where(x => x.IsUse).ToListAsync();
bool isAdd = false;