示例#1
0
        public async Task <IActionResult> GetExcel([FromForm] InExcel model)
        {
            var data = await _adsService.GetExcel(model);

            return(Ok(new ResultMessage <string>
            {
                Data = data,
                ErrorCode = string.IsNullOrWhiteSpace(data) ? 3 : 0,
                ErrorMsg = string.IsNullOrWhiteSpace(data) ? "提示:Excel文件生成失败,请联系管理员!" : ""
            }));
        }