Add TagType CRUD

This commit is contained in:
Oscar Morales
2025-07-31 19:07:40 -06:00
parent 542df8a203
commit e6d68f4fd3
18 changed files with 646 additions and 1 deletions

View File

@@ -51,5 +51,27 @@ namespace Core.Inventory.External.Clients
[Get("/api/v1/FurnitureVariant")]
Task<IEnumerable<FurnitureVariant>> GetAllFurnitureVariantAsync(CancellationToken cancellationToken = default);
#endregion
#region TagType
[Get("/api/v1/TagType")]
Task<IEnumerable<TagTypeAdapter>> GetAllTagTypesAsync(CancellationToken cancellationToken = default);
[Post("/api/v1/TagType/GetTagTypeList")]
Task<IEnumerable<TagTypeAdapter>> GetAllTagTypesByListAsync([FromBody] string[] request, CancellationToken cancellationToken = default);
[Get("/api/v1/TagType/{id}")]
Task<TagTypeAdapter> GetTagTypeByIdAsync([FromRoute] string id, CancellationToken cancellationToken = default);
[Post("/api/v1/TagType")]
Task<TagTypeAdapter> CreateTagTypeAsync([FromBody] TagTypeRequest newTagType, CancellationToken cancellationToken = default);
[Put("/api/v1/TagType/{id}")]
Task<TagTypeAdapter> UpdateTagTypeAsync([FromBody] TagTypeAdapter entity, [FromRoute] string id, CancellationToken cancellationToken = default);
[Patch("/api/v1/TagType/{id}/{newStatus}/ChangeStatus")]
Task<TagTypeAdapter> ChangeStatusTagTypeAsync([FromRoute] string id, [FromRoute] StatusEnum newStatus, CancellationToken cancellationToken = default);
#endregion
}
}

View File

@@ -0,0 +1,10 @@
namespace Core.Inventory.External.Clients.Requests
{
public class TagTypeRequest
{
public string TenantId { get; set; } = null!;
public string TypeName { get; set; } = null!;
public int Level { get; set; }
public string ParentTypeId { get; set; } = null!;
}
}