111
This commit is contained in:
+33
@@ -0,0 +1,33 @@
|
||||
using System.ComponentModel.DataAnnotations;
|
||||
|
||||
namespace SimpleAdmin.Application;
|
||||
|
||||
public class OnboardingVariableDefinitionPageInput : BasePageInput
|
||||
{
|
||||
public string Keyword { get; set; }
|
||||
public string VariableCategory { get; set; }
|
||||
}
|
||||
|
||||
public class OnboardingVariableDefinitionAddInput
|
||||
{
|
||||
[Required(ErrorMessage = "变量编码不能为空")]
|
||||
public string VariableCode { get; set; }
|
||||
|
||||
[Required(ErrorMessage = "变量名称不能为空")]
|
||||
public string VariableName { get; set; }
|
||||
|
||||
[Required(ErrorMessage = "变量分类不能为空")]
|
||||
public string VariableCategory { get; set; }
|
||||
|
||||
public string DataType { get; set; } = "string";
|
||||
public string DefaultValue { get; set; }
|
||||
public bool Required { get; set; }
|
||||
public int SortCode { get; set; } = 100;
|
||||
public string Remark { get; set; }
|
||||
}
|
||||
|
||||
public class OnboardingVariableDefinitionEditInput : OnboardingVariableDefinitionAddInput
|
||||
{
|
||||
[IdNotNull(ErrorMessage = "Id不能为空")]
|
||||
public long Id { get; set; }
|
||||
}
|
||||
Reference in New Issue
Block a user