增加项目用户接口
continuous-integration/drone/push Build is passing
Details
continuous-integration/drone/push Build is passing
Details
parent
090cdaf2e4
commit
329437411d
|
@ -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>
|
||||
|
|
|
@ -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]
|
||||
|
|
|
@ -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页面 获取项目参与人员列表
|
||||
|
|
Loading…
Reference in New Issue