You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
36 lines
897 B
36 lines
897 B
2 years ago
|
using Microsoft.AspNetCore.Authorization;
|
||
|
using Microsoft.AspNetCore.Mvc;
|
||
|
using Znyc.Recruitment.Controllers;
|
||
|
using Znyc.Recruitment.Service;
|
||
|
using Znyc.Recruitment.Service.Document.Output;
|
||
|
|
||
|
namespace Znyc.Recruitment.Api.Controllers
|
||
|
{
|
||
|
/// <summary>
|
||
|
/// 文档管理
|
||
|
/// </summary>
|
||
|
|
||
|
public class DocumentController : BaseController
|
||
|
{
|
||
|
private readonly IDocumentService _documentService;
|
||
|
|
||
|
public DocumentController(
|
||
|
IDocumentService documentService
|
||
|
)
|
||
|
{
|
||
|
_documentService = documentService;
|
||
|
}
|
||
|
|
||
|
/// <summary>
|
||
|
/// 上传文档图片
|
||
|
/// </summary>
|
||
|
/// <returns></returns>
|
||
|
[HttpGet]
|
||
|
[AllowAnonymous]
|
||
|
[Route("api/document")]
|
||
|
public ImageOutput UploadImageAsync()
|
||
|
{
|
||
|
return _documentService.UploadImageAsync();
|
||
|
}
|
||
|
}
|
||
|
}
|