mirror of https://github.com/Squidex/squidex.git
5 changed files with 54 additions and 9 deletions
@ -0,0 +1,22 @@ |
|||||
|
// ==========================================================================
|
||||
|
// ErrorDto.cs
|
||||
|
// PinkParrot Headless CMS
|
||||
|
// ==========================================================================
|
||||
|
// Copyright (c) PinkParrot Group
|
||||
|
// All rights reserved.
|
||||
|
// ==========================================================================
|
||||
|
|
||||
|
using System.ComponentModel.DataAnnotations; |
||||
|
|
||||
|
namespace PinkParrot.Modules.Api |
||||
|
{ |
||||
|
public sealed class ErrorDto |
||||
|
{ |
||||
|
[Required] |
||||
|
public string Message { get; set; } |
||||
|
|
||||
|
public string[] Details { get; set; } |
||||
|
|
||||
|
public int? StatusCode { get; set; } |
||||
|
} |
||||
|
} |
||||
@ -0,0 +1,24 @@ |
|||||
|
// ==========================================================================
|
||||
|
// FieldDto.cs
|
||||
|
// PinkParrot Headless CMS
|
||||
|
// ==========================================================================
|
||||
|
// Copyright (c) PinkParrot Group
|
||||
|
// All rights reserved.
|
||||
|
// ==========================================================================
|
||||
|
|
||||
|
namespace PinkParrot.Core.Schema.Json |
||||
|
{ |
||||
|
public class FieldDto |
||||
|
{ |
||||
|
public long Id { get; } |
||||
|
|
||||
|
public ModelFieldProperties Properties { get; } |
||||
|
|
||||
|
public FieldDto(long id, ModelFieldProperties properties) |
||||
|
{ |
||||
|
Id = id; |
||||
|
|
||||
|
Properties = properties; |
||||
|
} |
||||
|
} |
||||
|
} |
||||
Loading…
Reference in new issue