Add TagType CRUD
This commit is contained in:
		| @@ -0,0 +1,44 @@ | ||||
| using MongoDB.Bson; | ||||
| using MongoDB.Bson.Serialization.Attributes; | ||||
| using System.Text.Json.Serialization; | ||||
|  | ||||
| namespace Core.Inventory.Domain.Contexts.Inventory.Request | ||||
| { | ||||
|     /// <summary> | ||||
|     /// Data transfer object (DTO) for adding tagType. | ||||
|     /// </summary> | ||||
|     public class TagTypeRequest | ||||
|     { | ||||
|         /// <summary> | ||||
|         /// Gets or sets the tenantId of the tagType. | ||||
|         /// </summary> | ||||
|         [BsonElement("tenantId")] | ||||
|         [BsonRepresentation(BsonType.String)] | ||||
|         [JsonPropertyName("tenantId")] | ||||
|         public string TenantId { get; set; } = null!; | ||||
|  | ||||
|         /// <summary> | ||||
|         /// Gets or sets the typeName of the tagType. | ||||
|         /// </summary> | ||||
|         [BsonElement("typeName")] | ||||
|         [BsonRepresentation(BsonType.String)] | ||||
|         [JsonPropertyName("typeName")] | ||||
|         public string TypeName { get; set; } = null!; | ||||
|  | ||||
|         /// <summary> | ||||
|         /// Gets or sets the level of the tagType. | ||||
|         /// </summary> | ||||
|         [BsonElement("level")] | ||||
|         [BsonRepresentation(BsonType.Int32)] | ||||
|         [JsonPropertyName("level")] | ||||
|         public int Level { get; set; } | ||||
|  | ||||
|         /// <summary> | ||||
|         /// Gets or sets the parentTypeId of the tagType. | ||||
|         /// </summary> | ||||
|         [BsonElement("parentTypeId")] | ||||
|         [BsonRepresentation(BsonType.String)] | ||||
|         [JsonPropertyName("parentTypeId")] | ||||
|         public string ParentTypeId { get; set; } = null!; | ||||
|     } | ||||
| } | ||||
		Reference in New Issue
	
	Block a user
	 Oscar Morales
					Oscar Morales