修改参数名称
parent
75143725a7
commit
3a5d1abba4
|
@ -99,7 +99,7 @@ namespace IRaCIS.Core.API.Controllers
|
|||
public async Task<IResponseOutput> SetSubjectVisitUrgent(DataInspectionDto<SetSubjectVisitUrgentCommand> opt)
|
||||
{
|
||||
|
||||
var fun = await _subjectVisitService.SetSubjectVisitUrgent(opt.OptCommand.subjectVisitId,opt.OptCommand.isUrgent);
|
||||
var fun = await _subjectVisitService.SetSubjectVisitUrgent(opt.OptCommand.SubjectVisitId, opt.OptCommand.isUrgent);
|
||||
if (!fun.IsSuccess)
|
||||
{
|
||||
return ResponseOutput.NotOk(fun.ErrorMessage);
|
||||
|
@ -112,7 +112,7 @@ namespace IRaCIS.Core.API.Controllers
|
|||
public async Task<IResponseOutput> DeleteSV(DataInspectionDto<DeleteSVCommand> opt)
|
||||
{
|
||||
|
||||
var fun = await _subjectVisitService.DeleteSV(opt.OptCommand.Id);
|
||||
var fun = await _subjectVisitService.DeleteSV(opt.OptCommand.SubjectVisitId);
|
||||
if (!fun.IsSuccess)
|
||||
{
|
||||
return ResponseOutput.NotOk(fun.ErrorMessage);
|
||||
|
@ -124,7 +124,7 @@ namespace IRaCIS.Core.API.Controllers
|
|||
public async Task<IResponseOutput> SetSVExecuted(DataInspectionDto<DeleteSVCommand> opt)
|
||||
{
|
||||
|
||||
var fun = await _subjectVisitService.SetSVExecuted(opt.OptCommand.Id);
|
||||
var fun = await _subjectVisitService.SetSVExecuted(opt.OptCommand.SubjectVisitId);
|
||||
if (!fun.IsSuccess)
|
||||
{
|
||||
return ResponseOutput.NotOk(fun.ErrorMessage);
|
||||
|
|
|
@ -46,12 +46,12 @@ namespace IRaCIS.Core.Application.Contracts
|
|||
|
||||
public class DeleteSVCommand
|
||||
{
|
||||
public Guid Id { get; set; }
|
||||
public Guid SubjectVisitId { get; set; }
|
||||
}
|
||||
|
||||
public class SetSubjectVisitUrgentCommand
|
||||
{
|
||||
public Guid subjectVisitId { get; set; }
|
||||
public Guid SubjectVisitId { get; set; }
|
||||
|
||||
|
||||
public bool isUrgent { get; set; }
|
||||
|
|
Loading…
Reference in New Issue