Add project files.
This commit is contained in:
		| @@ -0,0 +1,57 @@ | ||||
| // *********************************************************************** | ||||
| // <copyright file="RoleRequest.cs"> | ||||
| //     Heath | ||||
| // </copyright> | ||||
| // *********************************************************************** | ||||
|  | ||||
| using Core.Cerberos.Adapters.Common.Enums; | ||||
| using MongoDB.Bson; | ||||
| using MongoDB.Bson.Serialization.Attributes; | ||||
| using System.Text.Json.Serialization; | ||||
|  | ||||
| namespace Core.Cerberos.Domain.Contexts.Onboarding.Request | ||||
| { | ||||
|     /// <summary> | ||||
|     /// Data transfer object (DTO) for adding a role. | ||||
|     /// </summary> | ||||
|     public class RoleRequest | ||||
|     { | ||||
|         /// <summary> | ||||
|         /// Gets or sets the name of the role. | ||||
|         /// </summary> | ||||
|         [BsonElement("name")] | ||||
|         [BsonRepresentation(BsonType.String)] | ||||
|         [JsonPropertyName("name")] | ||||
|         public string Name { get; set; } = null!; | ||||
|  | ||||
|         /// <summary> | ||||
|         /// Gets or sets the description of the role. | ||||
|         /// </summary> | ||||
|         [BsonElement("description")] | ||||
|         [BsonRepresentation(BsonType.String)] | ||||
|         [JsonPropertyName("description")] | ||||
|         public string? Description { get; set; } | ||||
|  | ||||
|         /// <summary> | ||||
|         /// Gets or sets the status of the entity. | ||||
|         /// </summary> | ||||
|         [BsonElement("applications")] | ||||
|         [JsonPropertyName("applications")] | ||||
|         [JsonConverter(typeof(EnumArrayJsonConverter<ApplicationsEnum>))] | ||||
|         public ApplicationsEnum[]? Applications { get; set; } | ||||
|  | ||||
|         /// <summary> | ||||
|         /// Gets or sets the modules of the role. | ||||
|         /// </summary> | ||||
|         [BsonElement("modules")] | ||||
|         [JsonPropertyName("modules")] | ||||
|         public string[] Modules { get; set; } = null!; | ||||
|  | ||||
|         /// <summary> | ||||
|         /// Gets or sets the permissions of the role. | ||||
|         /// </summary> | ||||
|         [BsonElement("permissions")] | ||||
|         [JsonPropertyName("permissions")] | ||||
|         public string[] Permissions { get; set; } = null!; | ||||
|     } | ||||
| } | ||||
		Reference in New Issue
	
	Block a user
	 Sergio Matias Urquin
					Sergio Matias Urquin