签名接口修改

This commit is contained in:
he
2022-05-09 17:36:30 +08:00
parent 0afa1e4d38
commit 525a03533b
6 changed files with 174 additions and 832 deletions
@@ -7,6 +7,7 @@ using Newtonsoft.Json;
using Newtonsoft.Json.Converters;
using System;
using System.Collections.Generic;
using System.ComponentModel.DataAnnotations;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
@@ -192,6 +193,14 @@ namespace IRaCIS.Core.Application.Service.Inspection.DTO
public bool setOrCancel { get; set; }
}
public class UpdateTrialStateDto
{
public Guid trialId {get; set; }
public string trialStatusStr { get; set; }
public string? reason { get; set; }
}
public class QCPassedOrFailedDto
{
public Guid trialId { get; set; }
@@ -261,34 +270,17 @@ namespace IRaCIS.Core.Application.Service.Inspection.DTO
/// 稽查泛型Dto
/// </summary>
/// <typeparam name="T">泛型</typeparam>
public class DataInspectionDto<T> : IInspectionDTO, ISignDTO
public class DataInspectionDto<T>
{
public T OptCommand { get; set; }
public T Data { get; set; }
[NotDefault]
public Guid SignCodeId { get; set; }
public DataInspectionAddDTO AuditInfo
{
get
{
if (auditInfo.JsonDetail.IsNullOrEmpty())
{
auditInfo.JsonDetail = JsonConvert.SerializeObject(OptCommand);
}
return auditInfo;
}
set
{
auditInfo = value;
}
}
private DataInspectionAddDTO auditInfo=new DataInspectionAddDTO ();
public SignDTO SignInfo { get; set; } = new SignDTO() { };
}
#region Qc