增加项目用户接口
continuous-integration/drone/push Build is passing Details

IRC_NewDev
hang 2024-05-14 14:38:35 +08:00
parent 090cdaf2e4
commit 329437411d
3 changed files with 21 additions and 2 deletions

View File

@ -34,6 +34,8 @@ namespace IRaCIS.Core.Application.ViewModel
public Guid? LoginUserId { get; set; }
public Guid? OptUserId { get; set; }
public string IPRegion { get; set; }
}
///<summary>UserLogQuery 列表查询参数模型</summary>

View File

@ -55,6 +55,17 @@ namespace IRaCIS.Application.Contracts
public string UserName { get; set; } = String.Empty;
}
public class TrialUserBasicInfo
{
public Guid UserTypeId { get; set; }
public string UserName { get; set; }
public string FullName { get; set; }
public Guid UserId { get; set; }
}
public class TrialMaintenanceDTO : UserTrialCommand
{
//[JsonIgnore]

View File

@ -9,6 +9,7 @@ using IRaCIS.Core.Application.Service;
using Microsoft.AspNetCore.Authorization;
using IRaCIS.Core.Application.Auth;
using IRaCIS.Core.Application.Contracts;
using DocumentFormat.OpenXml.Office2010.ExcelAc;
namespace IRaCIS.Application.Services
{
@ -61,8 +62,13 @@ namespace IRaCIS.Application.Services
//}
#endregion
[HttpGet]
public async Task<List<TrialUserBasicInfo>> GetTrialUserList(Guid trialId)
{
return await _trialUseRepository.Where(t => t.TrialId == trialId, ignoreQueryFilters: true)
.Select(t => new TrialUserBasicInfo() { FullName = t.User.FullName, UserId = t.UserId, UserTypeId = t.User.UserTypeId, UserName = t.User.UserName })
.ToListAsync();
}
/// <summary>
/// Setting页面 获取项目参与人员列表