This commit is contained in:
he
2022-03-31 09:56:40 +08:00
parent 91a8f855d6
commit b149922cc2
4 changed files with 35 additions and 20 deletions
@@ -123,6 +123,11 @@ namespace IRaCIS.Core.Application.Service.Inspection.DTO
#endregion
public class DataInspectionDto<T> : InspectionBase, IInspectionDTO, ISignDTO
{
public T OptCommand { get; set; }
}
#region
public class InsSubjectCommand : InspectionBase, IInspectionDTO, ISignDTO
{
@@ -4,7 +4,7 @@ namespace IRaCIS.Core.Application.Interfaces
{
public interface ISubjectVisitService
{
Task<IResponseOutput> AddOrUpdateSV(SubjectVisitCommand svCommand);
Task<IResponseOutput<string>> AddOrUpdateSV(SubjectVisitCommand svCommand);
Task<IResponseOutput> DeleteSV(Guid id);
Task<List<VisitStudyDTO>> GetVisitStudyList(Guid trialId, Guid sujectVisitId, int isReading);
Task<IResponseOutput> SetSVExecuted(Guid subjectVisitId);
@@ -24,7 +24,7 @@ namespace IRaCIS.Core.Application.Services
[HttpPost]
[TypeFilter(typeof(TrialResourceFilter))]
[UnitOfWork]
public async Task<IResponseOutput> AddOrUpdateSV(SubjectVisitCommand svCommand)
public async Task<IResponseOutput<string>> AddOrUpdateSV(SubjectVisitCommand svCommand)
{
var verifyExp1 = new EntityVerifyExp<SubjectVisit>()
@@ -178,7 +178,7 @@ namespace IRaCIS.Core.Application.Services
return ResponseOutput.Ok();
return ResponseOutput.Ok(needDealEntity.Id.ToString());
}