mirror of https://github.com/abpframework/abp.git
10 changed files with 165 additions and 114 deletions
@ -0,0 +1,15 @@ |
|||
using System; |
|||
using System.ComponentModel.DataAnnotations; |
|||
using Volo.Docs.Projects; |
|||
|
|||
namespace Volo.Docs.Documents |
|||
{ |
|||
public class GetDefaultDocumentInput |
|||
{ |
|||
public Guid ProjectId { get; set; } |
|||
|
|||
[Required] |
|||
[StringLength(ProjectConsts.MaxVersionNameLength)] |
|||
public string Version { get; set; } |
|||
} |
|||
} |
|||
@ -0,0 +1,19 @@ |
|||
using System; |
|||
using System.ComponentModel.DataAnnotations; |
|||
using Volo.Docs.Projects; |
|||
|
|||
namespace Volo.Docs.Documents |
|||
{ |
|||
public class GetDocumentInput |
|||
{ |
|||
public Guid ProjectId { get; set; } |
|||
|
|||
[Required] |
|||
[StringLength(DocumentConsts.MaxNameLength)] |
|||
public string Name { get; set; } |
|||
|
|||
[Required] |
|||
[StringLength(ProjectConsts.MaxVersionNameLength)] |
|||
public string Version { get; set; } |
|||
} |
|||
} |
|||
@ -0,0 +1,15 @@ |
|||
using System; |
|||
using System.ComponentModel.DataAnnotations; |
|||
using Volo.Docs.Projects; |
|||
|
|||
namespace Volo.Docs.Documents |
|||
{ |
|||
public class GetNavigationDocumentInput |
|||
{ |
|||
public Guid ProjectId { get; set; } |
|||
|
|||
[Required] |
|||
[StringLength(ProjectConsts.MaxVersionNameLength)] |
|||
public string Version { get; set; } |
|||
} |
|||
} |
|||
@ -0,0 +1,7 @@ |
|||
namespace Volo.Docs.Documents |
|||
{ |
|||
public static class DocumentConsts |
|||
{ |
|||
public const int MaxNameLength = 255; |
|||
} |
|||
} |
|||
Loading…
Reference in new issue