IServiceResultSuccess Property

获取一个布尔值,指示调用是否成功。此属性不会被 Json 序列化。

Definition

Namespace: QuickAdmin.Common
Assembly: QuickAdmin.Net (in QuickAdmin.Net.dll) Version: 1.2.30
C#
[JsonIgnore]
bool Success { get; }

Property Value

bool
Code0 时返回 true,非 0 返回 false

Remarks

此属性不会被 Json 序列化,因此通常只能在后端使用,前端需要根据 Code 值判断结果。

See Also