feat: Added Product controller and endpoints

- updated Core.Adapters.Lib package version
This commit is contained in:
2025-08-03 17:50:20 -06:00
parent 1f9bae385c
commit a706f96bd8
6 changed files with 535 additions and 2 deletions

View File

@@ -0,0 +1,52 @@
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 product.
/// </summary>
public class ProductRequest
{
/// <summary>
/// Gets or sets the tenantId of the product.
/// </summary>
[BsonElement("tenantId")]
[BsonRepresentation(BsonType.String)]
[JsonPropertyName("tenantId")]
public string TenantId { get; set; } = null!;
/// <summary>
/// Gets or sets the name of the product.
/// </summary>
[BsonElement("productName")]
[BsonRepresentation(BsonType.String)]
[JsonPropertyName("productName")]
public string ProductName { get; set; } = null!;
/// <summary>
/// Gets or sets the description of the product.
/// </summary>
[BsonElement("description")]
[BsonRepresentation(BsonType.String)]
[JsonPropertyName("description")]
public string Description { get; set; } = null!;
/// <summary>
/// Gets or sets the status of the product.
/// </summary>
[BsonElement("status")]
[BsonRepresentation(BsonType.String)]
[JsonPropertyName("status")]
public string Status { get; set; } = null!;
/// <summary>
/// Gets or sets the list of Tag Ids associated with this product.
/// </summary>
[BsonElement("tagIds")]
[BsonRepresentation(BsonType.ObjectId)]
[JsonPropertyName("tagIds")]
public List<string> TagIds { get; set; } = new List<string>();
}
}