| | |
| | | using Microsoft.AspNetCore.Mvc; |
| | | using Microsoft.AspNetCore.Mvc.RazorPages; |
| | | using Microsoft.IdentityModel.Abstractions; |
| | | using StackExchange.Profiling.Internal; |
| | | using System; |
| | | using System.Collections.Generic; |
| | | using System.Linq; |
| | |
| | | [ApiDescriptionSettings("FileUpdata")] |
| | | public class UpFileController |
| | | { |
| | | /// <summary> |
| | | /// 获取文件 上传token |
| | | /// </summary> |
| | | /// <returns></returns> |
| | | [HttpGet] |
| | | |
| | | |
| | | public Dictionary<string, string> GetToken([FromServices] IEzFileUploadService fileUploadService) |
| | | { |
| | | return fileUploadService.GetToken(); |
| | | } |
| | | /// <summary> |
| | | /// 上传身份证信息 |
| | | /// </summary> |
| | |
| | | public async Task<object> IaiAddPersoBase64([FromServices] IEzFileUploadService fileUploadService, UpDataFileData param) |
| | | { |
| | | if (string.IsNullOrEmpty(param.imgBase64)) |
| | | throw Oops.Oh("没有文件类容"); |
| | | throw Oops.Oh("没有文件内容"); |
| | | if (string.IsNullOrEmpty(param.Name)) |
| | | throw Oops.Oh("没有姓名"); |
| | | if (string.IsNullOrEmpty(param.CordId)) |