2021-12-01 13:03:06 +01:00
|
|
|
namespace zero.Api.Endpoints.Search;
|
2021-11-22 14:29:22 +01:00
|
|
|
|
2021-11-27 16:33:05 +01:00
|
|
|
public class SearchOptions : List<SearchIndexMap>
|
2021-11-22 14:29:22 +01:00
|
|
|
{
|
|
|
|
|
public bool Enabled { get; set; }
|
|
|
|
|
|
|
|
|
|
public SearchIndexMap<T> Map<T>(string icon = null) where T : ZeroEntity, new()
|
|
|
|
|
{
|
|
|
|
|
SearchIndexMap<T> map = new(icon);
|
2021-11-27 16:33:05 +01:00
|
|
|
Add(map);
|
2021-11-22 14:29:22 +01:00
|
|
|
return map;
|
|
|
|
|
}
|
|
|
|
|
}
|