添加接口
This commit is contained in:
@@ -91,6 +91,45 @@ namespace IRaCIS.Core.API.Controllers
|
||||
|
||||
return await _inspectionService.Enforcement(opt.OptCommand, opt.AuditInfo, opt.SignInfo, null, fun);
|
||||
}
|
||||
|
||||
|
||||
[HttpPost, Route("Inspection/subjectVisit/SetSubjectVisitUrgent")]
|
||||
public async Task<IResponseOutput> SetSubjectVisitUrgent(DataInspectionDto<SetSubjectVisitUrgentCommand> opt)
|
||||
{
|
||||
|
||||
var fun = await _subjectVisitService.SetSubjectVisitUrgent(opt.OptCommand.subjectVisitId,opt.OptCommand.isUrgent);
|
||||
if (!fun.IsSuccess)
|
||||
{
|
||||
return ResponseOutput.NotOk(fun.ErrorMessage);
|
||||
}
|
||||
return await _inspectionService.Enforcement(opt.OptCommand, opt.AuditInfo, opt.SignInfo, null, fun);
|
||||
}
|
||||
|
||||
|
||||
[HttpPost, Route("Inspection/subjectVisit/DeleteSV")]
|
||||
public async Task<IResponseOutput> DeleteSV(DataInspectionDto<DeleteSVCommand> opt)
|
||||
{
|
||||
|
||||
var fun = await _subjectVisitService.DeleteSV(opt.OptCommand.Id);
|
||||
if (!fun.IsSuccess)
|
||||
{
|
||||
return ResponseOutput.NotOk(fun.ErrorMessage);
|
||||
}
|
||||
return await _inspectionService.Enforcement(opt.OptCommand, opt.AuditInfo, opt.SignInfo, null, fun);
|
||||
}
|
||||
|
||||
[HttpPost, Route("Inspection/subjectVisit/SetSVExecuted")]
|
||||
public async Task<IResponseOutput> SetSVExecuted(DataInspectionDto<DeleteSVCommand> opt)
|
||||
{
|
||||
|
||||
var fun = await _subjectVisitService.SetSVExecuted(opt.OptCommand.Id);
|
||||
if (!fun.IsSuccess)
|
||||
{
|
||||
return ResponseOutput.NotOk(fun.ErrorMessage);
|
||||
}
|
||||
return await _inspectionService.Enforcement(opt.OptCommand, opt.AuditInfo, opt.SignInfo, null, fun);
|
||||
}
|
||||
|
||||
#endregion
|
||||
|
||||
#region 配置项目信息
|
||||
|
||||
Reference in New Issue
Block a user