IServiceResultSuccess Property

指示调用是否成功。此属性不会被 Json 序列化。

Definition

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

Property Value

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

Remarks

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

See Also