#436 MarkNaskbanLinksAsHumanReviewed api

This commit is contained in:
Hamid Reza Mohammadi 2024-05-02 16:14:44 +03:30
parent dd5639a416
commit 36f6435773
3 changed files with 50 additions and 0 deletions

View File

@ -3668,6 +3668,23 @@ namespace RMuseum.Controllers
return Ok();
}
/// <summary>
/// mark naskban links for poems of a categiory and its children as human reviewed
/// </summary>
/// <param name="naskbanBookId"></param>
/// <param name="catId"></param>
/// <param name="humanReviewed"></param>
/// <returns></returns>
[HttpPut("naskban/humanreviewed/{naskbanBookId}/{catId}/{humanReviewed}")]
[Authorize(Policy = RMuseumSecurableItem.GanjoorEntityShortName + ":" + RMuseumSecurableItem.ModerateOperationShortName)]
[ProducesResponseType((int)HttpStatusCode.OK)]
[ProducesResponseType((int)HttpStatusCode.BadRequest, Type = typeof(string))]
public IActionResult MarkNaskbanLinksAsHumanReviewed(int naskbanBookId, int catId, bool humanReviewed)
{
_ganjoorService.MarkNaskbanLinksAsHumanReviewed(naskbanBookId, catId, humanReviewed);
return Ok();
}
/// <summary>
/// delete poem related naskban images by url
/// </summary>

View File

@ -2015,6 +2015,15 @@
<param name="loginViewModel"></param>
<returns>number of synched links</returns>
</member>
<member name="M:RMuseum.Controllers.GanjoorController.MarkNaskbanLinksAsHumanReviewed(System.Int32,System.Int32,System.Boolean)">
<summary>
mark naskban links for poems of a categiory and its children as human reviewed
</summary>
<param name="naskbanBookId"></param>
<param name="catId"></param>
<param name="humanReviewed"></param>
<returns></returns>
</member>
<member name="M:RMuseum.Controllers.GanjoorController.DeletePoemRelatedNaskbanImagesByNaskbanUrlAsync(System.String)">
<summary>
delete poem related naskban images by url
@ -15965,6 +15974,14 @@
<param name="naskbanUserName"></param>
<param name="naskbanPassword"></param>
</member>
<member name="M:RMuseum.Services.IGanjoorService.MarkNaskbanLinksAsHumanReviewed(System.Int32,System.Int32,System.Boolean)">
<summary>
mark naskban links as human reviewed
</summary>
<param name="bookId"></param>
<param name="parentCatId"></param>
<param name="humanReviewed"></param>
</member>
<member name="M:RMuseum.Services.IGanjoorService.DeletePoemRelatedNaskbanImagesByNaskbanUrlAsync(System.String)">
<summary>
delete poem related naskban images by url
@ -17929,6 +17946,14 @@
<param name="naskbanPassword"></param>
<returns>number of synched items</returns>
</member>
<member name="M:RMuseum.Services.Implementation.GanjoorService.MarkNaskbanLinksAsHumanReviewed(System.Int32,System.Int32,System.Boolean)">
<summary>
mark naskban links as human reviewed
</summary>
<param name="bookId"></param>
<param name="parentCatId"></param>
<param name="humanReviewed"></param>
</member>
<member name="M:RMuseum.Services.Implementation.GanjoorService.DeletePoemRelatedNaskbanImagesByNaskbanUrlAsync(System.String)">
<summary>
delete poem related naskban images by url

View File

@ -1220,6 +1220,14 @@ namespace RMuseum.Services
/// <param name="naskbanPassword"></param>
void JustifyNaskbanPageNumbers(string naskbanUserName, string naskbanPassword);
/// <summary>
/// mark naskban links as human reviewed
/// </summary>
/// <param name="bookId"></param>
/// <param name="parentCatId"></param>
/// <param name="humanReviewed"></param>
void MarkNaskbanLinksAsHumanReviewed(int bookId, int parentCatId, bool humanReviewed);
/// <summary>
/// delete poem related naskban images by url
/// </summary>