| | |
| | | using EzTencentCloud; |
| | | using Furion.FriendlyException; |
| | | using Microsoft.AspNetCore.Authorization; |
| | | using Microsoft.AspNetCore.Http; |
| | | using Microsoft.AspNetCore.Http.HttpResults; |
| | | using Microsoft.AspNetCore.Mvc; |
| | |
| | | /// <param name="PageName"> 身份证正反面 FRONT 正面 Back 国徽反面 </param> |
| | | /// <returns></returns> |
| | | [HttpPost] |
| | | [AllowAnonymous] |
| | | public async Task<Object> UploadIdCord([FromServices] IEzFileUploadService fileUploadService,IFormFile file, [FromQuery] string PageName = "FRONT") |
| | | { |
| | | |
| | |
| | | /// <param name="PageName"> 身份证正反面 FRONT 正面 Back 国徽反面 </param> |
| | | /// <returns></returns> |
| | | [HttpPost] |
| | | [AllowAnonymous] |
| | | public async Task<Object> UpBizLicense([FromServices] IEzFileUploadService fileUploadService, IFormFile file) |
| | | { |
| | | |
| | |
| | | /// <param name="fileUploadService"></param> |
| | | /// <returns></returns> |
| | | [HttpPost] |
| | | [AllowAnonymous] |
| | | public async Task<string> UpdateFile([FromServices] IEzFileUploadService fileUploadService, IFormFile file) |
| | | { |
| | | return await fileUploadService.UploadFiles(); |