mirror of https://github.com/Squidex/squidex.git
You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
30 lines
979 B
30 lines
979 B
// ==========================================================================
|
|
// AssignAppContributorDto.cs
|
|
// Squidex Headless CMS
|
|
// ==========================================================================
|
|
// Copyright (c) Squidex Group
|
|
// All rights reserved.
|
|
// ==========================================================================
|
|
|
|
using System.ComponentModel.DataAnnotations;
|
|
using Newtonsoft.Json;
|
|
using Newtonsoft.Json.Converters;
|
|
using Squidex.Domain.Apps.Core.Apps;
|
|
|
|
namespace Squidex.Controllers.Api.Apps.Models
|
|
{
|
|
public sealed class AssignAppContributorDto
|
|
{
|
|
/// <summary>
|
|
/// The id of the user to add to the app.
|
|
/// </summary>
|
|
[Required]
|
|
public string ContributorId { get; set; }
|
|
|
|
/// <summary>
|
|
/// The permission level as a contributor.
|
|
/// </summary>
|
|
[JsonConverter(typeof(StringEnumConverter))]
|
|
public AppContributorPermission Permission { get; set; }
|
|
}
|
|
}
|