#403 ExtenalFTPController
This commit is contained in:
parent
ba7dce87b7
commit
9b7fb34b5d
30
RMuseum/Controllers/ExtenalFTPController.cs
Normal file
30
RMuseum/Controllers/ExtenalFTPController.cs
Normal file
@ -0,0 +1,30 @@
|
||||
using Microsoft.AspNetCore.Authorization;
|
||||
using Microsoft.AspNetCore.Mvc;
|
||||
using RMuseum.Models.Auth.Memory;
|
||||
using RMuseum.Services;
|
||||
using System.Net;
|
||||
using System.Threading.Tasks;
|
||||
using RMuseum.Models.FAQ;
|
||||
|
||||
namespace RMuseum.Controllers
|
||||
{
|
||||
[Produces("application/json")]
|
||||
[Route("api/ftp")]
|
||||
public class ExtenalFTPController : Controller
|
||||
{
|
||||
/// <summary>
|
||||
/// FTP Service
|
||||
/// </summary>
|
||||
protected readonly IQueuedFTPUploadService _ftpService;
|
||||
|
||||
/// <summary>
|
||||
/// constructor
|
||||
/// </summary>
|
||||
/// <param name="ftpService"></param>
|
||||
public ExtenalFTPController(IQueuedFTPUploadService ftpService)
|
||||
{
|
||||
_ftpService = ftpService;
|
||||
}
|
||||
|
||||
}
|
||||
}
|
||||
@ -113,6 +113,11 @@ namespace RMuseum.Models.Auth.Memory
|
||||
/// </summary>
|
||||
public const string PDFLibraryEntityShortName = "pdf";
|
||||
|
||||
/// <summary>
|
||||
/// ftp
|
||||
/// </summary>
|
||||
public const string QueuedFTPUploadShortName = "ftp";
|
||||
|
||||
/// <summary>
|
||||
/// list of forms and their permissions
|
||||
/// </summary>
|
||||
@ -215,6 +220,15 @@ namespace RMuseum.Models.Auth.Memory
|
||||
new SecurableItemOperation(PublishOperationShortName, "انتشار", false),
|
||||
}
|
||||
},
|
||||
new SecurableItem()
|
||||
{
|
||||
ShortName = QueuedFTPUploadShortName,
|
||||
Description = "بارگذاری به FTP خارجی",
|
||||
Operations = new SecurableItemOperation[]
|
||||
{
|
||||
new SecurableItemOperation(ModerateOperationShortName, "مدیریت", false),
|
||||
}
|
||||
},
|
||||
|
||||
|
||||
|
||||
|
||||
@ -787,6 +787,17 @@
|
||||
donation service
|
||||
</summary>
|
||||
</member>
|
||||
<member name="F:RMuseum.Controllers.ExtenalFTPController._ftpService">
|
||||
<summary>
|
||||
FTP Service
|
||||
</summary>
|
||||
</member>
|
||||
<member name="M:RMuseum.Controllers.ExtenalFTPController.#ctor(RMuseum.Services.IQueuedFTPUploadService)">
|
||||
<summary>
|
||||
constructor
|
||||
</summary>
|
||||
<param name="ftpService"></param>
|
||||
</member>
|
||||
<member name="M:RMuseum.Controllers.FAQController.GetCategoriesAsync">
|
||||
<summary>
|
||||
get published categories
|
||||
@ -4754,6 +4765,11 @@
|
||||
pdf
|
||||
</summary>
|
||||
</member>
|
||||
<member name="F:RMuseum.Models.Auth.Memory.RMuseumSecurableItem.QueuedFTPUploadShortName">
|
||||
<summary>
|
||||
ftp
|
||||
</summary>
|
||||
</member>
|
||||
<member name="P:RMuseum.Models.Auth.Memory.RMuseumSecurableItem.Items">
|
||||
<summary>
|
||||
list of forms and their permissions
|
||||
|
||||
Loading…
Reference in New Issue
Block a user