IServiceResultT Interface

表示返回指定类型数据的服务调用结果的接口。所有以此接口作为返回结果的服务方法在任何情况下都不应该返回 null

Definition

Namespace: QuickAdmin.Common
Assembly: QuickAdmin.Net (in QuickAdmin.Net.dll) Version: 2.0.11
C#
public interface IServiceResult<T> : IServiceResult
Implements
IServiceResult

Type Parameters

T
返回数据的类型。

Properties

ActionResult 获取返回的 IActionResult。此属性不会被 Json 序列化。
(Inherited from IServiceResult)
Code 获取/设置返回的代码。
(Inherited from IServiceResult)
Data 获取/设置返回的数据。
Msg 获取/设置返回的消息。
(Inherited from IServiceResult)
Success 指示调用是否成功。此属性不会被 Json 序列化。
(Inherited from IServiceResult)

Methods

ToCamelCaseJsonContentResult 将本对象转为一个 Json 类型的 ContentResult 对象,且属性名称强制使用 CamelCase 命名策略。
(Inherited from IServiceResult)
ToCamelCaseJsonResult 将本对象转为一个 JsonResult 对象,且属性名称强制使用小驼峰(首字母小写)命名策略。
(Inherited from IServiceResult)
ToJsonContentResult 将本对象转为一个 Json 类型的 ContentResult 对象。
(Inherited from IServiceResult)
ToJsonResult 将本对象转为一个 JsonResult 对象。
(Inherited from IServiceResult)

See Also