#478 poetpix
This commit is contained in:
parent
a14c3b67cf
commit
b40b67cbac
@ -120,6 +120,7 @@ namespace RMuseum.Controllers
|
||||
}
|
||||
break;
|
||||
case "poetspeclines":
|
||||
case "poetpix":
|
||||
default:
|
||||
return BadRequest($"Invalid value for the paramater: dataType = {dataType}");
|
||||
}
|
||||
@ -145,6 +146,7 @@ namespace RMuseum.Controllers
|
||||
/// museumlinks
|
||||
/// pinterestlinks
|
||||
/// poetspeclines
|
||||
/// poetpix
|
||||
/// </param>
|
||||
/// <param name="paging"></param>
|
||||
/// <param name="day"></param>
|
||||
@ -241,6 +243,14 @@ namespace RMuseum.Controllers
|
||||
pagedResult = res.Result;
|
||||
}
|
||||
break;
|
||||
case "poetpix":
|
||||
{
|
||||
var res = await _service.GetApprovedGanjoorPoetPicturesGroupedByUserAsync(paging, userId);
|
||||
if (!string.IsNullOrEmpty(res.ExceptionString))
|
||||
return BadRequest(res.ExceptionString);
|
||||
pagedResult = res.Result;
|
||||
}
|
||||
break;
|
||||
default:
|
||||
return BadRequest($"Invalid value for the paramater: dataType = {dataType}");
|
||||
}
|
||||
@ -267,6 +277,7 @@ namespace RMuseum.Controllers
|
||||
/// museumlinks
|
||||
/// pinterestlinks
|
||||
/// poetspeclines
|
||||
/// poetpix
|
||||
/// </param>
|
||||
/// <returns></returns>
|
||||
[HttpGet("{dataType}")]
|
||||
@ -359,6 +370,14 @@ namespace RMuseum.Controllers
|
||||
result = res.Result;
|
||||
}
|
||||
break;
|
||||
case "poetpix":
|
||||
{
|
||||
var res = await _service.GetApprovedGanjoorPoetPicturesSummedUpStatsAsync();
|
||||
if (!string.IsNullOrEmpty(res.ExceptionString))
|
||||
return BadRequest(res.ExceptionString);
|
||||
result = res.Result;
|
||||
}
|
||||
break;
|
||||
default:
|
||||
return BadRequest($"Invalid value for the paramater: dataType = {dataType}");
|
||||
}
|
||||
|
||||
@ -798,6 +798,7 @@
|
||||
museumlinks
|
||||
pinterestlinks
|
||||
poetspeclines
|
||||
poetpix
|
||||
</param>
|
||||
<param name="paging"></param>
|
||||
<param name="day"></param>
|
||||
@ -820,6 +821,7 @@
|
||||
museumlinks
|
||||
pinterestlinks
|
||||
poetspeclines
|
||||
poetpix
|
||||
</param>
|
||||
<returns></returns>
|
||||
</member>
|
||||
@ -16166,6 +16168,20 @@
|
||||
</summary>
|
||||
<returns></returns>
|
||||
</member>
|
||||
<member name="M:RMuseum.Services.IContributionStatsService.GetApprovedGanjoorPoetPicturesGroupedByUserAsync(RSecurityBackend.Models.Generic.PagingParameterModel,System.Nullable{System.Guid})">
|
||||
<summary>
|
||||
approved poet spec pictures grouped by user
|
||||
</summary>
|
||||
<param name="paging"></param>
|
||||
<param name="userId"></param>
|
||||
<returns></returns>
|
||||
</member>
|
||||
<member name="M:RMuseum.Services.IContributionStatsService.GetApprovedGanjoorPoetPicturesSummedUpStatsAsync">
|
||||
<summary>
|
||||
summed up stats of approved poet pictures
|
||||
</summary>
|
||||
<returns></returns>
|
||||
</member>
|
||||
<member name="T:RMuseum.Services.IDonationService">
|
||||
<summary>
|
||||
donation service
|
||||
@ -19293,6 +19309,20 @@
|
||||
</summary>
|
||||
<returns></returns>
|
||||
</member>
|
||||
<member name="M:RMuseum.Services.Implementation.ContributionStatsService.GetApprovedGanjoorPoetPicturesGroupedByUserAsync(RSecurityBackend.Models.Generic.PagingParameterModel,System.Nullable{System.Guid})">
|
||||
<summary>
|
||||
approved poet spec pictures grouped by user
|
||||
</summary>
|
||||
<param name="paging"></param>
|
||||
<param name="userId"></param>
|
||||
<returns></returns>
|
||||
</member>
|
||||
<member name="M:RMuseum.Services.Implementation.ContributionStatsService.GetApprovedGanjoorPoetPicturesSummedUpStatsAsync">
|
||||
<summary>
|
||||
summed up stats of approved poet pictures
|
||||
</summary>
|
||||
<returns></returns>
|
||||
</member>
|
||||
<member name="F:RMuseum.Services.Implementation.ContributionStatsService._context">
|
||||
<summary>
|
||||
Database Context
|
||||
|
||||
@ -238,13 +238,13 @@ namespace RMuseum.Services
|
||||
/// <param name="paging"></param>
|
||||
/// <param name="userId"></param>
|
||||
/// <returns></returns>
|
||||
Task<RServiceResult<(PaginationMetadata PagingMeta, GroupedByUserViewModel[] Tracks)>> GetApprovedGanjoorPoetSuggestedPicturesGroupedByUserAsync(PagingParameterModel paging, Guid? userId);
|
||||
Task<RServiceResult<(PaginationMetadata PagingMeta, GroupedByUserViewModel[] Tracks)>> GetApprovedGanjoorPoetPicturesGroupedByUserAsync(PagingParameterModel paging, Guid? userId);
|
||||
|
||||
/// <summary>
|
||||
/// summed up stats of approved poet pictures
|
||||
/// </summary>
|
||||
/// <returns></returns>
|
||||
Task<RServiceResult<SummedUpViewModel>> GetApprovedGanjoorPoetSuggestedPicturesSummedUpStatsAsync();
|
||||
Task<RServiceResult<SummedUpViewModel>> GetApprovedGanjoorPoetPicturesSummedUpStatsAsync();
|
||||
|
||||
}
|
||||
}
|
||||
|
||||
@ -1116,7 +1116,7 @@ namespace RMuseum.Services.Implementation
|
||||
/// <param name="paging"></param>
|
||||
/// <param name="userId"></param>
|
||||
/// <returns></returns>
|
||||
public async Task<RServiceResult<(PaginationMetadata PagingMeta, GroupedByUserViewModel[] Tracks)>> GetApprovedGanjoorPoetSuggestedPicturesGroupedByUserAsync(PagingParameterModel paging, Guid? userId)
|
||||
public async Task<RServiceResult<(PaginationMetadata PagingMeta, GroupedByUserViewModel[] Tracks)>> GetApprovedGanjoorPoetPicturesGroupedByUserAsync(PagingParameterModel paging, Guid? userId)
|
||||
{
|
||||
try
|
||||
{
|
||||
@ -1158,7 +1158,7 @@ namespace RMuseum.Services.Implementation
|
||||
/// summed up stats of approved poet pictures
|
||||
/// </summary>
|
||||
/// <returns></returns>
|
||||
public async Task<RServiceResult<SummedUpViewModel>> GetApprovedGanjoorPoetSuggestedPicturesSummedUpStatsAsync()
|
||||
public async Task<RServiceResult<SummedUpViewModel>> GetApprovedGanjoorPoetPicturesSummedUpStatsAsync()
|
||||
{
|
||||
try
|
||||
{
|
||||
|
||||
Loading…
Reference in New Issue
Block a user