misc
parent
15d35e5508
commit
e6f8947c08
@ -1,23 +1,16 @@
|
|||||||
using Yavsc.Attributes.Validation;
|
using Yavsc.Attributes.Validation;
|
||||||
namespace Yavsc.Models.FileSystem
|
namespace Yavsc.Models.FileSystem
|
||||||
{
|
{
|
||||||
public class RenameFileQuery {
|
|
||||||
[ValidRemoteUserFilePath]
|
|
||||||
[YaStringLength(1, 512)]
|
|
||||||
public string id { get; set; }
|
|
||||||
|
|
||||||
[YaStringLength(0, 512)]
|
public class MoveFileQuery
|
||||||
[ValidRemoteUserFilePath]
|
{
|
||||||
public string to { get; set; }
|
|
||||||
}
|
|
||||||
public class MoveFileQuery {
|
|
||||||
[ValidRemoteUserFilePath]
|
[ValidRemoteUserFilePath]
|
||||||
[YaStringLength(1, 512)]
|
[YaStringLength(1, 512)]
|
||||||
public string id { get; set; }
|
public required string Id { get; set; }
|
||||||
|
|
||||||
[YaStringLength(0, 512)]
|
[YaStringLength(0, 512)]
|
||||||
[ValidRemoteUserFilePath]
|
[ValidRemoteUserFilePath]
|
||||||
public string to { get; set; }
|
public required string To { get; set; }
|
||||||
}
|
}
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|||||||
@ -0,0 +1,15 @@
|
|||||||
|
using Yavsc.Attributes.Validation;
|
||||||
|
namespace Yavsc.Models.FileSystem
|
||||||
|
{
|
||||||
|
public class RenameFileQuery
|
||||||
|
{
|
||||||
|
[ValidRemoteUserFilePath]
|
||||||
|
[YaStringLength(1, 512)]
|
||||||
|
public required string Id { get; set; }
|
||||||
|
|
||||||
|
[YaStringLength(0, 512)]
|
||||||
|
[ValidRemoteUserFilePath]
|
||||||
|
public required string To { get; set; }
|
||||||
|
}
|
||||||
|
|
||||||
|
}
|
||||||
@ -0,0 +1,13 @@
|
|||||||
|
using Yavsc.Models.Blog;
|
||||||
|
|
||||||
|
public class BlogPostEdition
|
||||||
|
{
|
||||||
|
public string Content { get; internal set; }
|
||||||
|
public string Title { get; internal set; }
|
||||||
|
public string Photo { get; internal set; }
|
||||||
|
|
||||||
|
internal static BlogPostEdition From(BlogPost blog)
|
||||||
|
{
|
||||||
|
throw new NotImplementedException();
|
||||||
|
}
|
||||||
|
}
|
||||||
Loading…
Reference in New Issue