| | |
| | | using Microsoft.AspNetCore.Http; |
| | | using EzTencentCloud; |
| | | using Microsoft.AspNetCore.Http; |
| | | using Microsoft.AspNetCore.Http.HttpResults; |
| | | using Microsoft.AspNetCore.Mvc; |
| | | using Microsoft.AspNetCore.Mvc.RazorPages; |
| | | using Microsoft.IdentityModel.Abstractions; |
| | | using System; |
| | | using System.Collections.Generic; |
| | | using System.Linq; |
| | | using System.Text; |
| | | using System.Threading.Tasks; |
| | | using TencentCloud.Ocr.V20181119.Models; |
| | | |
| | | namespace EzUpFile |
| | | { |
| | |
| | | /// 文件上传下载 |
| | | /// </summary> |
| | | [DynamicApiController] |
| | | [ApiDescriptionSettings("FileUpdata@0")] |
| | | [ApiDescriptionSettings("FileUpdata")] |
| | | public class UpFileController |
| | | { |
| | | |
| | | |
| | | /// <summary> |
| | | /// 上传身份证信息 |
| | | /// </summary> |
| | | /// <param name="PageName"> 身份证正反面 FRONT 正面 Back 国徽反面 </param> |
| | | /// <returns></returns> |
| | | [HttpPost] |
| | | public async Task<(IDCardOCRResponse, string)> UploadIdCord([FromServices] IEzFileUploadService fileUploadService,IFormFile file, [FromQuery] string PageName = "FRONT") |
| | | { |
| | | |
| | | |
| | | return await fileUploadService.UpIdCord(PageName); |
| | | |
| | | } |
| | | public async Task test([FromServices] ITencentCloudService fileUploadService) |
| | | { |
| | | |
| | | fileUploadService.IaiCreatGroup(); |
| | | |
| | | } |
| | | |
| | | /// <summary> |
| | | /// 上传附件 |
| | | /// </summary> |