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.
29 lines
724 B
29 lines
724 B
2 years ago
|
using Microsoft.AspNetCore.Mvc;
|
||
|
using Znyc.CloudCar.IServices.Document;
|
||
|
using Znyc.CloudCar.Model.ViewModels.ReportsCallBack;
|
||
|
|
||
|
namespace Znyc.CloudCar.Controller
|
||
|
{
|
||
|
public class DocumentController : ControllerBase
|
||
|
{
|
||
|
private readonly IDocumentService _documentService;
|
||
|
|
||
|
public DocumentController(IDocumentService documentService
|
||
|
)
|
||
|
{
|
||
|
_documentService = documentService;
|
||
|
}
|
||
|
|
||
|
/// <summary>
|
||
|
/// 上传图片
|
||
|
/// </summary>
|
||
|
/// <returns></returns>
|
||
|
[HttpGet]
|
||
|
[Route("api/v1/document")]
|
||
|
public ResponseOutput UploadImageAsync()
|
||
|
{
|
||
|
return _documentService.UploadImageAsync();
|
||
|
}
|
||
|
}
|
||
|
}
|