dotnetcore / osharp

OSharp是一个基于.Net6.0的快速开发框架,框架对 AspNetCore 的配置、依赖注入、日志、缓存、实体框架、Mvc(WebApi)、身份认证、功能权限、数据权限等模块进行更高一级的自动化封装,并规范了一套业务实现的代码结构与操作流程,使 .Net 框架更易于应用到实际项目开发中。
Apache License 2.0
2.79k stars 753 forks source link

OperationResult转AjaxResult丢失Data #85

Closed jifeilong9 closed 5 years ago

jifeilong9 commented 5 years ago

描述一下BUG OperationResult使用扩展方法ToAjaxResult()转AjaxResult丢失Data 重现步骤 Steps to reproduce the behavior: OperationResult result =new OperationResult(OperationResultType.Success, "成功", "Data数据"); result.ToAjaxResult(); //转成AjaxResult()后Data为null result.Data==null

期望行为 A clear and concise description of what you expected to happen. 群友反应源码中忘加Data的转换

image

gmf520 commented 5 years ago

已修复 https://github.com/i66soft/osharp/commit/14ed0024f41f58469df0e37f5ba47683176f556d