15 lines
637 B
C#
15 lines
637 B
C#
namespace UtopiaCanteenSystem.Services;
|
|
|
|
/// <summary>
|
|
/// Fetches employee profile photo from hrms.employee_photo by parent_document_id (employee document id from RFID lookup).
|
|
/// Photo blob may be a data URI (data:image/...;base64,...) or raw image bytes.
|
|
/// </summary>
|
|
public interface IEmployeePhotoService
|
|
{
|
|
/// <summary>
|
|
/// Gets photo bytes for the given parent_document_id (employee.id from lookup), or null if not found / decode failed.
|
|
/// May return cached bytes for the same key.
|
|
/// </summary>
|
|
Task<byte[]?> GetPhotoBytesAsync(string parentDocumentId, CancellationToken cancellationToken = default);
|
|
}
|