1
This commit is contained in:
+43
@@ -0,0 +1,43 @@
|
||||
namespace SimpleAdmin.Application;
|
||||
|
||||
public class OnboardingTaskContractVariableQueryInput
|
||||
{
|
||||
[IdNotNull(ErrorMessage = "入职任务Id不能为空")]
|
||||
public long TaskId { get; set; }
|
||||
}
|
||||
|
||||
public class OnboardingTaskContractVariableSaveInput
|
||||
{
|
||||
[IdNotNull(ErrorMessage = "任务合同Id不能为空")]
|
||||
public long TaskContractId { get; set; }
|
||||
[global::System.ComponentModel.DataAnnotations.Required(ErrorMessage = "变量不能为空")]
|
||||
public List<OnboardingTaskContractVariableValueInput> Values { get; set; } = new List<OnboardingTaskContractVariableValueInput>();
|
||||
}
|
||||
|
||||
public class OnboardingTaskContractVariableValueInput
|
||||
{
|
||||
[IdNotNull(ErrorMessage = "变量Id不能为空")]
|
||||
public long Id { get; set; }
|
||||
public string VariableValue { get; set; }
|
||||
}
|
||||
|
||||
public class OnboardingTaskContractVariableOutput
|
||||
{
|
||||
public long TaskContractId { get; set; }
|
||||
public string ContractName { get; set; }
|
||||
public string ContractType { get; set; }
|
||||
public List<OnboardingTaskContractVariableItemOutput> Variables { get; set; } = new List<OnboardingTaskContractVariableItemOutput>();
|
||||
}
|
||||
|
||||
public class OnboardingTaskContractVariableItemOutput
|
||||
{
|
||||
public long Id { get; set; }
|
||||
public string VariableCode { get; set; }
|
||||
public string VariableName { get; set; }
|
||||
public string VariableType { get; set; }
|
||||
public string DataType { get; set; }
|
||||
public string VariableValue { get; set; }
|
||||
public bool Required { get; set; }
|
||||
public bool HrEditable { get; set; }
|
||||
public bool Editable { get; set; }
|
||||
}
|
||||
Reference in New Issue
Block a user