49 lines
1.1 KiB
C#
49 lines
1.1 KiB
C#
using System.ComponentModel.DataAnnotations;
|
|
using WmsLite.Api.Dtos.Common;
|
|
|
|
namespace WmsLite.Api.Dtos.Template;
|
|
|
|
public class SysTemplatePagedQuery : BasePagedQuery
|
|
{
|
|
[StringLength(64)]
|
|
public string? BizType { get; set; }
|
|
|
|
[StringLength(128)]
|
|
public string? BizName { get; set; }
|
|
}
|
|
|
|
public class SysTemplateSaveRequest
|
|
{
|
|
[Required]
|
|
[StringLength(64)]
|
|
public string BizType { get; set; } = string.Empty;
|
|
|
|
[Required]
|
|
[StringLength(128)]
|
|
public string BizName { get; set; } = string.Empty;
|
|
|
|
[Required]
|
|
public string ConfigJson { get; set; } = "[]";
|
|
}
|
|
|
|
public class SysTemplateUpdateRequest : SysTemplateSaveRequest
|
|
{
|
|
[Range(1, long.MaxValue)]
|
|
public long Id { get; set; }
|
|
}
|
|
|
|
public class SysTemplateViewDto
|
|
{
|
|
public long Id { get; set; }
|
|
|
|
public string TenantId { get; set; } = string.Empty;
|
|
|
|
public string OwnerCode { get; set; } = string.Empty;
|
|
|
|
public string BizType { get; set; } = string.Empty;
|
|
|
|
public string BizName { get; set; } = string.Empty;
|
|
|
|
public string? ConfigJson { get; set; }
|
|
}
|