divan/RMuseum/Services/IGanjoorRelatedPersonService.cs
Hamid Reza Mohammadi 073222ec6d people tags #387
2026-09-28 13:48:43 +03:30

28 lines
956 B
C#

using RMuseum.Models.Ganjoor;
using RSecurityBackend.Models.Generic;
using System.Threading.Tasks;
namespace RMuseum.Services
{
/// <summary>
/// related people (family tree / person tagging) service - read-only for now: the only way a
/// new person is created is via the geo/date/person tag correction's SuggestedPersonGraphJson,
/// materialized on moderator approval (see GanjoorService-ModeratePoemCorrection.cs)
/// </summary>
public interface IGanjoorRelatedPersonService
{
/// <summary>
/// get all people (for the search-as-you-type person picker)
/// </summary>
/// <returns></returns>
Task<RServiceResult<GanjoorRelatedPerson[]>> GetPeopleAsync();
/// <summary>
/// get person by id
/// </summary>
/// <param name="id"></param>
/// <returns></returns>
Task<RServiceResult<GanjoorRelatedPerson>> GetPersonAsync(int id);
}
}